This may works for you...

// Custom list call back function
void DrawListItem( Word itemNum, RectanglePtr bounds,
CharPtr* itemsText )
{
        FntSetFont( stdFont );

        Boolean noFit   = false;
        SWord   wd      = bounds->extent.x;
        SWord   len     = StrLen( itemsText );  

        FntCharsInWidth( pStr, &wd, &len, &noFit);

        WinDrawChars( itemsText , len,
bounds->topLeft.x,bounds->topLeft.y );
}

---

--- Baxter <[EMAIL PROTECTED]> wrote:
> Use the Glue functions for the older OS's.
> 
> -- 
>
-------------------------------------------------------------------------
> Free software  - Baxter Codeworks  www.baxcode.com
>
-------------------------------------------------------------------------
> 
> 
> "BlakJak" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have a list on which I write my rows with
> WinDrawChars() function.
> > Unfortunately the data in the database sometimes
> contains strings
> > longer than the width of the list. How can I limit
> the function to
> > write within the width of the list?
> >
> > I tried WinDrawTruncChars() but this caused my
> Palm 5000 (OS v1.0.7)
> > to crash.
> >
> > What is the best technique?
> >
> >
> > BlakJak :]
> >
> >
> >
> >
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
> 



        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to