Erasing Text

Posted by Malarious on Tue 26 Jun 2012 02:28 AM — 2 posts, 12,143 views.

#0
I have a small window right now, it does not do very much because I just decided to start messing with windows. It can be "mini-tized" which makes it a sliver so its out of the way, I can drag it around. It shows some information, and I wrote a function to write to it. The problem I have is trying to erase... the way I currently do it is to draw a filled rectangle over the text. Is there a way to erase a previously line of text? That way I could do something like:

[*] [L: Senso] [R: Morph]
Status: OK
Target: Nick
Style: Bleeding
<free space to write in>
<free space to write in>
[MINITIZE]

I am hoping theres a way to erase a specific line to rewrite so I could have status be in green when OK, red when not, etc. without having to use a rectangle each time. Is there a way to do that?
Australia Forum Administrator #1
Not really. Erasing in most contexts means replacing the "thing to be erased" with the background colour. Which is what drawing a rectangle over it does.

You can erase one line by getting the rectangle the right size.