Article # 463, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How to start editing a cell from keyboard.
Q. How can I start to edit a table cell from the keyboard (i.e. not doubling-tapping the pen)? A. You can intercept MSG_META_KBD_CHAR at the Table object, and if it's the Enter key, then do the following: Make a local variable of type TableEditCellTextParams structure. Use MSG_TABLE_GET_CURRENT_SELECTION to get the current selected cell, then set the TableEditCellTextParams structure's TECT_cells field with that cell; set the TECT_text to NullHandle, and TECT_length to 0. Then call MSG_TABLE_START_EDIT_CELL_TEXT on yourself, passing in the TableEditCellTextParams structure.