Defining a Frame
- Last UpdatedNov 13, 2025
- 1 minute read
-
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 cannot add gadgets to it at negative coordinates relative to the frame’s origin. You can optionally declare a minimum size for the frame. For example:
Frame frame1 ‘frame 1’ SIZE 10 20
This is relevant only for NORMAL and TABSET frames; for TOOLBAR frames, the gadgets appear as a single row in the order defined that means, gadget positions are ignored.