<Gauge Name="2ARK" Version="1.0">
   <Image Name="ARK_Bck.bmp" ImageSizes="262,262,0,0"/>
   <Element>
      <Visible>0</Visible>
      <Position X="5" Y="184"/>
      <Select>
      <Value>(L:ADF2,number) 100 &lt; if{ 100 (&gt;L:ADF2,number) } els{ (L:ADF2,number) 1699.9 &gt; if{ 1699.9 (&gt;L:ADF2,number) } }</Value>
         <Case Value="0">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="5" Y="184"/>
      <Text X="96" Y="24" Length="6" Fixed="Yes" Font="TechnicBold" Adjust="Right" VerticalAdjust="Top" Color="#F6F6F6" Luminous="Yes">
         <String>%((A:ADF1 Active Frequency, Kilohertz))%!6.1f!</String>
      </Text>
   </Element>
   <Element>
      <Position X="154" Y="184"/>
      <Text X="96" Y="24" Length="6" Fixed="Yes" Font="Arial" Adjust="Right" VerticalAdjust="Top" Color="#F6F6F6" Luminous="Yes">
         <String>%((L:ADF2,number))%!6.1f!</String>
      </Text>
   </Element>
   <Element>
      <Visible>0</Visible>
      <Position X="9" Y="179"/>
      <Select>
      <Value>(A:ADF1 Active Frequency, Kilohertz) 999.9 &lt; if{ (A:ADF1 Active Frequency, Kilohertz) 10 * 1 + (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX1,number) + (&gt;L:ADFX1,number) } els{ (A:ADF1 Active Frequency, Kilohertz) 10 * 9999 - (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX1,number) + (&gt;L:ADFX1,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX1,number) + (&gt;L:ADFX1,number) }</Value>
         <Case Value="0">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Visible>0</Visible>
      <Position X="9" Y="179"/>
      <Select>
      <Value>(A:ADF1 Active Frequency, Kilohertz) 1000.1 &lt; if{ (A:ADF1 Active Frequency, Kilohertz) 10 * 1 - (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX2,number) + (&gt;L:ADFX2,number) } els{ (A:ADF1 Active Frequency, Kilohertz) 10 * 10001 - (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX2,number) + (&gt;L:ADFX2,number) }</Value>
         <Case Value="0">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
         <Case Value="1">
            <Image Name="Blank_Dummy_Image.bmp" ImageSizes="10,10,0,0"/>
         </Case>
      </Select>
   </Element>
-----------------
   <Mouse>
-----------------
      <Area Left="157" Width="20" Top="136" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="UpArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 1600 &lt; if{ (L:ADF2,number) 100 + (&gt;L:ADF2,number) } els{ (L:ADF2,Number) 1500 - (&gt;L:ADF2,number) }</Click>
      </Area>
----------------
      <Area Left="157" Width="20" Top="214" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="DownArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 199.9 &gt; if{ (L:ADF2,number) 100 - (&gt;L:ADF2,number) } els{ (L:ADF2,Number) 1500 + (&gt;L:ADF2,number) }</Click>
      </Area>
-----------------
      <Area Left="178" Width="20" Top="136" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="UpArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 10 + (&gt;L:ADF2,number)</Click>
      </Area>
-----------------
      <Area Left="178" Width="20" Top="214" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="DownArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 10 - (&gt;L:ADF2,number)</Click>
      </Area>
------------------
      <Area Left="200" Width="20" Top="136" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="UpArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 1 + (&gt;L:ADF2,number)</Click>
      </Area>
-----------------
      <Area Left="200" Width="20" Top="214" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="DownArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 1 - (&gt;L:ADF2,number)</Click>
      </Area>
------------------
      <Area Left="225" Width="20" Top="136" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="UpArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 0.1 + (&gt;L:ADF2,number)</Click>
      </Area>
------------------
      <Area Left="225" Width="20" Top="214" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_FREQUENCY"/>
         <Cursor Type="DownArrow"/>
         <Click Repeat="Yes">(L:ADF2,number) 0.1 - (&gt;L:ADF2,number)</Click>
      </Area>
-----------------
      <Area Left="107" Width="25" Top="81" Height="25">
         <Help ID="HELPID_CONCORDE_RADIO_ADF_SET"/>
         <Cursor Type="Hand"/>
         <Click>(A:ADF1 Active Frequency, Kilohertz) (&gt;G:Var2) (L:ADF2,number) 1000 &lt; if{ (L:ADF2,number) 10 * (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX2,number) + (&gt;L:ADFX2,number) } els{ (L:ADF2,number) 10 * 10000 - (&gt;G:Var1) (G:Var1) 10 % flr (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 16 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 256 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 4096 * (L:ADFX2,number) + (&gt;L:ADFX2,number) (G:Var1) 10 / (&gt;G:Var1) (G:Var1) 10 % flr 65536 * (L:ADFX2,number) + (&gt;L:ADFX2,number) } (L:ADF2,number) 1000 &lt;  if{ (L:ADFX2,number) (&gt;K:ADF_LOWRANGE_SET) } els{ (L:ADFX2,number) (&gt;K:ADF_HIGHRANGE_SET) } (G:Var2) (&gt;L:ADF2,number)</Click>
      </Area>
   </Mouse>
</Gauge>
