PDA

View Full Version : Problem of a Altimeter gauge



marciano
01-21-2002, 08:15 AM
As I become a new gauge developer (still beginner), I have a problem with an altimeter gauge which shows altitude with a rotating needle and a digital display.
When the needle goes over the string, there is a graphic conflict and the display is erratic. The needle uses the flags IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY and the string uses only IMAGE_USE_ERASE. In the display list, the string is BEFORE the needle:
PELEMENT_HEADER Altimeter_needle_list[] =
{
&Stdby_alt_string.header,
&Altimeter_needle.header,
NULL
};

I already saw an altimeter working correctly with a string AND a needle, so I know it can be done. But I don't know how to code it.

Thanks for any help !!
Eric

WilliamCall
08-27-2002, 06:26 AM
Eric,
Sorry for the belated response. I'm doing research for building my own radar gauge when I stumbled across this post. I think the order in which the graphical elements is displayed is causing your problem. I have several gauges using "needles" and the needle element is always the last element (i.e. on top of the graphical stack up). If you like, I can send you the code for an altimeter gauge that I have.

Bill