This output parameter returns a single numeric code indicating how the tree was exited. For the most part, these exitcodes are common to other several routines (INFLD, XTEXT, EVENTWAIT).
Value |
Depends On |
Description |
---|---|---|
29 |
|
Indicates user clicked on drop-down arrow of a "self service" combo cell. |
11 |
XTR.timeout |
Time out in milliseconds |
10 |
XTF_CTRLC |
Ctrl+C. Note that XTF_CTRLC works even if Ctrl+C has been disabled (see CCOFF). |
1 |
|
Escape |
0 |
|
Normal exit by hitting Enter or double-clicking on an item |
-1 thru -16 |
XTF_FKEY |
F1-F16 (enable with XTF_FKEY) |
-35 |
XTF_TAB |
Shift+Tab. If not enabled for exit, Tab and Shift+Tab may be used in conjunction with editable cells to navigate between them. |
-40 |
XTF_LEFT |
Left-Arrow. When editing a cell, left arrow will operate within the cell; use CTRL+LEFT to generate exitcode. |
-41 |
XTF_RIGHT |
Right-Aarrow. When editing a cell, right arrow will operation with the cell; use CTRL+RIGHT to generate exitcode. |
-42 |
XTF_UP |
Up-Arrow |
-43 |
XTF2_DOWN |
Down-Arrow on last row |
-44 |
XTF_TAB |
Tab key |
-45 |
XTF_HOME |
Home key |
-46 |
XTF_END |
End key |
-47 |
XTF_DEL |
Del key |
-48 |
cformat codes x,X |
Exit for validation of an editable cell, typically on exit from the cell, except in the case of cformat uX, where the exit for validation occurs on entry into the cell. See the various editable cell controls in cformat and Editable Tree Controls for more details. |
-51 |
Exit on receipt of character defined in list (Advanced Coldef Options) |
|
-59 |
|
Double-click on a read-only editable cell (cformat code u) |
-75 |
XTF2_DRAGDROP |
File has been dragged and dropped on the XTREE control, when enabled via XTF2_FILEDROP. |
(others) |
|
A click on any other control which generates a standard virtual key click string (e.g. VK_xF101) will cause XTREE to exit with the corresponding exitcode. Several of the Advanced Coldef Options also allow configuration of exitcodes for specific events (e.g. ClickExit, DropExit, PopupMenu, etc.) |