Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Basic Use of the Frame's DOCK Attribute

  • Last UpdatedMar 10, 2023
  • 1 minute read

This section shows the basic use the frame gadget's DOCK attribute for simple vertical and horizontal frame stacks.

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

TitleResults for “How to create a CRG?”Also Available in