3.17 dialog%
Implements: top-level-window<%>
A dialog is a top-level window that is modal: while the dialog is shown, all other top-level windows in the dialog's eventspace are disabled.
(->newdialog% (label_) [(parent_)] [(width_)] [(height_)] [(x_)] [(y_)] [(style_)] [(enabled_)] [(border_)] [(spacing_)] [(alignment_)] [(min-width_)] [(min-height_)] [(stretchable-width_)] [(stretchable-height_)])dialog%object
label: string (up to 200 characters)
parent=#f:frame%ordialog%object or#f
width=#f: exact integer in [0, 10000] or#f
height=#f: exact integer in [0, 10000] or#f
x=#f: exact integer in [0, 10000] or#f
y=#f: exact integer in [0, 10000] or#f
style=null: list of symbols in'(no-caption resize-border no-sheet)
enabled=#t: boolean
border=0: exact integer in [0, 1000]
spacing=0: exact integer in [0, 1000]
alignment='(center top): two-element list:'left,'center, or'rightand'top,'center, or'bottom
min-width=0: exact integer in [0, 10000]
min-height=0: exact integer in [0, 10000]
stretchable-width=#t: boolean
stretchable-height=#t: booleanThe
labelstring is used as the dialog's title in its title bar. If the dialog's label is changed (seeset-label), the title bar is updated.The
parentargument can be#for an existing frame. Under Windows, ifparentis an existing frame, the new dialog is always on top of its parent. Under Windows and X, a dialog is iconized when its parent is iconized.If
parentis#f, then the eventspace for the new dialog is the current eventspace, as determined bycurrent-eventspace. Otherwise,parent's eventspace is the new dialog's eventspace.If the
widthorheightargument is not#f, it specifies an initial size for the dialog (in pixels) assuming that it is larger than the minimum size, otherwise the minimum size is used. Under Windows and Mac OS X (and with some X window managers) dialogs are not resizeable.If the
xoryargument is not#f, it specifies an initial location for the dialog. Otherwise, if no location is set before the dialog is shown, it is centered (with respectparentif not#f, the screen otherwise).The
styleflags adjust the appearance of the dialog on some platforms:'no-caption-- omits the title bar for the dialog (Windows)'resize-border-- adds a resizeable border around the window (Windows) or grow box in the bottom right corner (Mac OS X)'no-sheet-- uses a movable window for the dialog, even if a parent window is provided (Mac OS X)
Even if the dialog is not shown, a few notification events may be queued for the dialog on creation. Consequently, the new dialog's resources (e.g., memory) cannot be reclaimed until some events are handled, or the dialog's eventspace is shut down.
For information about the
enabledargument, seewindow<%>. For information about theborder,spacing, andalignmentarguments, seearea-container<%>. For information about themin-width,min-height,stretchable-width, andstretchable-heightarguments, seearea<%>.
Methods
on-subwindow-char
show
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<%>
can-close? (augmentable only) from top-level-window<%>
can-exit? from top-level-window<%>
center from top-level-window<%>
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-cursor from window<%>
get-edit-target-object from top-level-window<%>
get-edit-target-window from top-level-window<%>
get-eventspace from top-level-window<%>
get-focus-object from top-level-window<%>
get-focus-window from top-level-window<%>
get-graphical-min-size from area<%>
get-handle from window<%>
get-height from window<%>
get-label from 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<%>
is-enabled? from window<%>
is-shown? from window<%>
min-height from area<%>
min-width from area<%>
move from top-level-window<%>
on-activate from top-level-window<%>
on-close (augmentable only) from top-level-window<%>
on-drop-file from window<%>
on-exit from top-level-window<%>
on-focus from window<%>
on-message from top-level-window<%>
on-move from window<%>
on-size from window<%>
on-subwindow-char from dialog%
overrides on-subwindow-char from window<%>
on-subwindow-event from window<%>
on-superwindow-enable from window<%>
on-superwindow-show from window<%>
on-system-menu-char from top-level-window<%>
on-traverse-char from top-level-window<%>
place-children from area-container<%>
popup-menu from window<%>
reflow-container from area-container<%>
refresh from window<%>
resize from top-level-window<%>
screen->client from window<%>
set-alignment from area-container<%>
set-cursor from window<%>
set-label from window<%>
show from dialog%
overrides show from top-level-window<%>
overrides show from window<%>
spacing from area-container<%>
stretchable-height from area<%>
stretchable-width from area<%>