I have a custom imageset and a Falagard based LookNFeel file.
I'm trying to use a Combobox, which shows up great, and works fine. I am adding ListboxTextItems, creating them dynamically and adding them to the combobox window. I read somewhere that the default text is white (which was also the color of my background) so I tried changing the text color. I then read that you cannot change the text color, but rather have to inherit from ListboxTextItem to change the color. Before doing this, I changed the background to a dark color, and I still see no text. Here's an example of what I am doing:
Code: Select all
//I get my Combobox from the xml layout in the constructor
combobox->setReadOnly(true);
CEGUI::ListboxTextItem* item = new CEGUI::ListboxTextItem("1");
item->setSelectionBrushImage("CustomImageset", "image");
item->setTextColours(CEGUI::ColourRect(CEGUI::colour(0.0f, 0.0f, 0.0f, 1.0f)));
combobox->addItem(item);
Is there anything else I have to do to make the ListboxTextItems show up?