Page 1 of 1

combobox droplist items don't highlight when mouse over

Posted: Sun Jun 28, 2009 19:35
by lali
I have a WindowsLook/Combobox set up.
I see the droplist with my items when I click on the pushbutton, but when the mouse moves over them, they do not get highlighted. IS there a way to do this ?

Re: combobox droplist items don't highlight when mouse over

Posted: Mon Jun 29, 2009 08:19
by lali
OK, I figured it out ...

Code: Select all

   CEGUI::ListboxTextItem *item = new CEGUI::ListboxTextItem(text);
   item->setTextColours(CEGUI::colour(0,0,0,1));
   item->setSelectionColours(CEGUI::colour(0.8,0.9,1,1));
   item->setSelectionBrushImage( "tahrezlook", "ListboxSelectionBrush" );
                filter->addItem(item);
   filter->setHeight(filter->getHeight()+CEGUI::UDim(0,20));