- Messages
- 683
- Country

I'm working on a push button toggle switch that has a lighted On/Off face. When the switch is off I see the proper indication. When I click the switch the "off" element operates as it should, but I cannot get the "on" element to work.
Code:
<Gauge Name="Switches" Version="1.0">
<Image Name="switch_bkgd.bmp"/>
<Element>
<Visible>(A:ELECTRICAL MASTER BATTERY,bool)</Visible>
<Element>
<Visible>(L:Switch_Pitot_Heat,bool) 0 == if{ 1 } </Visible>
<Position X="28" Y="55"/>
<Text X="50" Y="30" Length="3" Font="Arial" Color="white">
<String>OFF</String>
</Text>
</Element>
<Element>
<Visible>(L:Switch_Pitot_Heat,bool) 1 == if{ 1 } </Visible>
<Position X="30" Y="10"/>
<Text X="50" Y="30" Length="2" Font="Arial" Color="dodgerblue">
<String>ON</String>
</Text>
</Element>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(L:Switch_Pitot_Heat,bool) ! (>L:Switch_Pitot_Heat,bool)</Click>
</Mouse>
</Gauge>

