Combobox bug

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

silentyears
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Sep 11, 2013 11:17

Combobox bug

Postby silentyears » Sat Oct 26, 2013 14:31

I create combobox like this,

Code: Select all

Combobox* cb = <static_cast>(Combobox*) wmgr.create("WindowsLook/Combobox", "mycb");
cb->addItem(new mylistItem("Combobox Item1"));
cb->addItem(new mylistItem("Combobox Item2"));

then it turns out that i can't see the items clear in the list, but i can still select them, check it out please.
Image

silentyears
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Sep 11, 2013 11:17

Re: Combobox bug

Postby silentyears » Sat Oct 26, 2013 14:44

I doubt Whether the reason is the colours of combobox's background is as the same as item, so i use the code in Constructor of Class MyListItem which Inherits ListboxTextItem as follows attempt to change the item' colour.

Code: Select all

setTextColours(RGB(255,0,0));

Unfortunately, it doesn't work. so i want to know why.
Thanks!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 40 guests