Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Adf Heading.xml (Read 99 times)
Dec 1st, 2004 at 12:15pm

Jaybe   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 12
*****
 
Could someone please help me with the correct <String> for this gauge.

<Gauge Name="Adf1 Heading digital" Version="1.0">
<Element>
<Visible> A:Circuit general panel on, bool)</Visible>
<Element>
<Text X="32" Y="16" Bright="Yes" Length="3" Font="Arial" Color="#00C000" Adjust="Center"

VerticalAdjust="Center" Multiline="No" Fixed="No">
<String>%((A:ADF1 Radial, degrees))%!06.1f!</String>
</Text>
</Element>
</Element>
<Mouse>
<Tooltip ID="TOOLTIPTEXT_HEADING_INDICATOR_HEADING"/>
</Mouse>
</Gauge>
 
IP Logged
 
Reply #1 - Dec 3rd, 2004 at 10:22pm

greekydeke   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 23
*****
 
     I'm no expert, but how's this:  It looks to me like you're trying to use the element type <STRING> to convert a numeric value returned by FS (an ADF radial) to a text value which the <TEXT> element will display on your digital gauge. 

     In looking through GAUGES.XDR I see that the content of sub-element type "String" included under the element type "Text" is defined as text only.  There's only one other definition in the XDR for an element type named "String", and that one is under the attribute named "PointsTo".  Its content is an enumeration type and must be either "North", "East", "South" or "West".

     And then lastly, I can't find any references to the delimiters/operators you've used in your <STRING> element in any of my XML references.

Bon chance,

 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print