- Messages
- 1,084
- Country

I have been trying to learn how to really program a simple xml gauge, not just modify somebody's which i actually can't find one that does not use click events. So far after four hours of write, copy to gauges, open the aircraft, find it doesn't work........I need help, PLEASE!!!
Here is what I have written. All I want to do is mouse click to turn on and off this dummy switch which I can then modify to make four other dummy switch lights on the panel which has three other working switches to open doors and lower a ramp. I can DO that cause they use key codes and/or click events like "wingfold" or "tailhook".
<Gauge Name="ramppower" Version="1.0">
<Image Name="pwroff.bmp"/>
<Element>
<Select>
<Value>(G:Var1)</Value>
<Case>
<Case Value="1">
<Image Name="pwravail.bmp"/>
<Position X="0" Y="0"/>
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(G:Var1)!(>G:Var1)</Click>
</Gauge>
Can anyone please tell me what is wrong and rewrite it for me. I can follow example but I am beginning to feel like I just can't grasp this.
Thank you
Here is what I have written. All I want to do is mouse click to turn on and off this dummy switch which I can then modify to make four other dummy switch lights on the panel which has three other working switches to open doors and lower a ramp. I can DO that cause they use key codes and/or click events like "wingfold" or "tailhook".
<Gauge Name="ramppower" Version="1.0">
<Image Name="pwroff.bmp"/>
<Element>
<Select>
<Value>(G:Var1)</Value>
<Case>
<Case Value="1">
<Image Name="pwravail.bmp"/>
<Position X="0" Y="0"/>
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(G:Var1)!(>G:Var1)</Click>
</Gauge>
Can anyone please tell me what is wrong and rewrite it for me. I can follow example but I am beginning to feel like I just can't grasp this.
Thank you

