(make-object mred:testable-dialog-box% parent title modal x y width height style name) -> mred:testable-dialog-box% object
parent : wx:frame% object, wx:dialog-box% object, or null
title : string or null
modal = #f : boolean
x = 300 : small integer
y = 300 : small integer
width = 500 : small integer
height = 500 : small integer
style = wx:const-default-dialog-style : small integer
name = "dialogBox" : string
The parent parameter can be null or an existing frame or
dialog box; if an existing frame or dialog box is used under Windows,
the child dialog box is always on top of the parent, and will be
iconized when the parent is iconized.
If title is not null, it is placed on the window frame.
Otherwise, a default title is used.
If modal is #t, the dialog box will wait to be dismissed
(using (show #f)) before returning control. When a modal dialog
is visble, all other top-level windows are suspended
The style parameter is a bitwise-ior combination of the following:
- wx:const-caption -- puts a caption on the dialog box (X Windows Motif)
- wx:const-resize-border -- display a resizeable frame around the window (X Windows Motif) or grow box in the bottom right corner (MacOS)
- wx:const-system-menu -- display a system menu (X Windows Motif)
- wx:const-thick-frame -- display a thick frame around the window (X Windows Motif)
- wx:const-user-colours -- overrides standard control
processing to allow setting of the dialog box background colour (Windows)
(Use 0 for no flags.)
The constant wx:const-default-dialog-style is equivalent to
(bitwise-or wx:const-caption wx:const-system-menu wx:const-thick-frame)
The name argument is used to associate a name with the window, allowing the application user to set X Windows resource values for each individual window.