
-----------------------------------
AK.E
Wed Jan 17, 2007 4:01 pm

Partial cls?
-----------------------------------
Is there a way to clear only part of a screen?
I know one way would be to draw a white box over what I want to clear but that doesn't exactly work out like I had in mind.

Any help would be appreciated.

-----------------------------------
berrberr
Wed Jan 17, 2007 4:18 pm

Re: Partial cls?
-----------------------------------
Yep you can. If you are using View.Set / View.Update to clear the screen just use this command:

View.UpdateArea (x1, y1, x2, y2)
Where the x and y variables are the coordinates of you "box" or area to update or clear. Hope this helped.

-----------------------------------
AK.E
Wed Jan 17, 2007 4:33 pm

RE:Partial cls?
-----------------------------------
Is there any other way... because that doesn't quite work how I want it to. Because the other parts of the screen still get cleared...
Also when I'm using get it doesn't show up until AFTER i press enter.

Edit: Okay... if there is no other way could you atleast tell me how to put the cursor back at the top left of the screen like how a cls would do it?

-----------------------------------
CodeMonkey2000
Wed Jan 17, 2007 5:58 pm

RE:Partial cls?
-----------------------------------
you could just draw a box around your fill area and locate (1,1) to recenter the cursor

-----------------------------------
berrberr
Wed Jan 17, 2007 10:20 pm

Re: Partial cls?
-----------------------------------
Yes..this is the *best* way to do this. If you implement it properly you shouldn't be getting any problems. Post your code and I can help you out  :wink:
