- Messages
- 165
- Country

I have this gauge in a popup panel. It show Left Fuel tank gallons
The gauge work with a background bitmap and another one that that indicate the qty.
My problem is that The whole indicator (Blue section) move to the left as the fuel drops, but only the right side must move to the left. the left side must stay as is.
here is what I am talking about.
Here is my code.
QUESTION?
Is there a way to have this area filled without having to use bitmaps. I basically just need a visual gauge indicating what the fuel level is.
If not, how can I get the left side to show as if that always stay put. I dont know how masks work.
Any help/guidance/recommendations to do it in another way will be appreciated.
Edit
Or if someone has a similar gauge that they have, that work properly, that you dont mind sharing, so that I just can look at the gauge and how it is being done, it can be sent to bliksimpie at gmail dot com.
The gauge work with a background bitmap and another one that that indicate the qty.
My problem is that The whole indicator (Blue section) move to the left as the fuel drops, but only the right side must move to the left. the left side must stay as is.
here is what I am talking about.
Here is my code.
Code:
<Gauge Name="Fuel left tank" Version="1.0">
<Image Name="Fuel.bmp" Bright="No" />
<Element>
<Element>
<Position X="20" Y="20"/>
<Text X="80" Y="25" Adjust="Left" Length="32" Font="Arial" Color="black" Bright="No">
<String>%((A:FUEL TANK LEFT MAIN QUANTITY, gallons))%!4.1f!</String>
</Text>
</Element>
<Element>
<Position X="100" Y="105"/>
<Image Name="fuelindicator.bmp">
<Nonlinearity>
<Item Value="26.5" X="0" Y="1"/>
<Item Value="13.25" X="100" Y="1"/>
<Item Value="0" X="200" Y="1"/>
</Nonlinearity>
</Image>
<Shift>
<Value Minimum="0" Maximum="26.5">
(A:FUEL TANK LEFT MAIN QUANTITY, gallons)
</Value>
<Delay PixelsPerSecond="200"/>
</Shift>
</Element>
</Element>
</Gauge>
QUESTION?
Is there a way to have this area filled without having to use bitmaps. I basically just need a visual gauge indicating what the fuel level is.
If not, how can I get the left side to show as if that always stay put. I dont know how masks work.
Any help/guidance/recommendations to do it in another way will be appreciated.
Edit
Or if someone has a similar gauge that they have, that work properly, that you dont mind sharing, so that I just can look at the gauge and how it is being done, it can be sent to bliksimpie at gmail dot com.
Last edited:


