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

Topics - BasV

#1
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!
#2
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?