- Messages
- 3
Hi,
I need help setting code for a map zoom button. The current gauge code works, but I want the vc button I have for the map range to be coded in the modeldef instead.
Here is the gauge code:
Thanks in advance!
I need help setting code for a map zoom button. The current gauge code works, but I want the vc button I have for the map range to be coded in the modeldef instead.
Here is the gauge code:
Code:
<Macro id="ZOOMINButton" Name="ZOOMINButton">
<MacroValue>(L:Range,enum) -- 0 max (>L:Range,enum)
(L:map_ZoomStep, number) -- 1 max (>L:map_ZoomStep, number)
@CalculateZoomFactor((L:map_ZoomStep, number)) (>L:map_ZoomFactor, number)</MacroValue>
</Macro>
<Macro id="ZOOMOUTButton" Name="ZOOMOUTButton">
<MacroValue>(L:Range,enum) ++ 4 min (>L:Range,enum)
(L:map_ZoomStep, number) ++ 5 min (>L:map_ZoomStep, number)
@CalculateZoomFactor((L:map_ZoomStep, number)) (>L:map_ZoomFactor, number)
<MouseArea id="INCR">
<Visibility>1</Visibility>
<FloatPosition>20.000,34.000</FloatPosition>
<Size>15,30</Size>
<CursorType>UpArrow</CursorType>
<MouseClick id="MouseClick">
<Script>(L:var_INC_BUT, bool) ! (>L:var_INC_BUT, bool)
(L:SEL,enum) ++ 10 min (>L:SEL,enum)
</Script>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
<Tooltip id="Tooltip">
<DefaultScript></DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="DEC">
<Visibility>1</Visibility>
<FloatPosition>3.000,68.000</FloatPosition>
<Size>15,30</Size>
<CursorType>DownArrow</CursorType>
<MouseClick id="MouseClick">
<Script>(L:var_DEC_BUT, bool) ! (>L:var_DEC_BUT, bool)
(L:SEL,enum) -- 0 max (>L:SEL,enum)
</Script>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
<Tooltip id="Tooltip">
<DefaultScript></DefaultScript>
</Tooltip>
</MouseArea>
Thanks in advance!



