ConsoleForm properties in EGL consoleUI

The properties of a record part of type ConsoleForm are as follows, and only formSize is required:
delimiters
Specifies the characters that are displayed before and after input fields. The characters are displayed only if the value of property showBrackets is yes.
  • Type: String literal
  • Example: delimiters = "<>/"
  • Default: "[]|"

Wherever possible, the first character is displayed before each non-constant ConsoleField, and the second character is displayed after each non-constant ConsoleField. However, the third character is displayed between two non-constant ConsoleFields that are separated by a single position.

If you specify fewer than three characters, a default character is in effect for each unspecified character. If you specify more than three characters, the fourth and subsequent characters are ignored.

formSize
The dimensions of the form. The field must contain an array of two positive integers: the number of lines followed by the number of columns.
  • Type: INT[2]
  • Example: formSize = [24, 80]
  • Default: none

If either dimension exceeds the size of the window in which the form is displayed, the form size is reduced to fit the window dimensions. However, if a ConsoleField cannot fit into the window, the program ends.

name
Form name, as used in a programming context in which the name is resolved at run time. It is recommended that the value of the name field, if any, be the same as the name of the variable.
  • Type: String
  • Example: name = "myForm"
  • Default: none

The name field is used in system functions such as ConsoleLib.displayFormByName.

showBrackets
Indicates whether the non-constant ConsoleFields are delimited by a pair of characters such as brackets.
  • Type: Boolean
  • Example: showBrackets = no
  • Default: yes

For other details, see the property delimiters.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.