Started by Law, 10 August 2014, 14:47:07
Quote from: texus on 15 August 2014, 20:22:05All callbacks will have the same callbackId, you cannot use more than one id.The id is just needed to differentiate between the widgets, you also have callback.trigger which contains whether it was a LeftMouseReleased or LeftMousePressed. But in most cases you don't even need the id since you just call a specific function when something happens to that widget. And the function isn't called from anywhere else.
QuoteWhen you set the size of your checkbox, editbox, etc, it usually never gives them the exact size you provided.
QuoteAlso, when you have a combobox depending on another one, and you change the selected item of the first one so that there is no items available for the second one, though the second one doesn't display any items indeed, the length of the "panel" sometimes keeps the length it had with the previous items, instead of going back to minimal length.
Quote from: texus on 16 August 2014, 18:39:10Talking about combo boxes, I have been making the changes that you suggested. The list now disappears when the mouse is released again, and the item below the mouse is highlighted (if it is not already selected).
error while loading shared libraries: libtgui.so.0.6.5: cannot open shared object file: No such file or directory
Quotethe length of the "panel" sometimes keeps the length it had with the previous items, instead of going back to minimal length.
Quote from: texus on 16 August 2014, 19:45:48- Just ignore any clicks on the combo box- Still flip the arrow but don't show a list- Show an empty list with the size of a single item
tgui::Grid::Ptr database(gui); database->setSize(390, 600); database->setPosition(405, 25); tgui::Label::Ptr label(*database); label->setText("aaaaaaaaaaaaaaa"); tgui::Picture::Ptr first(*database); first->load("1.png"); tgui::Picture::Ptr second(*database); second->load("2.png"); tgui::Picture::Ptr third(*database); third->load("3.png"); database->addWidget(label, 0, 0); database->addWidget(first, 0, 1); database->addWidget(second, 0, 2); database->addWidget(third, 0, 3); database->updateWidgets();
Quote1. I couldn't manage to change the size of text in a ListBox. So I tried to change the Global Font Size, but I couldn't find that either. Is there a simple way to do it ?
Quote2. Also, is it not possible to give each item of a ListBox a specific color ? Like, Item0 is orange, Item1 is green, etc.
Quote3. The Double Left Click event is not yet implemented, correct ?