Tree Control X Directive

Syntax

%X%

Description

The X directive specifies that the nodes of the tree control are populated by functions that return CR-LF delimited lists. The format of an entry in the list that defines entries is: ParentNode Separator ! FunctionCall. The Separator is defined by the Tree Control D Directive.

Supported By

Alpha Five Version 8 and Above

Limitations

Desktop applications only.

Example

dim list as C

dim initialList as C

dim current as C

list = <<%list%

scripts|!a5.script_enum(2)

functions|!a5.udf_enum(2)

colors|!a5.color_enum()

tables|!a5.table_enum()

%list%

initialList = list

ui_dlg_box("Dynamically Expanded Tree",<<%dlg%

{wrap=60}

{lf};

{lf};

[%X;S=BRL;D="|";%.60,15current^<list];

{lf};

Current selection:;

[.60current];

%dlg%)

See Also

Dynamically Expanding a Tree Control Using Function Calls, Tree D Directive