Hi there,
[repost in order to make the subject more specific]
I would like to create a table in which one of the columns may
contain more than one *TableItem as style - some of those are
textTableItems, some are checkboxTableItem
Now I've run into the problem on how selecting a row inside such
a table. I tried the following code:
if( FrmGetFocus( frm )!=noFocus ) TblReleaseFocus( table );
if( style == textTableItem )
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 );
}
Now the following problem occurs: If the last row in the table does
NOT contain a textTableItem, the visual appearance is completely
broken (for all rows) in such a way that the complete row is being
highlighted instead of just the label. Unhighlighting makes the
whole row disappear. A rows work fine if the last row in the
table contains a textTableItem.
I know it looks as if the TblSetItemStyle somehow affect the whole
column and not the cell as specified. Can someone confirm this?
Or is there something I should do different with the non text
rows?
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/