I think you might not understand how the callback notion works.

You tell the system the name of a function to call whenever it wants 
to draw a list item.  You'll have to write that function yourself. 
The system will tell you, when it calls that function, to draw item 
"n" at position "x,y".  Your function can then draw the string, 
choose which bitmap to draw and then draw that, and whistle Dixie too 
if you want.

Take a look at the doc for LstSetDrawFunction, and for the 3 items in 
the "See Also" section, especially ListDrawDataFuncType.

The sample source code for the Address Book contains an example 
(AddrDialList.c).

At 10:52 AM +0000 2/13/01, Manal wrote:
>Thank you for your response. I tried it, but it seems that what I
>want is a little but different.
>I need to draw different lines in the list. Example:
>First item in the list is a string and a certain bitmap
>The rest of the items each exist of:
>a different String and a choice between 2 different bitmaps
>(depending on a certain value)
>
>How can I send the data that is drawn to the callback function?
>Any sample code?
>Thanks
>Manal

----
Hal Mueller                [EMAIL PROTECTED]
Mobile Geographics LLC     http://www.mobilegeographics.com/
Seattle, Washington        (206) 297-9575
 

-- 
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