- Messages
- 10,158
- Country

Hey guys,
I am trying to get two different buttons to illuminate, one is NAV and one is GPS. Basically, all it is, is the GPS/NAV selector switch. In this case, its an Element floating amoung other Elements.
My issue appears that I cannot get the bitmaps to 'locate' properly in their respective (different) locations, GPS being below, and NAV being above.
I have tried a few variations, but usually only get GPS to show up. I have tried making them (the two cases) different Elements with variations on naming the strings, but that didnt do anything either.
Presently the gauge only shows up as NAV button. GPS will not illuminate.
Any idea's on what it might be?
Here is the code;
Here is a typical NAV/GPS switch from Aces, cira FS9;
Note that on the above code, the Bitmaps will autolocate to the top corner, so locations/positions need to be put in, but I coudlnt get these/this route to work.
In writing them in two versions of Elements, one using <Case> 0, the other using <Case> 1, only NAV worked. (Does AP need to be on for the GPS button light to go on? I noticed my GPS system reads from GPS to NAV mode when the button is selected).
Here is a similar route I did also;
In writing it like the above, leaving out the ! symbol in the Value section (at the end) this still only produces a NAV button that shows up, no GPS button when GPS is selected.
Many thanks for any thoughts.
Bill
LHC
I am trying to get two different buttons to illuminate, one is NAV and one is GPS. Basically, all it is, is the GPS/NAV selector switch. In this case, its an Element floating amoung other Elements.
My issue appears that I cannot get the bitmaps to 'locate' properly in their respective (different) locations, GPS being below, and NAV being above.
I have tried a few variations, but usually only get GPS to show up. I have tried making them (the two cases) different Elements with variations on naming the strings, but that didnt do anything either.
Presently the gauge only shows up as NAV button. GPS will not illuminate.
Any idea's on what it might be?
Here is the code;
Code:
<!-- ========== GPS NAV BUTTON ============ -->
<Element>
<Element>
<Position X="634" Y="167"/>
<Select>
<Value>(A:GPS drives nav1,bool) !</Value>
<Case Value="0">
<Image Name="TruTrack_Green_GPS.bmp" Bright="Yes"/>
</Case>
</Select>
</Element>
<Element>
<Position X="632" Y="27"/>
<Select>
<Value>(A:GPS drives nav1,bool) !</Value>
<Case Value="1">
<Image Name="TruTrack_Green_NAV.bmp" Bright="Yes"/>
</Case>
</Select>
</Element>
</Element>
Here is a typical NAV/GPS switch from Aces, cira FS9;
Code:
<Element>
<Select>
<Value>(A:GPS drives nav1,bool) !</Value>
<Case Value="0">
<Image Name="Rotor_GPSNav_GPS.bmp" ImageSizes="35,40,56,64"/>
</Case>
<Case Value="1">
<Image Name="Rotor_GPSNav_Nav.bmp" ImageSizes="35,40,56,64"/>
</Case>
</Select>
</Element>
Note that on the above code, the Bitmaps will autolocate to the top corner, so locations/positions need to be put in, but I coudlnt get these/this route to work.
In writing them in two versions of Elements, one using <Case> 0, the other using <Case> 1, only NAV worked. (Does AP need to be on for the GPS button light to go on? I noticed my GPS system reads from GPS to NAV mode when the button is selected).
Here is a similar route I did also;
Code:
<Element>
<Position X="634" Y="167"/>
<Select>
<Value>(A:GPS drives nav1,bool) !</Value>
<Case Value="1">
<Image Name="TruTrack_Green_GPS.bmp" Bright="Yes"/>
</Case>
</Select>
</Element>
In writing it like the above, leaving out the ! symbol in the Value section (at the end) this still only produces a NAV button that shows up, no GPS button when GPS is selected.
Many thanks for any thoughts.
Bill
LHC
Last edited:

