Text Box + Directive

Syntax

%+%

Description

Defines a Text Box with auto advance. 

Discussion

The + directive defines a Text Box with auto advance. An auto-advance field is one where the cursor will jump to the next field when the current field is full. To enable auto-advance, you must specify the maximum characters of a field, and you must specify '+' in the field's format string.

Example 

In the example below, the State field (for example), has a display width of 4 characters, but a maximum allowed entry of 2 characters. The format string is always enclosed in % signs.

ui_dlg_box("",<<%dlg%
State: |[%+%2.4state];
Phone: |[%+%3.4areaCode]-[%+%3.4Exchange]-[%+%4.5Number];
Name: |[.40name];
{line=1};

%dlg%)

See Also