This would help when creating WidgetLooks that have children that can be hidden/shown and the layout of the parent depends on their visibility.
A short example to demonstrate this:
Code: Select all
<WidgetLook name="sketch/hscroll">
<PropertyLinkDefinition name="DecButtonVisible" initialValue="True" widget="__auto_decbtn__" targetProperty="Visible" redrawOnWrite="true" layoutOnWrite="true" />
...
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge">
<WidgetDim widget="__auto_decbtn__" dimension="RightEdge">
<DimOperator op="Multiply">
<PropertyDim name="DecButtonVisible" /> <!-- This fails at the moment -->
</DimOperator>
</WidgetDim>
</Dim>
...
You could say that I could just set the property to "1" instead of "True" but then the PropertyLinkDefinition to a boolean property breaks.