PML Customisation
User Guide
Gadget Set
:
Frame Gadgets
: Defining a Frame
Defining a Frame
You define a frame using a command sequence beginning with the command
frame
and ending in
exit
.
All the gadgets defined after the
frame
command and before
exit
will be included in and contained by the frame.
The following example defines Frame1 and its gadget collection. The frame sub-type <frame-type> is either one of the supported types TABSET, TOOLBAR, PANEL, FOLDUPPANEL, or omitted for a 'normal' or 'tabbed page frame'.
frame .frame1 <frame-type> '<frame-tag>'
paragraph .Message1 text 'This frame contains toggle buttons'
PATH DOWN
toggle .Bold 'Bold'
PATH RIGHT
toggle .Italic 'Italic'
toggle .Underline 'Underline'
exit
Frame Size
During form definition, once a frame is positioned on the form the origin remains fixed but the frame automatically expands downwards and to the right to contain any gadgets added to it. You can optionally declare a minimum size for the frame. For example:
Frame frame1 ‘frame 1’ WIDTH ... HEIGHT...
Note:
For
TOOLBAR
frames, the gadgets appear as a single row in the order defined and gadget positions are ignored.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.