Hi All,
Working on a another feature of my gauge.
I have created a button that when clicked displays the Lat/Long position. Easy enough. Now is there a way to have it saved or frozen if you will until the button is clicked again? Currently it keeps current with the aircraft position.
Here is what i have so far:
The Macro:
The Element Section:
The Mouse Section:
Thanks for any ideas or help with this.
Greg
Working on a another feature of my gauge.
I have created a button that when clicked displays the Lat/Long position. Easy enough. Now is there a way to have it saved or frozen if you will until the button is clicked again? Currently it keeps current with the aircraft position.
Here is what i have so far:
The Macro:
Code:
<Macro id="DisplayPostion" Name="DisplayPosition">
<MacroValue> ((A:GPS POSITION LAT, degrees) ((A:GPS POSITION LON, Degrees)
and if{ 1 (>L:DisplayPosition,bool) }
els{ 0 (>L:DisplayPosition,bool) }
</MacroValue>
</Macro>
The Element Section:
Code:
<!--**************** Save Position Feature ****************-->
<Element id="SavPos">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:DisplayPosition,bool)</Visibility>
<Element id="PosLat">
<FloatPosition>225.000,586.000</FloatPosition>
<GaugeText id="GaugeText">
<BackgroundColor>0x000000</BackgroundColor>
<Bold>True</Bold>
<Bright>True</Bright>
<FontColor>Red</FontColor>
<FontFaceLocalize>True</FontFaceLocalize>
<FontHeightScript>@FontHeight</FontHeightScript>
<FontWeight>2</FontWeight>
<GaugeString>LAT %((A:GPS POSITION LAT, degrees))%!.4f!</GaugeString>
<HeightScript>@TextHeight</HeightScript>
<WidthScript>300</WidthScript>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="PosLon">
<FloatPosition>225.000,612.000</FloatPosition>
<GaugeText id="GaugeText">
<BackgroundColor>0x000000</BackgroundColor>
<Bold>True</Bold>
<Bright>True</Bright>
<FontColor>Red</FontColor>
<FontFaceLocalize>True</FontFaceLocalize>
<FontHeightScript>@FontHeight</FontHeightScript>
<FontWeight>2</FontWeight>
<GaugeString>LON %((A:GPS POSITION LON, Degrees))%!.4f!</GaugeString>
<HeightScript>@TextHeight</HeightScript>
<WidthScript>300</WidthScript>
<Transparent>True</Transparent>
</GaugeText>
</Element>
</Element>
The Mouse Section:
Code:
<MouseArea id="Save Position">
<Visibility>(L:WSoffon,bool)</Visibility>
<FloatPosition>150.000,677.000</FloatPosition>
<Size>65,61</Size>
<CursorType>Hand</CursorType>
<HelpId></HelpId>
<MouseClick id="MouseClick">
<Script>(L:DisplayPosition,bool) ! (>L:DisplayPosition,bool)</Script>
</MouseClick>
</MouseArea>
Thanks for any ideas or help with this.
Greg


