Hi all,

        I'm hoping someone can give some guidance on an issue I'm having
when it comes to redirecting what cell gets edited in a table.  I have a
multi-column table.  What I want to happen is if the user selects any
column/field in a row only column 1 for that row gets selected and edited.
The code below does work but I get a "Table.c, Line:3019, Table already has
focus." error every time I make a table selection.  TblGrabFocus() is the
only way I know of getting a table cell into edit mode.  Why doesn't
TblReleaseFocus() fix my "Table already has focus." problem by releasing
focus?  Is there a better way of doing this?

Thanks,
Steve

case tblEnterEvent:
        col = event->data.tblEnter.column;
        if (col != 1)
        {
                tableP = event->data.tblEnter.pTable;
                row = event->data.tblEnter.row;
                TblReleaseFocus(tableP);
                TblGrabFocus(tableP, row, 1);
                handled = true;
        }

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