- Messages
- 1,564
- Country

Nested <Area>, XML FS9 schema
I only now
discovered this useful capability that allows me to define click area Left and Top positions relative to another Left and Top definition. Analogous to what you can do with <Element>. But I wonder, does anybody know the rules for using it?
The Left and Top positions of the 4 click areas are relative to "MAP BUTTON GROUP" Left="200" Top="100" which is very helpful to me as I move Element and Click Area groups around while designing my gauge.
However, I guess you can have only 3 such nested <Area> constructions in the <Mouse> section, and if a fourth is added, you lose the mouse click capability of the first group - only the bottom 3 are valid. AFAIK, <Element> has no such limitation.
Do I have that right? Any other rules?
Bob
[Edit]. See response #7 below. 3 nested <Area> limit is not correct
I only now
Code:
<Area Name="MAP BUTTON GROUP" Left="200" Top="100">
<Area Name="TERRAIN TOGGLE" Left="0" Top="0" Width="20" Height="20">
Stuff 1
</Area>
<Area Name="MAP ROT" Left="430" Top="0" Width="20" Height="20">
Stuff 2
</Area>
<Area Name="PAN TOGGLE" Left="455" Top="0" Width="20" Height="20">
Stuff 3
</Area>
<Area Name="ZOOM BUTTON" Left="480" Top="0" Width="20" Height="20">
Stuff 4
</Area>
</Area>
The Left and Top positions of the 4 click areas are relative to "MAP BUTTON GROUP" Left="200" Top="100" which is very helpful to me as I move Element and Click Area groups around while designing my gauge.
However, I guess you can have only 3 such nested <Area> constructions in the <Mouse> section, and if a fourth is added, you lose the mouse click capability of the first group - only the bottom 3 are valid. AFAIK, <Element> has no such limitation.
Do I have that right? Any other rules?
Bob
[Edit]. See response #7 below. 3 nested <Area> limit is not correct
Last edited:



