>     // Determine the length of text that will fit within the list bounds.
>     lstWidth = bounds->extent.x - 2;
>     textLen = StrLen(resultText);
>     FntCharsInWidth(resultText, &lstWidth, &textLen, &fits);
>     charLen = FntCharsWidth (resultText, textLen);

You don't need to calculate charLen here... you already have the real 
length of the text in your lstWidth variable after FntCharsInWidth 
returns.

>     // calculate the offset from the right boundary of the cell
>     x = (bounds->topLeft.x + bounds->extent.x) - charLen;

This expression seems OK.

>     
>     // Now draw the text into the table.
>     WinDrawChars(resultText, textLen, x, bounds->topLeft.y);

This seems fine too.
-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/

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

Reply via email to