Page 1 of 1
Modifying L&F programmatically ?
Posted: Tue Oct 30, 2012 11:39
by gregee123
What (if any?) properties of look and feel can be changed programmatically ? Can I change the label color on a pushbutton at runtime ? How would I do that ?
CEGUI 0.7.7
Re: Modifying L&F programmatically ?
Posted: Tue Oct 30, 2012 12:13
by Kulik
All of LNF (AFAIK) can be changed at runtime. You don't need to change the LNF to make colour changing happen though. Use case of changing the LNF would be something along the lines of making a looknfeel visual editor.
For changeable colour you would create a <PropertyDefinition> in the LNF, define a Colour property with nam XYZ and then use Property XYZ for the colour of something. Changing the property via setProperty will change the colour. There are examples of this in the stock LNF.
Re: Modifying L&F programmatically ?
Posted: Wed Oct 31, 2012 15:15
by gregee123
Thanks!
Can each and every of those named properties be animated as well?
Re: Modifying L&F programmatically ?
Posted: Wed Oct 31, 2012 22:56
by Kulik
Yup
Re: Modifying L&F programmatically ?
Posted: Fri Nov 02, 2012 18:48
by gregee123
I'll keep that in mind. Thanks.