- Messages
- 27
- Country

Hello,
I am getting my hands dirty with XML gauges. I have Cabin Comfort example working. Now I am trying to move a rectangle element on the screen. For simplicity I have only two elements. One is a text and the second is a rectangle, which I am trying to position. I have a variable (C:CABIN
assengerComfort). It's values is shown in the text, so I can see that my dll properly updates the variable value. Now comes the part I struggle with. I want to use LeftScript and TopScript scripts for the rectangle element to move it. Here is the example of my code. The first element shows the value as a string (0 to 100), which works properly. But the second element does not move at all (it should move diagonally). I suspect that I simply wrote the scripts wrongly. Can you believe it, just one variable and no operations? What am I doing wrong there?
In the c++ code PassengerComfort is a number.
Thanks a lot.
I am getting my hands dirty with XML gauges. I have Cabin Comfort example working. Now I am trying to move a rectangle element on the screen. For simplicity I have only two elements. One is a text and the second is a rectangle, which I am trying to position. I have a variable (C:CABIN
Code:
<Element id="Element">
<FloatPosition>120.000,115.000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<FontColor>yellow</FontColor>
<FontHeight>11</FontHeight>
<GaugeString>%((C:CABIN:PassengerComfort))%!3.0f!</GaugeString>
<HorizontalAlign>RIGHT</HorizontalAlign>
<Size>80,13</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="Element">
<FloatPosition>110.000,35.000</FloatPosition>
<LeftScript>(C:CABIN:PassengerComfort,number)</LeftScript>
<TopScript>(C:CABIN:PassengerComfort,number)</TopScript>
<Rectangle id="Rectangle">
<LineWidth>1</LineWidth>
<Width>20</Width>
<Height>20</Height>
<LineColor>yellow</LineColor>
<FillColor>yellow</FillColor>
</Rectangle>
</Element>
In the c++ code PassengerComfort is a number.
Thanks a lot.

