Please enable JavaScript to view this site.

A-Shell Reference

Updated March 2021; see History

The cformat parameter is made up of one or more of the following characters, which are used to determine how the column should be justified and sorted. Note that they do not cause the data in the column to be re-formatted. For example, if a column contains dates, it is up to the calling program to preformat them appropriately to match the cformat specification. (The only purpose of defining such a column as a date is to allow sorting to work properly.) The most generic and common type would be S (string).

Key to column codes: E: Editable Related; C: Color Related; D: Character / Data Type; F: Formatting or Sorting; X: Other.

Code

Meaning

E

C

D

F

X

 ! 

Preserve foreground color.

 

C

 

 

 

@

List hierarchy (level for multi-level tree).

 

 

 

 

X

#

Numeric data, allows 0 - 9. Use  .  and  -  to allow decimal points and minus signs.

 

 

D

 

 

\

Literal backslash.

 

 

 

 

X

 . 

(Decimal point) Use with # to allow numbers with decimal points. See Numeric data.

 

 

D

 

 

+

Added to T (Editable checkbox) extends the checkbox functionality.

E

 

 

 

 

++

Added to T (Editable checkbox) further extends the checkbox functionality.

E

 

 

 

 

 - 

(Minus sign) Use with # to allow numbers with minus signs. Negative numbers are automatically displayed in red. See Numeric data.

 

 

 

 

 

 ] 

May be added to any column in a file-mode tree to force trailing blanks to be stripped before loading the cell. (This is automatic in array mode, but in file-mode, the blanks may be needed to preserve the interpretation of the returned selection string.)

 

 

 

 

X

=

Expand/Collapse State.

 

 

 

 

X

0

(zero) Application-level Auto-Filtering.

 

 

D

 

X

1, 8

Character Set allows you to specify ANSI/Latin1 or UTF8 at the column level.

 

 

D

 

 

3

3 state version of checkbox. When used in conjunction with either T or t allows the checkbox to have 3 states (0=unchecked, 1=checked, 2=indeterminate).

 

 

D

 

 

A

ASCII Sort.

 

 

 

F

X

B

Background cell color.

 

C

 

 

 

b

Background row color.

 

C

 

 

 

C

Row color.

 

C

 

 

 

c

Row color option

 

C

 

 

 

D

Standard Date Format.

 

 

D

F

 

d

Deprecated. Superceded by the expanded capability of code D and retained only for backward compatibility. Date in dd-mon-yr format.

 

 

D

 

 

E

Column contains editable text.

E

 

 

 

 

 f 

Font definition column.

 

 

 

 

X

H

Hidden column.

 

 

 

 

X

HH

Conditional Hidden column.

 

 

 

 

X

h

Indicates a column with times in it. This acts like a string column except for sorting purposes, where any time format supported by IDTIM will be recognized and sorted accordingly.

 

 

D

 

X

 I 

(Capital i) Image column.

 

 

D

 

 

K

Keep column position (i.e. do not allow it to be reordered by the user). Needed (as an override) only when flags XTF_REORD set

 

 

 

 

X

L

Lock column—i.e., do not allow it to be resized by the user or by XTREE itself. Must be accompanied by Dspwid or Dspmin or else the column will become hidden.

 

 

 

 

X

 l 

(Lower case el). Combo Box. Previously called "list," hence the  l .

E

 

D

 

 

ll

(Lower case double el) Use in place of  l  for list substitution in a non-editable column or tree.

 

 

D

 

 

M

Allow embedded CRLFs.

 

 

D

F

 

m

Used with E to specify a multi-line edit, while retaining single-line display. For both multi-line edit and display, use M with E.

E

 

 

F

 

n

Causes empty cells to always sort to the bottom, regardless of whether sorting up or down. May be used with any column type.

 

 

 

F

 

O

(Upper case "O") Indicates that this column is allowed to overflow into the next column (provided the next column contains the o option and the cell is empty.)

 

 

 

F

X

o

(Lower case "o") Indicates that an overflowing previous column may overwrite this column, provided the cell is empty. This setting is not just automatic based on the prior column, because of the possibility of the user reordering the columns at runtime. Note also that this could affect the layout of the returned item in the array parameter; so if it is critical to you that all spaces be preserved in that line, don't use this code.

 

 

 

F

X

P

The First Position Reserved option may be used with editable cells to indicate that the first position is reserved for either a space (editable) or a  |  (not editable).

E

 

 

 

 

R

Editable radio button.

 

 

D

 

 

r

Non-editable radio button. Just like t (which see for details about the column data format) except for the appearance (a circle with a dot in it rather than a square with a checkmark or "tick").

 

 

D

 

 

S

String data (left justified by default).

 

 

 

 

 

s

Defines the column as being capable of referencing the List. Similar in concept to B (Background cell color) in that it reserves the first character of each cell in the column for the index letters that associate the cell with one of the predefined lists.

 

 

D

 

 

ss

Use in place of s for list substitution using a shared list in a non-editable column or tree.

 

 

D

 

 

T

Editable checkbox. Also see + above.

E

 

 

 

 

 t 

Non-editable checkbox.

 

 

D

 

 

tt

Acts like t , but instead of always displaying in dim intensity, instead uses the same formula based on the value of the cell as with editable checkboxes. In other words, by default, tt checkboxes display in normal intensity; to force individual checkboxes to display as dim, add +4 to the cell value.

 

 

D

F

 

U

Application-editable only.

E

 

 

 

 

u

Read-only editable.

E

 

 

 

 

uu

Works like u but displays only a frame around the cell rather than overlaying the cell with an edit or combo control. This is just an aesthetic variation. Note that uu automatically exits on Enter, rather than acting like Tab, as it does in most other cell navigation situations. The theory here is that uu is mainly intended for people who prefer the keyboard to the mouse, for whom Enter would be the most natural way to "select" (i.e. exit from) the current cell.

E

 

 

F

 

V

Conditional validation: if the cell changes during editing

E

 

 

 

 

v

Unconditional validation: whether it changes or not

E

 

 

 

 

W

Auto-wrap columnar data onto multiple lines. See XTR.ITEMLINES and Comments in Allow embedded CRLFs. Sample image here.

 

 

 

F

X

X

Conditional validation.

E

 

 

 

 

x

Unconditional validation.

E

 

 

 

 

Z

Same as # (numeric) except that it overrides a Mask, causing zero-value cells to display as blank. S has the same zero-blanking mask override, but Z columns use the numeric sort rather than the natural sort.

 

 

D

 

 

<

Left justify column (default).

 

 

 

F

 

 | 

Center justify column. This applies during editing, as well as for display.

 

 

 

F

 

>

Right justify column. Note that in file mode, this causes the trailing blanks for this column to be stripped, which affects the return data. See the flags option XTF_FILANS. This applies during editing, as well as for display.

 

 

 

F

 

^

Causes sort to be case insensitive. Note that whether case sensitive or not, the collating sequence is based on the Windows locale and not the LDF.

 

 

 

F

 

 

(blank) No Strip.

 

 

 

F

X

_

(underscore) May be used with editable columns to cause the edit cell to shrink to fit only the number of allowed characters (so as to not give the user an initial false impression of the number of allowed characters). This will probably only be reasonable when a fixed pitch font is used.

E