Input Alerts
- Last UpdatedOct 30, 2024
- 1 minute read
This allows you to obtain textual input from the operator via a blocking alert which overrides all other interactive activities. The alert can be summoned by the alert methods:
!!Alert.Input( !prompt is STRING, !default is STRING) is STRING
!!Alert.Input( !prompt is STRING, !default is STRING, Xpos is REAL, Ypos is Real) is STRING
!prompt is displayed to prompt the operator and !default is offered as the default value in the alert's text input field.
Xpos, Ypos define the alert’s top left hand corner in normalized screen co-ordinates.
Note:
This function has been added to provide the GUI equivalent of the command
Var !x read
which is only valid in tty mode.
To achieve flexible, user-friendly interfaces, the input alert should be used sparingly because of its blocking nature.