Please enable JavaScript to view this site.

A-Shell Reference

Updated May 2017

This parameter is used to enable exit keys and other options according to the tables below. Note that although most of the flags are optional niceties, a few are critical to proper XTREE operation. In particular, XTF_XYXY is required, and XTF_COLDFX is nearly always appropriate. The parameter can be mapped in one of three ways:

MAP1 FLAGS,B,4          ! (XTF_xxx)

or

MAP1 XFLAGS

   MAP2 FLAGS,B,4       ! (XTF_xxx)

   MAP2 FLAGS2,B,4      ! (XTF2_xxx)

 

or

MAP1 XFLAGS, ST_XFLAGS  ! (defined in ashinc:xtree.sdf)

 

The second or third form is required if you want to use any of the XTF2_xxxx flags (i.e. XTREE Flags2), but in that case, note that you must specify XFLAGS (i.e. the structure) rather than either flags or flags2 in the parameter list.

To set individual flags, just add (or combine using the "OR" operator) the corresponding symbols or values, for example:

FLAGS = XTF_XYXY or XTF_COLDFX

or

XFLAGS.FLAGS2 = XFLAGS.FLAGS2 or XTF2_DRAGDROP2

 

flags2 and the XTF2 symbols have their own section here: XTREE Flags2. Also see XTR.MISCFLAGS for additional flags and more information.

The symbol definitions come from ashinc:xtree.def.

Symbol

Value

Description

XTF_FKEY

&h00000001

Allow F1-F16 (returning Exitcodes -1 through –16)

XTF_LEFT

&h00000002

Enable Left arrow (Exitcode -40)

XTF_RIGHT

&h00000004

Enable Right arrow (Exitcode –41)

XTF_UP

&h00000008

Enable Ctrl+Up arrow on first row (Exitcode -42). See "Locating and Selecting Items ... Use the Up/Down-arrow keys " in Mouse and Keyboard.

XTF_TAB

&h00000020

Enable Tab key (Exitcode -44), and Shift+Tab (Exitcode -35)

XTF_HOME

&h00000040

Enable Home key (Exitcode –45)

XTF_END

&h00000080

EnableEnd key (Exitcode –46)

XTF_ENTESC

&h00000100

Controls Escape and Enter keys when in editing mode. Note that INMEMO used this flag value for the "no auto-shrink" option, which isn't applicable to XTREE.

XTF_MODELESS

&h00000200

Leave list box on the screen after exit from the subroutine.

XTF_TIMOUT

&h00000400

For the PCKLST (text mode) only, sets a 200 second timeout—i.e., acts as if user had hit Escape. For XTREE, ignored; use XTR.TIMOUT instead.

XTF_FST

&h00000800

Fast selection mode. In PCKLST, this means menu items can be selected by entering the minimum number of characters to uniquely identify the item. (Without the XTF_FST flag, Enter would be required to complete the selection.) For XTREE, this means that a single click (completes the selection operation, rather than requiring a double-click or a click followed by Tab).

XTF_FCOLDEF

&h00001000

Control interpretation of first record.

XTF_XYXY

&h00002000

Interpret the 1st and 2nd parameters (row, col) as starting row, starting col, and the 8th and 9th parameters (strow, endrow) as ending row, ending col. Mandatory for XTREE, optional for PCKLST.

XTF_SORT

&h00004000

Allow sorting.

XTF_REORD

&h00008000

Allow column reordering by drag and drop. (Note that if enabled globally, it can still be turned off for individual columns.)

XTF_MSEL

&h00010000

Allow multiple selections.

XTF_MLVL

&h00020000

Multi-level (hierarchical) row support. This will be set automatically if the first column defined in coldef uses the @ code. Sample images here and here. Also see Multi-level Lists.

XTF_COLDFX

&h00040000

Coldef parameter uses the advanced syntax.

XTF_VARY

&h00080000

Variable height rows. Calculation is subject to maximum number of text lines per item as set in the xtrctl XTR.itemlines parameter.

XTF_NOSEL

&h00100000

Exit immediately, rather than waiting for the user to make a selection. (This only makes sense in conjunction with XTF_MODELESS; also see xtrctl XTR.opcode)

XTF_DISABLE

&h00200000

Disable the tree control on exit.

XTF_DEL

&h00400000

Enable Del exit (Exitcode –47)

XTF_FILANS

&h00800000

Return result via row number in answer parameter.

XTF_CTRLC

&h01000000

Causes Ctrl+C to set Exitcode 10 (as in INFLD) instead of 1.

XTF_EDITABLE

&h02000000

Indicates an Editable Tree Control—i.e. containing one or more editable columns. Note that although cformat codes (E, T, etc.) may appear to activate editing mode by themselves, this flag needs to be set manually so that it can inform the handling of the array parameter before the coldef parameter can be parsed.

XTF_TOTALS

&h04000000

Declare that last line of data contains totals (and thus is not to be sorted).

XTF_NOREDRAW

&h08000000

Defeats redraw/refresh of data.

XTF_DRAGDROP

&h10000000

Item drag-drop (within a single XTREE control).

XTF_SPLIT

&h20000000

Activates split or dual-pane mode.

XTF_NOZEROEX

&h40000000

Prevents XTREE from exiting with EXITCODE 0.

Definition file: ashinc:xtree.def

Hex-Decimal Values

 

Jump to XTREE Flags2 table.