Opens a stack in a modeless dialog box window.
# Metadata
Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:
# Syntax
modeless stack
# Params
- stack : Any stack reference.
# Examples
modeless stack "Hello World"
modeless the defaultStack
# Description
Use the modeless command to display a stack as a custom modeless dialog box.
A modeless dialog box behaves like an ordinary window, except that it cannot be edited. Use modeless dialog boxes to ask the user for information.
To edit a modeless dialog box, use the topLevel command to display it in an editable window.
The modeless command closes the stack and reopens it as a modeless dialog box, so closeStack and openStack, closeCard and openCard, and (if applicable) closeBackground and openBackground messages are sent to the current card as a result of execute this command. Use the lock messages command before execute modeless if you want to prevent the close messages from being sent; the open messages are sent regardless of the setting of the lockMessages property.
If the stack is already displayed as a modeless dialog box, the modeless command does not close and reopen it.
The Browse tool is used in modeless dialog boxes, regardless of the current setting of the tool property.
# Tags
# See
- **property:** dialogData, cantSelect, mode, style, lockMessages - **message:** openCard, closeStack, closeCard, closeBackground, openStack, openBackground - **command:** sheet, topLevel, go, modal, lock messages, palette - **object:** stack - **glossary:** property, current card, execute, message, editable window, modeless dialog box, command