From: footballjds
Hello all. My question is simple, I hope the answer is as well. I have a banner at the top of my script. I want to paint text over this banner. It's used as a progress report so the text will be updating very often. I do not want to clear the canvas cause I don't want to repaint the banner every 10th of a second. The text over-writes the previous text making it impossible to read.
Solution?
EDIT: PLEASE*
That's going to be really difficult as you only have 1 DC to work with (The debug DC). The only way I can think of is to create a transparent form, set parent to Smart and paint on the form.
Other than that, you might find yourself doing exactly what you don't want to have to do.
If you want, you can also try making an interactive GUI:
http://villavu.com/forum/showthread.php?t=65657EDIT: Another option is to Crop a part of the bitmap that will have your text, Wipe that portion of the old Text off of Smart's DC and just paint back that portion with the new text on top. Is there a reason you don't want to just repaint onto the DC? It doesn't take too much CPU. Also Smart won't draw when minimized so it shouldn't be much of a problem.