templateStack

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
templateStack
Summary

Used with the set command to set the properties of newly created stacks.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the ID of the templateStack to 2000
RelatedProperty: properties, ID
Control Structure: function
Keyword: templateScrollbar, default
Object: stack
Glossary: object, keyword, property, command, expression
Command: create stack, reset, set
Function: stacks, functionNames
Description

Use the templateStack keyword to set up default properties to be used for any new stacks you create.

The templateStack can be thought of as a special, abstract object. It is not an actual stack, but it has all the properties of a stack. The ID property of the templateStack is 1001.

You can use the set command to set the properties of the templateStack before creating a stack. The new stack has the properties of the templateStack, by default. Changing the properties of the templateStack does not affect existing stacks.

The properties of the templateStack can be returned to the default settings using the reset command.

You can refer to the templateStack using any of the following forms:

templateStack
the templateStack
templateStack()

Note: The templateStack keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.