modeless

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
modeless <stack>
Summary

Opens a stack in a modeless dialog window.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
stack

Any stack reference.

Example
modeless stack "Hello World"
modeless the defaultStack
RelatedProperty: 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
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 executing this command. Use the lock messages command before executing 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.

Tagswindowing