"Frames resemble " { $link "ui-grid-layout" } " except the size of grid is fixed at 3x3, and the center gadget fills up any available space. Because frames inherit from grids, grid layout words can be used to add and remove children."
"A set of mnemonic words for the positions on a frame's 3x3 grid; these words push values which may be passed to " { $link grid-add } " or " { $link frame, } ":"
{ $description "Symbolic constant for a common input to " { $link grid-add } " and " { $link frame, } "." } print-element ;
HELP:@center $ui-frame-constant ;
HELP:@left $ui-frame-constant ;
HELP:@right $ui-frame-constant ;
HELP:@top $ui-frame-constant ;
HELP:@bottom $ui-frame-constant ;
HELP:@top-left $ui-frame-constant ;
HELP:@top-right $ui-frame-constant ;
HELP:@bottom-left $ui-frame-constant ;
HELP:@bottom-right $ui-frame-constant ;
HELP:frame
{ $class-description "A frame is a gadget which lays out its children in a 3x3 grid. If the frame is enlarged past its preferred size, the center gadget fills up available room."
"Frames are constructed by calling " { $link <frame> } " and since they inherit from " { $link grid } ", children can be managed with " { $link grid-add } " and " { $link grid-remove } "." } ;
{ $description "Adds a child gadget at the specified location. This word can only be called inside the quotation passed to " { $link make-frame } "." } ;