> 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.

  two solutions:

    a) use WinSetClip() to set the bounds of the area which the display
       can affect and then use WinDrawChars() 

    b) use FntCharsWidth() to determine how many characters you can 
       display and then use WinDrawChars() to display the returned number
       of characters :)

  cheers.

az.
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


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

Reply via email to