Page 1 of 1
How to remove TextObjects.
Posted: Fri Aug 02, 2013 10:24 pm
by Bugala
I am having difficulty in figuring out how to remove TextObjects. There dont seem to be any RemoveTextObject or similar command. Closest thing to that is FreeTextObject, which i thought would also remove Text from screen, but it doesnt.
So is there any simple way to remove TextObjects from screen?
Re: How to remove TextObjects.
Posted: Sat Aug 03, 2013 3:28 pm
by evil
To remove a textobject from your display simple use
DisplayBGPicPart() with the coordinates and sizes of your textobject (get them with
GetAttribute() ).
Alternatively you might create a sprite from your textobject instead of displaying it directly to the screen.
The sprite may be removed from the screen lateron useing removesprite (?)
Re: How to remove TextObjects.
Posted: Sat Aug 03, 2013 4:04 pm
by Bugala
Sounds it is then easier to use
TextOut() and name it into text1, text2....
Re: How to remove TextObjects.
Posted: Tue Aug 06, 2013 2:09 pm
by airsoftsoftwair
If you use layers, just use
Undo() or
RemoveLayer(). Otherwise the solutions suggested by evil apply.
Re: How to remove TextObjects.
Posted: Wed Aug 07, 2013 10:27 am
by Juan Carlos
Bugala wrote:I am having difficulty in figuring out how to remove TextObjects. There dont seem to be any RemoveTextObject or similar command. Closest thing to that is FreeTextObject, which i thought would also remove Text from screen, but it doesnt.
So is there any simple way to remove TextObjects from screen?
There is a easy solution with a BOX you can use the Box command to draw a box over the text if you use the TextObject in a background without graphics, in this case with DisplayBGPicPart