Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!cs.edinburgh.ac.uk!nick From: nick@cs.edinburgh.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawstring Problem Message-ID: <640@skye.cs.ed.ac.uk> Date: 16 Oct 90 13:06:57 GMT References: Sender: nnews@cs.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk Organization: Wavetables 'R' Us Lines: 24 In article , rg2c+@andrew.cmu.edu (Robert Nelson Gasch) writes: > I'm using graphics and the Drawstring function. I need to use Drawstring > since I have to display status lines that get updated. The problem is, > once you have put something in your window with Drawstring, it is > like you glued it to the window. You can't write over it since that will just > put the new string over the old one and you end up with something > completeley unledgible. What is the most sensible way to erase strings > in this situation? Don't know about the most sensible, but the easiest is to use EraseRect. > The method should be flexible as the size of the > text displaying area is subject to frequent change. Or, do you mean the size of the text? If you've got an unknown amount of text, you could use a fixed size rectangular region and draw the text with TextBox. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcsun!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ "Now remember - and this is most important - you must think in Russian."