Error getting tags :
error 404Error getting tags :
error 404 topStack | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
topStack
Basics
Expander triangle
Type
Function
Syntax
the topStack topStack()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the long name of the topmost stack.
Examples

the topStack
set the defaultStack to the topStack

Additional Comments
Expander triangle

Use the topStack function to find out which stack is in the current stack.

Value:

The topStack returns the long name of a stack.

Comments:

In most applications, the active window holds the current document, and menu commands operate on the active window. In Revolution, because of the ability to open stacks in various modes, this is not necessarily the case.

Each open window has a mode associated with it. The topStack is the frontmost stack with the lowest mode.

For example, an editable window has a mode of 1, and a palette has a mode of 4. If several palettes and editable windows are open, the topStack is the frontmost editable stack, although palettes may be in front of it. If all the editable windows are then closed, the frontmost palette becomes the topStack, since there is now no window with a lower mode.

User Comments
Expander triangle