TagsMe™ allows to use expressions when setting an attribute or property. That allow us to
access object's values and apply them on another object.
To set an attribute with an expression we use the following syntax:
Attribute=”$(expression)”For example, suppose that we want to place an image just below another one. First image has
y=20 and height is 50 pixels. For setting second image below first one, we only have to set
y=”$(image1.y+image1.height)”. It is very important if we want to use expressions, that all
objects that participate on it have set their name attribute. It is the only way TagsMe™ can
access those properties.
<Image name="image1" file="/res/image1.png" x="90" y="20" anchor="TOP-HCENTER" />
<Image name="image2" file="/res/image2.png" x="$(image1.x)" y="$(image1.y+image1.height)" anchor="TOP-HCENTER" />