Thanks
I expected so but I did not stumble onto the text you specified for
"Right at the beginning of the documentation on the type
TableDrawItemFuncType is the wording "This function is called during
TblDrawTable and TblRedrawTable". Your callback function is called by the
system, not by you."
Thanks for clearing it up.
-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 10:54 AM
To: Palm Developer Forum
Subject: Re: TblSetCustomDrawProcedure question
> In the function
>
> TblSetCustomDrawProcedure
>
> you set the callback procedure for the specified column. That makes
sense.
> What does not is when the callback function is called, there are no params
> passed to the function in the calling statement, but the prototype for the
> callback function is
When you call TblSetCustomDrawProcedure, you're just passing the address of
the routine. That gets stored in the table's column information, and later
when the column is drawn, your routine gets called with all four parameters
specified by the system.
> The callback procedure should have this prototype:
> void TableDrawItemFuncType ( VoidPtr table,
> Word row, Word column, RectanglePtr bounds);
>
> How are these params getting passed to the cell drawing function (the
> callback function) and where is it called? I am looking at a table
example
> but all I see is the prototype, the setcallback function and the
definition
> of the drawcell function.
Right at the beginning of the documentation on the type
TableDrawItemFuncType is the wording "This function is called during
TblDrawTable and TblRedrawTable". Your callback function is called by the
system, not by you.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/