Page 1 of 1

Cant hide default push button imagery

Posted: Thu Mar 05, 2009 21:05
by eugen
Hello, i have a simple question which i believe has a simple answer.
Im looking into chaning the apparence of a button, im setting all the image states with some other images and is working ok, only that the default imagery is not dissapearing. I know there was a method which told not to show the default imagery but in 0.6 which im using there isnt any part of the PushButton class.
Does anyone know if there is such a mehtod or how to hide the default button imagery?

Posted: Fri Mar 06, 2009 09:37
by CrazyEddie
Hi,

this facility was removed from the code when we moved to the WindowRenderer approach a few years back. It's possible to add it back within the looknfeel definition by using a <PropertyDefinition> to define a property that will be set as a boolean, say "UseDefaultImagery", and then use this in the controlProperty attribute in the <Section> specifications within the <StateImagery> <Layer>definitions for the parts you want controlled by the property setting.

HTH

CE.