Please enable JavaScript to view this site.

A-Shell Reference

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

Flag

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

XTF_EDITABLE

Indicates exit from a cell for validation.

-51

(no flag)

Exit on receipt of character defined in ExitChars

-59

 

Double-click on a read-only editable cell (coldef format code u)

-69

 

Click on close-tab "x" button in TabX control

-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. You can also define left/right click exitcodes for columns and context menus using the ClickExit= and PopupMenu= Advanced Coldef Options.