The rectangle you pass basically just tells windrawchars where to start
drawing (topLeft.x, topLeft.y).
Some things about using windrawchars would certainly be easier if it were
smart enough to handle wrapping or clipping. But then it's just as likely
that it would wrap or clip something you don't want it to, so being able to
(having to) control it yourself isn't really a bad thing either.
DeAnna
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Hartman
Sent: Wednesday, April 26, 2000 12:57 PM
To: Palm Developer Forum
Subject: Re: WinDrawChars problem
Neil Rhodes wrote in message <9610@palm-dev-forum>...
>
>WinDrawChars *will* draw outside the bounds of the rectangle passed to a
>list-drawing routine. You need to check the width of the text *before*
>calling WinDrawChars. Figure out how many chars you can safely draw, and
>draw only that many.
>
Then what is the point of the rectangle we pass? Aaron suggested
setting the clipping region before calling WinDrawChars... but shouldn't
that be part of what WinDrawChars does?
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html