One more question for today...
I am trying to sking the Listbox, but couldn't find a way to sking its items - mainly font color. In some old skinning files there is an element called "ListboxItem", which seems to be exactly what I need, but it does not exist in new specs. I tried the "TextColour" property in Listbox, but it doesn't seem to have any effect either.
Many thanks...
Listbox Item skinning
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
The 'old style' Listbox (named Listbox) uses non-window based items that are some sub-class of CEGUI::ListboxItem. Most people using this widget also use the subclass CEGUI::ListboxTextItem - these objects are created in code directly and have member functions you can call to set the text colour and font - see the API ref for that info.
The new and improved ItemListbox uses window based items based on the Window type ItemEntry - these can be skinned via Falagard, and as such you can do pretty much anything you like with them, and examples of this can be seen in the looknfeel xml files supplied with the system.
HTH
CE
The 'old style' Listbox (named Listbox) uses non-window based items that are some sub-class of CEGUI::ListboxItem. Most people using this widget also use the subclass CEGUI::ListboxTextItem - these objects are created in code directly and have member functions you can call to set the text colour and font - see the API ref for that info.
The new and improved ItemListbox uses window based items based on the Window type ItemEntry - these can be skinned via Falagard, and as such you can do pretty much anything you like with them, and examples of this can be seen in the looknfeel xml files supplied with the system.
HTH
CE
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Who is online
Users browsing this forum: No registered users and 7 guests