Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Erasing Text

Erasing Text

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Malarious   (4 posts)  Bio
Date Tue 26 Jun 2012 02:28 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 26 Jun 2012 02:35 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,769 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.