- Messages
- 1,084
- Country

I know I haven't solved one problem yet and here is another one. I created this gauge and am rather pround that it shows and works, well kinda works...the preset button works but when pushed it 0's the gauge to one digit at the right, 0. I can click the gauge digits and they become visible again and can be incremented or decremented as normal but I want to be able to push the button in an emergency (military) and immediately have 7777. Goes along with my beeper on ELT sound click thing which works thanks again. Here is the code, which I copied the long formula from my XML tutorial book for transponder code set. Can you help me correct this to do what I want? Thanks in advance for the help.
<Gauge Name="elt" Version="1.0">
<Image Name="elt.bmp"/>
<Mouse>
<Tooltip ID=""></Tooltip>
<Help ID=""/>
<Cursor Type="Hand" />
<Click>(L:elt, enum) ! (>L:elt, enum)
(L:memorizednumberindecimal,number)s0 10%10 10 / int1 10%16* + 10 100 / int 10%256* + 10 1000 / int 7777* + (>K:XPNDR_SET)</Click>
</Mouse>
</Gauge>
<Gauge Name="elt" Version="1.0">
<Image Name="elt.bmp"/>
<Mouse>
<Tooltip ID=""></Tooltip>
<Help ID=""/>
<Cursor Type="Hand" />
<Click>(L:elt, enum) ! (>L:elt, enum)
(L:memorizednumberindecimal,number)s0 10%10 10 / int1 10%16* + 10 100 / int 10%256* + 10 1000 / int 7777* + (>K:XPNDR_SET)</Click>
</Mouse>
</Gauge>
