PML Customisation
User Guide
Form Layout
:
Intelligent Resizing
: Basic use of the Frame's DOCK Attribute
Basic use of the Frame's DOCK Attribute
This section shows the basic use the frame gadget's DOCK attribute for simple vertical and horizontal frame stacks.
Figure 17:10.
Horizontal and vertical docked frames
Note:
A form has its origin (x=0, y=0) near the top left hand corner, and increases in +x and +y as new gadgets are added to it. It does not increase in -x or -y, so you must make sure that you never attempt to extend the form to the left or upwards, for example by attempting to use DOCK LEFT or DOCK TOP more than once within a specific container (frame or form).
Bearing the above warning in mind, the correct way to create simple frame stacks is shown below:
layout form !!dockedVert dialog docking nopadding
title '!!dockedVert'
frame .topFrame 'Top Frame' dock top
exit
frame .middleFrame 'Middle Frame' dock bottom
exit
frame .bottomFrame 'Bottom Frame' dock bottom
exit
exit
layout form !!dockedHoriz dialog docking nopadding
title '!!dockedHoriz'
frame .leftFrame 'Left Frame' dock left width 10
exit
frame .midFrame 'Mid Frame' dock right width 10
exit
frame .rightFrame 'Right Frame' dock right width 10
exit
exit
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.