Form and field properties

The form object, which is always a child object of the window object, represents a single 4GL form being displayed within a window. It is primarily used as a container for other objects representing 4GL objects and user control objects existing within the form.

Form XML code:

The name of a form used as its ID, is based on the name under which the form was opened in the 4GL code. This is the name given to the form in the open form statement, and not the name of the form file:

MAIN

OPEN FORM f_myform FROM "f_myform_file"

# Open a form, which will be called "myform" in
# the thin-client

DISPLAY FORM f_myform

CALL fgl_getkey()

END MAIN

If the form is opened with an OPEN WINDOW WITH FORM statement, then the name of the form is identical to the file name of the form:

MAIN

OPEN WINDOW w_mywindow AT 7, 3

WITH FORM "f_invoice_details"

ATTRIBUTE(BORDER, YELLOW)

# Open a window with a form.

END MAIN

Field Filter

A field object is an object which represents any input field within a form including graphical widgets such as dynamic label, button, bmp_field, combo box and image which are also classified and defined as fields. They are defined in a form file in the Attribute section (in a .per form) or added to the form template (in a .4fm file)

Cursor

Description: Cursor.png Cursor sets the type of the cursor when it moves to a selected element.

These options are available:

Arrow

Cross

I beam

Size All, Size NESW, Size NS, Size NWSE, Size WE

Up Arrow

Wait Cursor

Help

H  Split, V Split

Hand

If this option is applied globally, the cursor appearance changes within the whole application.

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.