combobox droplist items don't highlight when mouse over

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

lali
Just popping in
Just popping in
Posts: 6
Joined: Mon May 26, 2008 20:48

combobox droplist items don't highlight when mouse over

Postby lali » Sun Jun 28, 2009 19:35

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 ?

lali
Just popping in
Just popping in
Posts: 6
Joined: Mon May 26, 2008 20:48

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

Postby lali » Mon Jun 29, 2009 08:19

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));


Return to “Help”

Who is online

Users browsing this forum: No registered users and 20 guests