The callback function for drawing a list's lines (see
LstSetDrawFunction) is defined in the handbook of SDK 3.5 as
void ListDrawDataFuncType (UInt itemNum, RectanglePtr bounds, CharPtr
*itemsText).
When I define a callback function of that type in SDK 3.5, the compiler
will complain, that ListDrawDataFuncType expects a short (=Int16), and
not a UInt. (=UInt16) for itemNum.
Indeed, Int16 itemNum = 0 will reference Position 0, so - as one might
have suspected -
not a UInt16 value of type Int16 is expected by the function.
Hm...
LstSetListChoices expects a UInt.
Why should one give a negative position number to the callback function
for drawing a line?
Why Int16, and not UInt?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/