Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Overprinting text

Author
Message
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 7th Mar 2004 21:10
How do I print a new line of text (on the monitor) over a previously printed line of text after clearing (erasing) the previous line of text. I wish to avoid overwriting (comingling) the letters of the first line with the second line. For example the desired outcome of the following would be the sole word goodbye on cursor location 0,0.

set cursor 0,0
print "hello"
set cursor 0,0
print "goodbye"

I do not want to use cls to clear the entire screen.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th Mar 2004 22:05
you should be manually syncing the screen


"What the... Moooooooo!"
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 7th Mar 2004 23:33
You could use the box command, eg.



Manually syncing the screen isn't really required for simple programs that just useing print.
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 8th Mar 2004 02:49
Thanks for the help. The box routine works just fine.

I'll be ready for the sync later.
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 8th Mar 2004 02:55
For accuracy, just set the ink to black(or whatever your background color is), print your comment that is already there, set the ink to white, and print your new comment.

-Vash the Stampede

Intel Pentium 4 3.0 Ghz 1024MB Ram NVIDIA GeForceFX 5200 128MB 19" LCD DVI Viewsonic

Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 8th Mar 2004 16:19
Thanks Vash. Another good suggestion.
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 9th Mar 2004 14:43
If this is DBPro (Not sure About DBC) Then the command

SET TEXT OPAQUE will cause it to overwite what is under it and
SET TEXT TRANSPARANT (The default) will cause it to leave what is under the text in place.

Jas

----
Http://www.jsun.co.uk

Login to post a reply

Server time is: 2024-11-26 07:29:01
Your offset time is: 2024-11-26 07:29:01