mskhan1991
Resource contributor
- Messages
- 910
- Country

Hey guys, I am looking for XML code regarding the following numerical buttons on the transponder.... any help would be highly appreciated
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.


<Area Name="XPNDR BUTTON 0" Left="203" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 0 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 1" Left="228" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 1 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 2" Left="253" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 2 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 3" Left="278" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 3 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 4" Left="303" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 4 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 5" Left="328" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 5 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 6" Left="353" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 6 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 7" Left="378" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 7 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>

(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 0 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 (>L:XpndrDigit, enum) }

Just put the whole thing inbetween <CallbackCode> tags...
Code:<MouseRect> <Cursor>Hand</Cursor> <CallbackCode>(* Insert any working XML script here! *)</CallbackCode> </MouseRect>
(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 0 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 (>L:XpndrDigit, enum) }

<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>
(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 0 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 (>L:XpndrDigit, enum) }
</CallbackCode>
</MouseRect>

Code:<MouseRect> <Cursor>Hand</Cursor> <CallbackCode> (L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 1 10 100 1000 4 (L:XpndrDigit, enum) case 0 * + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 (>L:XpndrDigit, enum) } </CallbackCode> </MouseRect>


I get the mouserect part, i was asking about the code part!?

<Area Name="XPNDR BUTTON 0" Left="203" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 0 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 1" Left="228" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 1 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 2" Left="253" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 2 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 3" Left="278" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 3 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 4" Left="303" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 4 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 5" Left="328" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 5 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 6" Left="353" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 6 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>
<Area Name="XPNDR BUTTON 7" Left="378" Top="422" Width="20" Height="20"><Cursor Type="Hand"/><Click>(L:XpndrDigit, enum) ++ (>L:XpndrDigit, enum) (L:XpndrCode, enum) 10 * 7 + (>L:XpndrCode, enum) (L:XpndrCode, bco16) (>K:XPNDR_SET) (L:XpndrDigit, enum) 4 == if{ 0 d (>L:XpndrDigit, enum) (>L:XpndrCode, enum) }</Click></Area>

Yes, we can. We cannot redistribute the gauges, but then anyone who has FSX already has the gauges...Also I wanted to ask if we can use the default radio panels provided in the FSX default bell jetranger?