Hi Freddo,
Let me try to answer your first question first. If you know beforehand on which states ( which I presume here you mean the value of a domain property) you want to show or hide the icon decorator, you can use the Visibility Filter of the decorator. You can find the fitler by selecting the shape in the language designer, then in the DSL Details toolbox, go to Mapping Details and select your icon decorator. There, you can enable Visuality Fitler and choose the property that you want the decorator's visibility depends on. The icon decorator will show when the domain property equals to any of those in Visilbity Entries.
If the visibility of the decorator depends on more than one domain properties, I suppose you can create a domain property like "ShowIcon" and do the above, then use a ChangeRule to listen to changes in domain properties and update ShowIcon as appropriated.
Regards, Steven
DSL Tools - SDE Intern |