Page 1 of 1

Change Editbox colors at runtime

Posted: Tue May 05, 2009 09:00
by SalvoFa
Hi all,

How can I change the editbox colors at runtime? I mean background, border and text colors...
I'd like to use a function like:

Code: Select all

void CEGUI::ListboxItem::setSelectionColours(const ColourRect & cols)


that I'm currently using to change the listboxitem colors at runtime.

Re: Change Editbox colors at runtime

Posted: Wed May 06, 2009 15:59
by Jamarr
Not all properties have functions defined for them. Have you tried looking up relevant properties and using setProperty() to change their values?

Normally I just look up the properties in the header files, as these are always going to be the most accurate, but there are some online references:
http://www.cegui.org.uk/api_reference/c ... perty.html
http://www.cegui.org.uk/api_reference/namespaces.html
http://www.cegui.org.uk/wiki/index.php/PropertyFinder