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 / cls for a paart of ther screen only

Author
Message
mesaratz
17
Years of Service
User Offline
Joined: 27th May 2007
Location: UK
Posted: 10th Mar 2010 14:34
Hi all i am trying to clear part of the screen i.e. have some txt on the screen then take it off with some kind of cls but something that will not remove everything else on the screen
I tryed
Text 400,400, “the text is here abcdef etc etc etc”
Then to clear it i was just trying something like
Text 400,400,” “(empty text string) but it don’t
I would have thought there is a better way i just can not find it .... please any help would be great

Thanks John
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 10th Mar 2010 16:19
Something like this?



IF you press and hold "Q"(which is keystate(16)) the text go blank and when you realese it it goes again on screen.Is this desired effect?

Where there is a will, there is a way.
I often edit my posts, that`s who i am
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 10th Mar 2010 17:59 Edited at: 10th Mar 2010 18:02
This code prints text in four different locations on the screen, plus your text. If you press [ENTER], it will erase your text only. This is done by simply covering it with a box using the background color.



Hope this helps.

EDIT: It will make a difference if you have the backdrop on or off. Since you don't have any 3D models, I wrote this with the backdrop off.

LB

zeroSlave
15
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 10th Mar 2010 21:38 Edited at: 10th Mar 2010 21:39
You could also use SET TEXT OPAQUE before any text commands if you just want to use the spaces.

eg:



There's something in this room that makes you can't speak well.
mesaratz
17
Years of Service
User Offline
Joined: 27th May 2007
Location: UK
Posted: 11th Mar 2010 12:11
Does it make a difference if i have load a bitmap image as a back drop and printing text over the top of the image? Will that stop the ways you have put here from working?
Many thanks
John
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 11th Mar 2010 13:31 Edited at: 11th Mar 2010 13:32
Quote: "Does it make a difference if i have load a bitmap image as a back drop and printing text over the top of the image? Will that stop the ways you have put here from working?"


Let's find out, shall we?




I found that if I use the same image for the backdrop and just re-do it, that DBP weirds out and enlarges the image. If you delete it and use another image it works okay (as I have done).

Use the [ENTER] key to erase the text from the backdrop. Use ESC to exit.

Login to post a reply

Server time is: 2024-11-23 19:26:49
Your offset time is: 2024-11-23 19:26:49