templateGroup

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
templateGroup
Summary

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

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

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

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

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

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

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

templateGroup
the templateGroup
templateGroup()

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