button

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
button
Summary

Designates the Button tool, which is used to create new buttons.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
if the tool is not "button" then beep
RelatedKeyword: templateButton, button
Property: style
Command: palette, choose
Function: tool
Glossary: keyword
Object: button
Description

Use the button keyword to create buttons.

When using the Button tool, the cursor is a crosshairs. This tool is used for creating buttons by clicking at one corner of the button and dragging to the opposite corner.

You can set the style of the templateButton to the button type you want, then draw the button with the Button tool. The button icons on the Tools palette work this way: each one sets the style of the templateButton, then chooses the Button tool so you can create the button.