Anyone know what might cause the problem. Top word “Untitled” is a window title and is clean. Bottom words “Tab Red” are using a graphics.drawText event inside a container, embedded in another container. Notice how the text is bleeding into the background. The more I resize (triggering paint events) the worse it gets. Similar happens with any image (pictures) I draw.
Interesting results. I haven’t seen this before. Can you provide an example project that demonstrates this problem?
Of course, the example project doesn’t exhibit the same behaviour. So it means I have a bug somewhere. Somehow it seems I am overwriting the object 2 or more times which is giving the spider effect around the font.
Found it! graphics.draw event was looping internally - redrawing same text several times. Redim array(-1) is the fix.
Helping narrow down the issue is part of why building example projects is such a good debug step. Every once in a while, someone great like you will actually do so and figure it out!
Glad you’re up and running ![]()
Rubber ducks are also useful.
In your drawing code, try adding this to the top of the method:
g.ClearRectangle 0,0,g.width,g.height
Interesting - didn’t even know that was a method.![]()
I thought ClearRectangle in container / window Paint events punched a hole through the window. That would have just buried your “this shouldn’t loop” problem anyway.
Yes. It was more of a diagnostic step
