Page 1 of 1

Combobox bug

Posted: Sat Oct 26, 2013 14:31
by silentyears
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

Re: Combobox bug

Posted: Sat Oct 26, 2013 14:44
by silentyears
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!