Ecuador -=[NM]=-
May 2nd, 2004, 02:37 AM
Hi there,
I shortly wrote a progressbar using start 'n end colors to create a gradient bar. This works out fine, but I have a problem when it comes to displaying the text as soon as the bar reaches 50%.
At start ( < 50% ) the bkColor = 0,0,0 and opaque, but when I change it to transparent and the bar increases, the text displayed gets messed up, because it does not update and remove the prior text display.
My workaround was to keep the background opaque and then rip out the latest color values and apply it to the bkColor. The
problem then is that the bar "pops out" meaning that the 50% display gets colored before the bar reaches, say 51 or 52% that would cover this color popup.
Is there any possibility to create the text transparent without using Invalidate() or Update() ? If I do so, the bar doesn't get painted anymore...
:mad:
I shortly wrote a progressbar using start 'n end colors to create a gradient bar. This works out fine, but I have a problem when it comes to displaying the text as soon as the bar reaches 50%.
At start ( < 50% ) the bkColor = 0,0,0 and opaque, but when I change it to transparent and the bar increases, the text displayed gets messed up, because it does not update and remove the prior text display.
My workaround was to keep the background opaque and then rip out the latest color values and apply it to the bkColor. The
problem then is that the bar "pops out" meaning that the 50% display gets colored before the bar reaches, say 51 or 52% that would cover this color popup.
Is there any possibility to create the text transparent without using Invalidate() or Update() ? If I do so, the bar doesn't get painted anymore...
:mad: