: edit_box
Let the user type a line of text. DCL Active Tile
This active tile displays an edit box tile that prompts the user to type a number or text. Text in the edit box is left-justified. The program appends the null character (\0) to the end of the string the user types. If an edit_limit is specified, and the specified character count is reached, all user entry other than backspace and delete are ignored.
Valid Attributes
: edit_box {
action = "(string)";
alignment = position;
allow_accept = flag;
edit_limit = int;
edit_width = number;
fixed_height = flag;
fixed_width = flag;
height = number;
is_enabled = flag;
is_tab_stop = flag;
key = "string";
label = "string";
lower_only = flag;
mnemonic = "char";
password_char = "char";
read_only = flag;
upper_only = flag;
value = "string";
width = number;
}
Example
: edit_box {
action = "(texted)";
allow_accept = true;
edit_limit = 31;
key = "EB";
label = "File name: ";
mnemonic = "F";
value = "drawing";
}
NOTE
- The label attribute defines the edit box's title; it is left-justified.
- The value attribute holds the initial text displayed by the edit box; it is left-justified.
- The following attributes are unique to the implementation of DCL included with progeCAD: lower_only, read_only, and upper_only.
Related DCL Tiles