- Messages
- 533
- Country

Hello,
I am a beginner in XML, and I wrote the simplest possible XML gauge to test the transparency on a rectangle, using fs9. Here is my code:
Bckgrd10.bmp is a full-black image of 10 by 10 pixels. The rectangle size is 5 by 5 so that it should take half of the gauge size in width and height.
Everything works except the position of the rectangle !! Even by setting the position to 0,0, it is not positioned on the top left corner of the gauge.
If I set the gauge position at 0,0 in the panel like this:
the rectangle is not displayed on the top left corner of the panel. There is a small offset.
Can someone explain me this?
Any help is welcome.
Eric
I am a beginner in XML, and I wrote the simplest possible XML gauge to test the transparency on a rectangle, using fs9. Here is my code:
Code:
<Gauge Name="Rectangle 1" Version="1.0">
<Image Name="Bckgrd10.bmp"/>
<Element>
<Position X="0" Y="0"/>
<Visible>1</Visible>
<Rectangle Width="5" Height="5" FillColor="#FF0000" Bright="Yes" Transparency="0.75"/>
</Element>
</Gauge>
Everything works except the position of the rectangle !! Even by setting the position to 0,0, it is not positioned on the top left corner of the gauge.
If I set the gauge position at 0,0 in the panel like this:
Code:
gauge03=XMLTest!Rect1, 0,0,100,100
Can someone explain me this?
Any help is welcome.
Eric

