Hi, All!
I'm using WinDrawChars and I get strange results sometimes. The code is
simple enough:
static void List2DrawItem(UInt itemNum, RectanglePtr bounds, CharPtr
*itemsText)
{
char szTranslation[MAX_WORD];
GetTranslation(PREVIOUSWORD,itemNum,szTranslation); //szTranslation can be
up to 60 chars
WinDrawChars(szTranslation, StrLen(szTranslation), bounds->topLeft.x,
bounds->topLeft.y);
}
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.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html