forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.lcdoc
More file actions
36 lines (20 loc) · 1.7 KB
/
Copy pathbutton.lcdoc
File metadata and controls
36 lines (20 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Name: button
Type: object
Syntax: button
Summary: A <control> that is clickable.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
set the hilite of button "Warning" to false
Example:
if the number of this card is 1 then hide button "Previous"
Description:
Use the <button> <object type> to create a clickable <button>, a <tabbed button|tabbed window>, or a <menu>.
Button objects can be push buttons, checkboxes, radio buttons, or menus, depending on the setting of their style <property>.
A button whose style is set to "menu" can be a <popup> or <contextual menu>, pulldown menu, option menu, <tabbed button>, or <combo box>, depending on the setting of its <menuMode> <property>.
A button is contained in a card, group, or background. Buttons cannot contain other objects.
The button object has a number of properties and messages associated with it. To see a list of messages that can be sent to a button as a result of user actions or internal LiveCode events, open the "LiveCode Language Dictionary" page of the main Documentation window, ensure that the button column is visible and use sort and filter to bring the relevant entries to the top.
>*Note:* A standard button is rendered by the operating system, not LiveCode. Changing certain properties of such a button will cause the button to stop honouring the native theme. Properties that affect the button's colour and border may cause this issue.
References: templateButton (keyword), control (keyword), button (keyword), menu (keyword), menuMode (property), popup (command), property (glossary), tabbed button (glossary), contextual menu (glossary), object type (glossary), combo box (glossary)
Tags: objects