topLevel

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
topLevel <stack>
Summary

Opens a stack in an editable window.

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

Any stack reference.

Example
toplevel stack "project1"
toplevel this stack
topLevel the mousestack
RelatedProperty: cantModify, selected
Message: openCard, closeStack, closeCard, closeBackground, openStack, openBackground
Command: palette, lock messages, drawer, modeless, choose
Object: stack
Glossary: property, current card, execute, message, editable window, command, control, modal dialog box
Description

Use the topLevel command to display a stack in an editable window.

An editable window can be resized (if its resizable property is true), and its controls can be selected, moved, and changed. To edit a stack of a different style (a palette, modeless, or modal dialog), use the topLevel command to display it in an editable window.

The topLevel command closes the stack and reopens it as an editable window, 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 topLevel if you want to prevent these messages from being sent.

If the stack is already in an editable window, the topLevel command does not close and reopen it.

Tagswindowing