Drop Down Tree Control Syntax

Syntax

[[.Width]Variable_Name^=<Choice_Array[!Event][?Enabled]]

Note: You must not have any space characters in the finished command, except those that may be inside entries in the Choices list.

Argument

Type

Description

%Directives%

 

Refer to Xdialog Language Directives and Operators.
[ ^=< ]

C

Indicates that this is an edit combo box that will show the nearest matching value based on the characters typed in.
Width

N

Optional. The width of the control.
Variable_Name

C

The name of a character variable to receive the user selection, or a numeric variable to receive the index value of the selected radio button. The index of the top-most button is 1.
Choice_Array

C

An array of character values.
Event

C

Optional. See Event Syntax.
Enabled

L

Optional. See Enabled Syntax.

Description

The formatting string %S=BLR% is used to specify that a tree control should be displayed with the familiar boxes and lines. [Picture]

Examples

dim treeoptions as C

 

treeoptions = <<%str%
Power . No Power
Network . Can't log in
Network . Can't connect
Network . Invalid username or password
Network . Other
Printer . Specific error message
Printer . Print job stuck in queue
Printer . Paper Jam
Printer . Can't print
Printer . Print job going to another printer
Printer . Other
Software . Program error
Software . Virus
Network . Setup new account
Software . Install software
Software . Can't access email
Hardware . Noisy
Hardware . Can't boot / hangs during boot
Hardware . No display on monitor
Printer . Install printer
Software . Computer freezes
Relocate . Equipment
Relocate . User data
Relocate . User account
Hardware . Install new hardware
%str%

 

ui_dlg_box("Drop Down Tree Control","[%S=BRL%.100option^=<treeoptions]")

See Also

Drop Down Tree Control, Xdialog Language Directives and Operators, Xdialog Control Reference, Tree Control Syntax, A Simple Tree Control, Adding Navigator Icons to a Tree Control, Adding Images to a Tree Control, Tree Control Events, Explorer Style Dialog Box, *TREE_FROM_OUTLINE(), *TREE_TO_OUTLINE()

Supported By

Alpha Five Version 5 and Above