A graphic object is characterized by a set of properties.
Example: X-axis, Y-axis, visibility, text color, font, width, height, edit code, etc.
Concerning the X-axis and Y-axis properties of the various objects, the origin is the top left corner of the client area of the window, i.e. the area below the title bar. The Y-axis extends downwards.
Adelia's graphical layout manager allows you to work on individual objects and edit their properties.
It is also possible to modify most of these properties in the program, using instructions inserted into the 4GL source.
For example:
IF CATEGORY = 'EXPORT'
VAT_BTN:VISIBILITY = *FALSE
END
In this example, the VAT radio button will not be visible if the category is set to "EXPORT".
Properties can take alphanumerical or numerical values, or take the value of a reserved word or an associated constant.
For example:
Alpha value
IF LANGUAGE = 'ENG'
EXIT_BTN:TXT = 'Exit'
ELSE
EXIT_BTN:TEXT 'Quitter'
END
Numerical value
ENTRY_FIELD:WIDTH = 90
Reserved word
IF MODE = 'CHANGE'
CLIENT_CODE:ACTIVE = *FALSE
ELSE
CLIENT_CODE:ACTIVE = *FALSE
END
The CLIENT_FIELD field will be activated or left inactive depending on the mode.
Associated constant
CLIENT_NAME:TEXT_COLOR = _ENF_COL_RED
The CLIENT_NAME entry field will accept entries in lower-case characters.