tgraupmann wrote:I added the following to TaharezLook.looknfeel:
Code: Select all
<Falagard>
<!--
***************************************************
TaharezLook/Button
***************************************************
-->
<WidgetLook name="TaharezLook/Button">
<PropertyDefinition name="FrameEnabled" initialValue="True" redrawOnWrite="true" />
<PropertyDefinition name="BackgroundEnabled" initialValue="True" redrawOnWrite="true" />
The properties can be get and set.
Still when I set to false, the background and frame are still being displayed.
What else must I do?
Although Scriptkid's reply is totally correct, it is possible to largely emulate the behavior within a look and feel xml file (maybe this is how we did it with ImageButton, I can't recall

). Basically you define the properties as you did and then use the "controlProperty" attribute in the
<Section> elements to link the defined properties to the sections of imagery. When the property is true the section is rendered, and when the property is false the section is not rendered.
HTH
CE.