Software Customisation Guide

Gadget Set : Text Gadgets
To type into a text gadget on a form it must have the keyboard focus to receive the keystrokes typed by the user. The user can move the focus to another text gadget by selecting it with the mouse or stepping from one gadget to the next using the TAB key.
Specify the WIDTH, which determines the maximum number of character spaces visible. Optionally the user may specify a larger SCROLL width, which is the maximum number of characters that the gadget can hold, and scroll through. The default scroll-width is 132 characters. The maximum is 256 characters.
Specify a data type using IS which determines how a value assigned to the gadget will be displayed and how a value typed by the user will be interpreted by their PML code. The user may also supply a FORMAT object which specifies in detail how a value is to be displayed or interpreted (see below).
Specify a NOECHO keyword that indicates any characters typed should be displayed as stars: a typical use would be a gadget for the user to enter a password.
When a field is actioned its content is read and validated according to the field’s type (see Validating Input to Text Fields). If an error is detected, then the field’s background colour changes to gold to indicate an error and focus is returned to it so that the user can correct the error. If no error was detected, the SELECT event is fired for the text field and the field's callback (if any) is executed.
The data type of the variable !Value will be the same as the type of the text gadget. To get the textual value use:

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo