PDA

View Full Version : I need Help Please : XML commands



flyboy73
03-23-2006, 11:01 AM
Hello I am developing Announciators for Autopilot . I am Using XML
The problem I have is some of the announicators require two colors
For example : one condition = color="green" and a second condition requires color="white" How would I be able to switch colors in the same line of Code ? Is is it possible ?

I know you can achieve this with two diffrent segements , but the problem I have is that I have to use the <string> {else} command i.e.
several text announciators are required for same position.


I would really appreciate your help ..

You can email me at theflyer_98@hotmail.com

Tom

rcbarend
03-23-2006, 01:17 PM
Hi Tom,

I assume you refer to the Color in the Text section ?
(Note: I use hex value for colors)

For a simple boolean condition, you can use:

Color="%('#FF0000' '#FFFFFF' (L:Condition,bool) 0 == ?)"

Or if the condition has more values (enumerated), use e.g.:

Color="%('#FF0000' '#FFFFFF' '#00FF00' 3 (L:Condition,enum) case)"
The "3" means that the condition can have 3 values (0,1,and 2).

Cheers,

Rob Barendregt

flyboy73
03-28-2006, 02:59 AM
Thanks Rob helped alot ...