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