> From: Ralph Krausse
>
> I am using LstSetDrawFunction. I need to pass it some data, an
> index. I see the it is declared as:
>
> void YourFunctionNameHere(UInt16 item_no, RectanglePtr bounds,
> CharPtr *dummy);
>
> I can pass my index as the CharPtr at the end but it is the OS
> that is calling this function. How can I get the OS to pass
> this data in the last parameter?
>

I don't know where you got that function declaration.  The declaration for a
list draw function is:

void ListDrawDataFuncType(Int16 itemNum, RectangleType *bounds, Char
**itemsText)

where
        itemNum is the number of the item to draw
        bounds is the bounds of the list, relative to the window
        itemsText is a pointer to an array of pointers to the text of the list
items.

This doesn't provide you with any way to pass in more data.


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

Reply via email to