The exitcode parameter serves the same function as the corresponding parameter of the same name in routines such as INFLD and XTREE, i.e. it returns a code indicating how the control was exited, as summarized in following table. See the flags parameter for enabling other exit keys.
|
Exitcode |
Meaning |
|
0 |
Normal exit (Escape w/ update, Enter with TXF_ENTESC) |
|
1 |
Cancel (Escape w/o update) |
|
10 |
Abort (Ctrl+C) |
|
11 |
Timeout; see txc'timeout in the txtctl parameter. |
|
-35 |
Shift+Tab (if TXF_TAB) |
|
-40 |
Ctrl+LeftArrow (if TXF_LEFT) |
|
-41 |
Ctrl+RightArrow (if TXF_RIGHT) |
|
-42 |
Ctrl+UpArrow (if TXF_UP) |
|
-44 |
Tab (if TXF_TAB) |
|
-45 |
Ctrl+Home (if TXF_HOME) |
|
-46 |
Ctrl+End (if TXF_END) |
|
-47 |
Del (if TXF_DEL) |
|
-49 to -99999 |
Another object clicked |
|
99 |
Unable to link to DLL |
|
98 |
Invalid txc'ctlno |
|
97 |
|
|
96 |
Unable to load (or save) text file |
|
95 |
Unable to allocate or lock memory |
|
94 |
Unable to load text buffer into control |
|
93 |
Control deleted by txc'delctlid |