Cant hide default push button imagery

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

eugen
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Jun 03, 2008 03:29
Contact:

Cant hide default push button imagery

Postby eugen » Thu Mar 05, 2009 21:05

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?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Mar 06, 2009 09:37

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.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 7 guests