Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - BasV

#1
Good to know! Thanks again! :)
#2
Yes, I'm now using my own images. Thanks! I find it a bit weird that I get an error message if I don't use the left and right parts, but to fix it I just defined the leftmost pixel column as left, and the rightmost pixel column as right ;)

Cheers!
#3
Ah, damn.. I figured out my mistake! I was using a config file for my buttons, and without realising they already loaded in an image. I guess that's why it's so wide.. Sorry!
#4
Hi,

Thanks for the reaction, I'm sorry for being unclear about the buttons' size: What I meant was the width - I want a 20x20 pixels button, maybe without text. Alternatively, I could do with a picture that has a mouse over state, but I'm guessing this would be much more work if done from the config files (that's why I was looking into animated pictures)

In practice, my button all are 'long' horizontally - even with no text in them.

Cheers!
#5
Hey everyone,

I'm trying to use a small button that only has "+" or "-" as text on it. However, it defaults to a rather large size, I'd prefer it to be 20x20 pixels, for example. Do  I need to use images instead? Or is there a way to force buttons to a certain size?

Another thing: I'm trying to use .conf files as much as possible, but I can't really find a lot of documentation on this. For example, I'm trying to get AnimatedPicture working (as substitute for buttons) but I have no clue how to add frames using these config files. AnimatedButton seems to be unavailable in .conf files altogether?

Cheers!
#6
Nice, thank you very much!
#7
Hi,

I'm using TGUI, it's very nice to work with so thanks very much for publishing it.

I'm using a ComboBox that changes its contents regularly, and when its contents include a certain string, it needs to give me its index.
However, when the combobox doesn't have this string, it should just do nothing. So my code looks like:


if (combobox_->getItemIndex(preferred_item) != -1) {
   // ..
}


However, my console displays a warning now: "TGUI warning: The name didn't match any item. Returning -1 as item index."
Since the returning of -1 is expected behaviour (according to the documentation), I don't want this warning. Is there a way to disable these warnings?