Difference between revisions of "Commandbutton"
Barrymavin (Talk | contribs) (→Properties) |
Barrymavin (Talk | contribs) (→Events) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
====Description==== | ====Description==== | ||
+ | Shown below in a standalone [[Form]]. Click the image to see in a [[Custom_Sections_and_Gadgets|Custom Section]] in a Lianja [[Page Attributes|Page]]. | ||
+ | |||
+ | [[{{ns:file}}:commandgroup_commandbutton.png|link={{filepath:commandgroup_commandbutton_cs.png}}|Commandgroup, Commandbutton]] | ||
A command button is typically used to start an event that performs an action such as closing a form, moving to a different record, printing a report, and so on. Use the CommandGroup control to create a set of command buttons that you can manipulate individually or as a group. | A command button is typically used to start an event that performs an action such as closing a form, moving to a different record, printing a report, and so on. Use the CommandGroup control to create a set of command buttons that you can manipulate individually or as a group. | ||
Line 58: | Line 61: | ||
!Args | !Args | ||
!width="50%"|Description | !width="50%"|Description | ||
− | + | |- | |
+ | |click||None||Occurs when the button is clicked | ||
|} | |} | ||
+ | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Framework Classes]] | [[Category:Framework Classes]] |
Latest revision as of 23:43, 9 May 2024
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.
A command button is typically used to start an event that performs an action such as closing a form, moving to a different record, printing a report, and so on. Use the CommandGroup control to create a set of command buttons that you can manipulate individually or as a group.
Use the Caption property to specify the text that appears on a command button. Use the Picture property to specify a picture for a command button.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Caption | RW | Character | Text displayed in the object's caption |
Flat | RW | Boolean | If True, only highlighted when the mouse pointer moves over it |
Picture | RW | Character | Filename of image displayed |
Text | RW | Character | Text displayed in the object's caption |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|---|---|
click | None | Occurs when the button is clicked |