I do have a callback...

rows = TblGetNumberOfRows(table);
// set all of the table items to be custom
for (i = 0; i < rows; i++) {
        for ( j = 0; j < HGPAGE_MAX_COLS; j++ ) {
                TblSetItemStyle(table, i, j, customTableItem);
        }
        ...
}

// set the columns usable or not usable, width, spacing, and the draw procedure
for ( i = 0; i < HGPAGE_MAX_COLS; i++ ) {
        ...
        TblSetCustomDrawProcedure(table, i, HGPage::DrawItemCallback);
}


I step through the code in the debugger and the call to 
TblSetItemStyle **Does absolutely nothing**!

Thanks for the answer though.

Dan Hewins
Synergy Solutions, Inc.


At 6:40 PM -0500 2/24/00, McMicken, Steven wrote:
>You must have a callback routine for the column that you call to draw the
>contents at display time.  Chapter 8 of "Palm Programming:  The Developer's
>Guide" gives good coverage of table handling.  You can find it at this link,
>http://www.palm.com/devzone/docs/pptdg/ch08.htm#TopOfPage.
>
>Regards,
>
>Steve
>
>>  -----Original Message-----
>>  From: Dan Hewins [mailto:[EMAIL PROTECTED]]
>>  Sent: Thursday, February 24, 2000 5:28 PM
>>  To: Palm Developer Forum
>>  Subject: customTableItem not working properly (they are
>>  checkboxTableItems)
>>
>>
>>  Hi all,
>>
>>  I am having a recurrence of a VERY strange problem that I was
>>  experiencing with CodeWarrior r5 and now I am having with r6.
>>
>>  I am trying to make a table full of customTableItems and they are all
>>  turning out to be checkboxTableItems.
>>
>>  Here's some code I use:
>>
>>  for (i = 0; i < rows; i++) {
>>      for ( j = 0; j < HGPAGE_MAX_COLS; j++ ) {
>>              TblSetItemStyle(table, i, j, customTableItem);
>>      }
>>      ...
>>  }
>>
>>  The call to TblSetItemStyle **Does absolutely nothing** when I step
>>  through in the debugger.  All of the items are initially
>>  checkboxTableItems and after the call to TblSetItemStyle, they still
>>  are checkboxTableItems.
>>
>>  I am using CodeWarrior for Palm OS R6 and the 3.5 SDK:
>>
>>  Palm OS 3.5 Headers
>>  PalmRez Post Linker (v4.1b8 created Jan 12, 2000 2:40 PM)
>>  PalmPlugin (v1.6.2d1 created Jan 12, 2000 2:40 PM)
>>
>>  Any ideas?
>>
>>  Has anyone else had this problem?
>>
>>  Thanks,
>>  Dan Hewins
>>  Synergy Solutions, Inc.
>>
>>  --
>>  For information on using the Palm Developer Forums, or to
>>  unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>>
>>
>
>--
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palm.com/devzone/mailinglists.html


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to