- Messages
- 542
- Country

I have the following page in a MFD,
The yellow boxed area lists the runways that exist for a previously selected airport.
The following is the relevant Loop that generates those lines,
Each line has a 'Click' hotspot as shown by the blue rectangle,
There are 12 separate switches in the Mouse section for each line , as per following example.
The orange boxed area reflects and indicates which specific runway has been selected,
code as follows.
As can be seen the selection text indicator overlies the 12th line of possible runways.
I would like to have the selected runway indicated by a "Different colour line" within the loop.
ie; click a line and that line changes colour to a second colour , from green to yellow.
Any help on how to configure the loop to achieve that effect would be appreciated.
Cheers
Karol
The yellow boxed area lists the runways that exist for a previously selected airport.
The following is the relevant Loop that generates those lines,
Code:
<Element>
<Position X="28" Y="65"/>
<FormattedText X="172" Y="110" Bright="Yes" Font="glassga" LineSpacing="9"
Tabs="0,30,82R,110R,138R,141L" Color="#349F34" FontSize="9" Adjust="Left" >
<String>
%((@c:WaypointAirportRunwaysNumber) s2 0 !=)
%{if}
%(0 sp1)
%{loop}
%(l1 (>@c:WaypointAirportCurrentRunway, number))
%Rw %((@c:WaypointAirportCurrentRunway, number) 1 + )%!d!:\t
%((@c:WaypointAirportRunwayDesignation))%!s!\t
%((@c:WaypointAirportRunwayDirection, degrees) (A:GPS MAGVAR, degrees) - d360)%!03d!\{dplo= }\t
%((@c:WaypointAirportRunwayLength, feet))%!d!\t
%((@c:WaypointAirportRunwayWidth, feet)) x %!d!ft\t
%((@c:WaypointAirportRunwaySurface))%{case}%{:1}Concrete%{:2}Asphalt%{:101}Grass%{:102}Turf%{:103}Dirt%{:104}Coral
%{:105}Gravel%{:106}Oil%{:107}Steel%{:108}Bituminus%{:109}Brick%{:110}Macadam%{:111}Planks
%{:112}Sand%{:113}Shale%{:114}Tarmac%{:115}Snow%{:116}Ice%{:201}Water%{end}\n
%(l1 ++ s1 l2 < d)
%{next}
%{end}
</String>
</FormattedText>
</Element>
Each line has a 'Click' hotspot as shown by the blue rectangle,
There are 12 separate switches in the Mouse section for each line , as per following example.
Code:
<!--==== RUNWAYS ====-->
<!-- select Runway from list -->
<Area Left="26" Top="66" Width="64" Height="8">
<Visible>
(L:DAT37 mode,enum) 3 ==
(L:APT_Nrst_select, number) 9 ==
(@c:WaypointAirportRunwaysNumber) 0 > and and
</Visible>
<Cursor Type="Hand"/>
<Click>0 (>L:RWY_Line_No, number)
(L:RWY_Line_No, number) (>@c:WaypointAirportCurrentRunway, number)</Click>
</Area>
<Area Left="26" Top="75" Width="64" Height="8">
<Visible>
(L:DAT37 mode,enum) 3 ==
(L:APT_Nrst_select, number) 9 ==
(@c:WaypointAirportRunwaysNumber) 1 > and and
</Visible>
<Cursor Type="Hand"/>
<Click>1 (>L:RWY_Line_No, number)
(L:RWY_Line_No, number) (>@c:WaypointAirportCurrentRunway, number)</Click>
</Area>
The orange boxed area reflects and indicates which specific runway has been selected,
code as follows.
Code:
<!-- Selected Runway Heading Readout -->
<Element>
<Position X="40" Y="166" />
<FormattedText X="145" Y="10" Font="Tahoma" FontSize="9" LineSpacing="10" Adjust="Left" Color="#93FF72" Bright="Yes">
<String>%((L:RWY_Line_No, number) (>@c:WaypointAirportCurrentRunway, number))%((@c:WaypointAirportRunwayDesignation))%!s!%
%Selected Rwy Hdg : %((@c:WaypointAirportRunwayDirection, degrees) (A:GPS MAGVAR, degrees) - d360)%!03d!%</String>
</FormattedText>
</Element>
As can be seen the selection text indicator overlies the 12th line of possible runways.
I would like to have the selected runway indicated by a "Different colour line" within the loop.
ie; click a line and that line changes colour to a second colour , from green to yellow.
Any help on how to configure the loop to achieve that effect would be appreciated.
Cheers
Karol

