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
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