panel%
Implements: area-container-window<%>
Implements: subwindow<%>
A panel is a both a container and a containee window. It serves mainly
as a geometry management device, but the 'border creates a
container with a border. Unlike a pane% object, a panel%
object can be hidden or disabled.
A panel% object has a degenerate placement strategy for
managing its children; it places them all in the upper left corner
and does not stretch any of them. The horizontal-panel%
and vertical-panel% classes provide useful geometry
management.
( -> instantiate panel% () (parent _) [(style _)] [(enabled _)] [(vert-margin _)] [(horiz-margin _)] [(border _)] [(spacing _)] [(alignment _)] [(min-width _)] [(min-height _)] [(stretchable-width _)] [(stretchable-height _)])panel% object
parent : frame%, dialog%, panel%, or pane% object
style = : list of symbols in null'(border)
enabled = : boolean
#t
vert-margin = : exact integer in [0, 1000]
0
horiz-margin = : exact integer in [0, 1000]
0
border = : exact integer in [0, 1000]
0
spacing = : exact integer in [0, 1000]
0
alignment = : two-element list: '(left top)'left, 'center or 'right and 'top, 'center or 'bottom
min-width = : exact integer in [0, 10000]
0
min-height = : exact integer in [0, 10000]
0
stretchable-width = : boolean
#t
stretchable-height = : boolean#t
If the 'border style is specified, the window is created with
a thin border (only in this case, the client size of the panel may be
less than its total size).
For information about the
enabled
argument, see window<%>. For information about the
horiz-margin and vert-margin
arguments, see subarea<%>. For information about the
border, spacing, and alignment
arguments, see area-container<%>. For information about the
min-width, min-height, stretchable-width, and stretchable-height
arguments, see area<%>.
All Methods
accept-drop-files from window<%>
add-child from area-container<%>
after-new-child from area-container<%>
begin-container-sequence from area-container<%>
border from area-container<%>
change-children from area-container<%>
client->screen from window<%>
container-flow-modified from area-container<%>
container-size from area-container<%>
delete-child from area-container<%>
enable from window<%>
end-container-sequence from area-container<%>
focus from window<%>
get-alignment from area-container<%>
get-children from area-container<%>
get-client-size from window<%>
get-control-font from area-container-window<%>
get-cursor from window<%>
get-graphical-min-size from area<%>
get-height from window<%>
get-label from window<%>
get-label-font from area-container-window<%>
get-label-position from area-container-window<%>
get-parent from area<%>
get-plain-label from window<%>
get-size from window<%>
get-top-level-window from area<%>
get-width from window<%>
get-x from window<%>
get-y from window<%>
has-focus? from window<%>
horiz-margin from subarea<%>
is-enabled? from window<%>
is-shown? from window<%>
min-height from area<%>
min-width from area<%>
on-drop-file from window<%>
on-focus from window<%>
on-move from window<%>
on-size from window<%>
on-subwindow-char from window<%>
on-subwindow-event from window<%>
on-superwindow-enable from window<%>
on-superwindow-show from window<%>
place-children from area-container<%>
popup-menu from window<%>
reflow-container from area-container<%>
refresh from window<%>
screen->client from window<%>
set-alignment from area-container<%>
set-control-font from area-container-window<%>
set-cursor from window<%>
set-label from window<%>
set-label-font from area-container-window<%>
set-label-position from area-container-window<%>
show from window<%>
spacing from area-container<%>
stretchable-height from area<%>
stretchable-width from area<%>
vert-margin from subarea<%>