I'm testing with OS 3.5, if it makes any difference in this scenario.
I have a table where all row drawing is done via a custom draw procdure. No
problem there; I do it routinely. The table is just one column wide, all 160
pixels, and the table rows are not editable but merely display information.
But in this instance each row needs to be 22 pixels high so I can accomodate
what needs to be drawn. In my InitTable() routine I use in part:
// Initialize table column properties
TblSetColumnUsable( tbl, 0, true );
TblSetColumnWidth( tbl, 0, 160 );
TblSetCustomDrawProcedure( tbl, 0, DrawCourtTableRow );
// Initialize table row properties
for( i=0; i < TABLE_ROWS; i++ )
{
TblSetRowHeight( tbl, i, 22 );
TblSetRowStaticHeight( tbl, i, true );
TblSetItemStyle( tbl, i, 0, customTableItem );
}
Everything works fine except selecting a row in the table. If you tap within
the top 11 pixels per row, I get the expected tblSelectEvent event. However, it
highlights only the top half of the table row, that is, 11 pixels. Worse, if
you tap the bottom half of the row, ie within the bottom 11 pixels, it does not
fire a tblSelectEvent.
How do I make the entire 22 pixel row height trigger a table select event, and
the entire row height be highlighted as selected?
I thought the TblSetRowStaticHeight() may do it, but it didn't.
Thanks
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/