User`s guide

Add Code for Components in C allbacks
Available Keyboard Accelerators
GUI users can use the following keyboard accelerators to modify the content
of an edit text. These accelerators are not modifiable.
Ctrl+X —Cut
Ctrl+C —Copy
Ctrl+V —Paste
Ctrl+H D elete last character
Ctrl+A —Selectall
Table
A table can contain numbers, character data, and preset choices (drop-down
menus). Each column must contain the same type of data. You can make
a table or any column within it editable by the end user. You can specify
column formats and give rows and columns consecutive numbers or label
them individually. The number of rows a nd columns automatically adjust to
reflect the size of the data matrix the table displays. Beside having callbacks
common to most components (
ButtonDownFcn, DeleteFc n,andKeypr essFcn),
tables have the following special callbacks:
CellEditCallback
Cell Sele ctionCallback
These callbacks are unique to tables and are described below. Both issue
event data.
Table CellEditCallbacks
If a table is u ser editable (because one or more columns have their
ColumnEditable property set to true), the CellEd itCallback fires every
time the user changes the value of a table cell. The callback can use event
data passed to it to identify which cell was changed, what the previous value
for it was and what the new value is. F or example, it can assess whether
the new value is valid or not (e.g., numbers representing a person’s height
or weight must be positiv e); the callback can issue an error a lert and then
replace the invalid value with the previous value.
8-35