show in dialog%
Shows or hides a window.
The visibility of a window can be changed
by the user clicking the window's close box, for example, and such changes do not go through this method; use on-superwindow-show or on-close to
monitor visibility changes.
(-> voidsenda-dialogshowshow?)
show?: booleanIf
show?is#f, the window is hidden. Otherwise, the window is shown.If the window is already shown, it is moved front of other top-level windows. If the window is iconized (frames only), it is deiconized.
If
show?is true, the dialog is shown and all frames (and other dialogs) in the eventspace become disabled until the dialog is closed. Ifshow?is false, the dialog is hidden and other frames and dialogs are re-enabled (unless a different, pre-existing dialog is still shown).If
show?is true, the method does not immediately return. Instead, it loops withyielduntil the dialog is found to be hidden between calls toyield. An internal semaphore is used withyieldto avoid a busy-wait, and to ensure that theshowmethod returns as soon as possible after the dialog is hidden.