Rhombus

|
class gui.Dialog(): | implements WindowView | constructor ( | ~title: title :: ObsOrValue.of(String) = "Untitled", | ~style: style :: ObsOrValue.of(List.of(Dialog.Style)) = [], | ~size: size :: ObsOrValue.of(View.Size) = [#false, #false], | ~align: align :: ObsOrValue.of(View.Alignment) = [#'center, #'top], | ~position: position :: ObsOrValue.of(View.Position) = #'center, | ~min_size: min_size :: ObsOrValue.of(View.Size) = [#false, #false], | ~stretch: stretch :: ObsOrValue.of(View.Stretch) = [#true, #true], | ~enable: enable :: ObsOrValue.of(Boolean) = #true, | ~window_callbacks: window_callbacks :: maybe(WindowCallbacks) = #false, | child :: ObsOrValue.of(WindowChildView && !WindowView), ... | ) |
|
Like to
Window, but creates a modal dialog, instead, meaning
that no other window within the application can be made active as long
as the dialog is shown.
The ~window_callbacks argument configures
callbacks that are common to all WindowChildViews.
See WindowCallbacks for more information.
A dialog style option:
#'no_title: Omits a title bar for the dialog.
#'no_sheet: Uses a movable dialog, even if a parent
window is provided (Mac OS).
#'resize_border: Enables dialog resizing by a user.
#'close_button: Includes a close button in the
dialog’s title bar.