Hi there,
I have a very strange problem with tables. I am already wondering
whether this is a bug in Palm OS.
I have a table with the following layout working perfectly (built
after the Examples):
customItem textItem
customItem textItem
customItem textItem
All kinds of Callbacks are set up and working fine. I am also
able to change some of the textItems into others, but if
I change the *last* textItem to - say - checkboxItem, the whole
selection scheme does not work anymore (even with the textItem rows).
The selection looks as follows:
if( table item type == textItem ) {
TblReleaseFocus( table );
TblUnhighlightSelection( table );
FrmSetFocus( frm, tableIdx );
TblGrabFocus( table, row, 1 );
fld = TblGetCurrentField( table );
FldSetInsPtPosition( fld, 0 );
FldGrabFocus( fld );
FldMakeFullyVisible( fld );
} else {
TblUnhighlightSelection( table );
TblSelectItem( table, row, 0 ); // just mark label
// We do not mess with the focus here as there is nothing
// in that row for holding a focus...
}
So normally colum 0 gets eing highlighted and the text gets the cursor.
But in the last checkbox case the highlighting stretches over the
checkBox/textItems (in all textItem rows, the checkboxes work fine).
Unselecting erases that column.
My program itself is runinning fine still, only the diplay is completely
screwed up.
Has anyone an explanation of whats happening? I am sure I am missing
something obvious. Or can it be that the last call to TblSetItemStyle does
something to the whole column, and not only ot the corresponding item?
With kind regards / Mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://www.klawitter.de
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/