> I have a list that is 140 pixels wide. Some of the items are more wide. And
> sometimes the chars that must be outside the list are drawn! They are drawn
> out of the list and stay there forever as the area right of the list is not
> redrawn! That looks awful.
> I'm quite sure that bounds->extent.x is always equal to 138 . (less wide
> than the list).
> Does anyone have any idea what can be the reason?
> Thanx a lot.
>
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.


--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to