I'm making a widget that has a child that is a button. But the image on the button may change according to the state of the widget. So I tried to use PropertyLink to Link a property named NormalImage to the NormalImage property of the button widget. The thing is that NormalImage is a Property and a State in the button widget and therefore crashes the program on start with error:
Code: Select all
An error occurred at line nr. 5993 while parsing XML file 'TaharezLook.looknfeel'. Additional information: Element 'PropertyDefinition' is not valid for content model: '((PropertyDefinition,PropertyLinkDefinition,Property,NamedArea,Child,ImagerySection),StateImagery)'
The code I'm using to link is:
Code: Select all
<PropertyLinkDefinition name="NormalImage" widget="__expand_button__" targetProperty="NormalImage" initialValue="" />
Is there anything I can do to make this link work without changing the button widget?