- The
PmForm object is created automatically:
The
PmForm object can be used to
create a data input window (form) dynamically (i.e. in the script). Each "input value" represents one
Pmf object, i.e. one item of the form.
The form can be created also by the
PmaPanel object, but the
PmForm object allows to create such form dynamically and more simply, because the form items (
Pmf objects) are positioned and resized automatically as needed.
In the
PmaPanel object it is also possible to use the
PmForm object
by means of the PmgForm object.
How to use the PmForm object:
2) Create the
PmgForm object in the panel (in the
PmaPanel object) aside other
Pmg objects.
3) Create a single the
PmgForm object in the panel (in the
PmaPanel object). Stretch it to the whole panel area in the
PmgRoot.onViewerResize event.
This procedure is similar to the procedure 1), but it is enveloped into the
PmaPanel object.
This may be handy because the script filling the
PmForm object is located in a single global location (in the
PmaPanel object) and therefore it can be opened from any other panel.
Main areas for placing the Pmf objects:
The
PmForm object automatically creates several system areas (of
PmfLayout objects).
All these objects have an identifier beginning with the
$ character.
$root:
Root of all form areas. It is a parent of the areas
$main and
$sys. The preset location is "
Subtype:horz".
$main:
Main area that is default for creating all
Pmf objects by the
PmForm.CreateItem method.
- This
PmfLayout object is preset to have "
Subtype:vert" so all objects created in it will be placed vertically (i.e. one uder the other).
$sys:
System area where the application designer can place
Pmf objects.
- This area is displayed only if there are some Pmf objects present.
- If the area is displayed then the preset placement is to the right from the area
$main. The placement can be changed by means of the
PmForm.SysLayoutPos property.