List Box E Directive

Syntax

%E%

Description

The E directive defines a multiple selection list box using the standard Windows conventions for selecting multiple items.

  • Contiguous items in a list can be selected with click and SHIFT-click.

  • Non-contiguous items in a list can be selected with click and CTRL-click.

When you have multiple directives in a Format string, you separate them with semi-colons (;).

Example 

dim list as C
dim selected1 as C
dim selected2 as C
selected2 = ""
selected1 = ""
list = a5.Color_Enum()
ui_dlg_box("Multi Select List Boxes",<<%dlg%
{region}
{wrap=40}
This list box uses the %M% directive.;
Select multiple entries by just clicking each choice.;
[%M%.40,10selected1^#list];
{lf};
Selections:;
[%M%.40,5selected1];
{endregion}
|{sp}|
{region}
{wrap=40}
This list box uses the %E% directive.;
You must use Shift or Control + Click to select multiple choices.;
[%E%.40,10selected2^#list];
{lf};
Selections:;
[%M%.40,5selected2];
{endregion}
%dlg%)

See Also