templateGraphic | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | Used with the set command to set the properties of newly created graphics. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Property: properties, ID Control Structure: function Keyword: templateScrollbar, default, graphic Object: graphic Glossary: object, keyword, property, command, expression Command: reset, set Function: functionNames |
Description | Use the templateGraphic keyword to set up default properties to be used for any new graphics you create. The templateGraphic can be thought of as a special, abstract object. It is not an actual graphic, but it has all the properties of a graphic. The ID property of the templateGraphic is zero. You can use the set command to set the properties of the templateGraphic before creating a graphic. The new graphic has the properties of the templateGraphic, by default. Changing the properties of the templateGraphic does not affect existing graphics. The properties of the templateGraphic can be returned to the default settings using the reset command. You can refer to the templateGraphic using any of the following forms:
|