- Messages
- 10,158
- Country

Hey guys,
Perhaps you can see what I am doing wrong. I have tried quite a number of variations and I am exhausted on idea's.
This 'should' display an active 'green lit button' when NAV is selected in Auto Pilot. When you select GPS, then the NAV button should turn off, and the GPS button should go green. Likewise, it should be turning GPS mode on and off, with off being NAV mode.
What happens presently is the NAV is continuously lit.
Here is my layout as it is presently;
ELEMENTS;
MOUSE CLICK ZONES;
I used this particular click code from Fr. Bills great 'multi-click zone' code; located here; http://www.fsdeveloper.com/forum/showthread.php?t=10439 (I have tried many, but today, thought I would try this approach).
On the Elements, I have tried a few variations, and none so far seem to work, only NAV is on, GPS will not illuminate.
Here are some experimental <Visible> variants I had also tried;
Any idea's on what I am doing wrong? Perhaps I am missing an input for autopilot and thus its not working?
Bill
Perhaps you can see what I am doing wrong. I have tried quite a number of variations and I am exhausted on idea's.
This 'should' display an active 'green lit button' when NAV is selected in Auto Pilot. When you select GPS, then the NAV button should turn off, and the GPS button should go green. Likewise, it should be turning GPS mode on and off, with off being NAV mode.
What happens presently is the NAV is continuously lit.
Here is my layout as it is presently;
ELEMENTS;
Code:
<!-- ========== NAV BUTTON ============ -->
<Element Name="NAV GREEN BUTTON">
<Position X="632" Y="27"/>
<Visible>(L:NAV GPS SWAP, bool) 0 == ! (>L:NAV GPS SWAP, bool) 0 == </Visible>
<Image Name="TruTrack_Green_NAV.bmp" Bright="Yes"/>
</Element>
<!-- ========== GPS BUTTON ============ -->
<Element Name="GPS GREEN BUTTON">
<Position X="634" Y="167"/>
<Visible>(L:NAV GPS SWAP, bool) 1 == ! (>L:NAV GPS SWAP, bool) 1 == </Visible>
<Image Name="TruTrack_Green_GPSS.bmp" Bright="Yes"/>
</Element>
MOUSE CLICK ZONES;
Code:
<!-- ====== NAV SWITCH MK-VII ====== -->
<Area Left="644" Right="698" Top="37" Bottom="67">
<Cursor Type="Hand"/>
(L:NAV GPS SWAP,enum) 0 ==
if{
TOGGLE_GPS_DRIVES_NAV1
}
</Area>
<!-- ====== GPS SWITCH MK-VII ====== -->
<Area Left="634" Right="167" Top="37" Bottom="67">
<Cursor Type="Hand"/>
(L:NAV GPS SWAP,enum) 1 ==
if{
TOGGLE_GPS_DRIVES_NAV1
}
</Area>
I used this particular click code from Fr. Bills great 'multi-click zone' code; located here; http://www.fsdeveloper.com/forum/showthread.php?t=10439 (I have tried many, but today, thought I would try this approach).
On the Elements, I have tried a few variations, and none so far seem to work, only NAV is on, GPS will not illuminate.
Here are some experimental <Visible> variants I had also tried;
Code:
<Visible>(L:NAV GPS SWAP, bool) 0 == ! (>L:NAV GPS SWAP, bool) 0 == </Visible>
<Visible>(L:NAV GPS SWAP, bool) 0 == </Visible>
<Visible>(L:NAV GPS SWAP,enum) 0 ==
if{
TOGGLE_GPS_DRIVES_NAV1
}
</Visible>
Any idea's on what I am doing wrong? Perhaps I am missing an input for autopilot and thus its not working?
Bill
Last edited:

