Hi Bill,
I finally had time to try out switching from text to formatted text. The good news is ... the color switching works perfectly! Thank you.
The bad news is ... now the text is about 1/10th the size it used to be and is now impossible to read.
So, this code, though it generated an FSX error message, actually worked (i.e. the colors switched and the text was the right size):
<Text X="172" Y="24" Bright="Yes" Length="13" Font="Glass Gauge" Color="%((G:Var1) 0 == if{ 'White' } els{ '#a0a0a0' })%!s!"
Adjust="Center" VerticalAdjust="Bottom" Fixed="Yes" Multiline="No">
<String>Course</String>
</Text>
while this code also switches colors correctly but produces text that is too small to read:
<FormattedText X="172" Y="24" Bright="Yes" Length="13" Font="Glass Gauge" Color="White" Adjust="Center" VerticalAdjust="Bottom" Fixed="Yes" Multiline="No">
<Color Value="#a0a0a0"/>
<String>%((G:Var1) 0 ==)%{if}Course%{else}\{clr2}Course%{end}</String>
</FormattedText>
I have tried searching through the main FSX SDK help file for "formattedtext" but it claims there is no such thing :Phbbbt: . I am obviously missing something, but I don't know what. Do you know what is causing the text to be resized?
Thanks for your patience. You have certainly earned the "tutor" badge.
Eric