For static text, use customTableItem instead of textTableItem. Your mainline
code needs to call TblSetCustomDrawProcedure. The call to WinDrawChars needs
to be moved inside the callback function passed to
TblSetCustomDrawProcedure; it should not be in the mainline code.

Dave

"Neil Fallon"  wrote in message news:[EMAIL PROTECTED]
> I'm trying to insert some static text into a text field in a table but for
> some reason it's not going in.  The following is the code that I am using.
> There must be something wrong with it but I can't see it.
>
> TblSetItemStyle (tableP, 0, 0, textTableItem);
>
> myText = "Labor Rate";
> TblGetSelection(tableP, 0, 0);
> TblGetItemBounds(tableP, 0, 0, &bounds);
> WinDrawChars(myText, StrLen(myText),bounds.topLeft.x, bounds.topLeft.y);
>
>
> Neil
>
>
>



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

Reply via email to