Change Editbox colors at runtime

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

SalvoFa
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Mon Feb 25, 2008 15:25
Location: Italy

Change Editbox colors at runtime

Postby SalvoFa » Tue May 05, 2009 09:00

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.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Change Editbox colors at runtime

Postby Jamarr » Wed May 06, 2009 15:59

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
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 15 guests