Difference between revisions of "BUTTON"
From Macros Wiki
Line 1: | Line 1: | ||
+ | [[:Category:Dialog|{{Up}}]] | ||
+ | |||
{{Command|syntax=[[Image:Button.png|right|BUTTON]]BUTTON <left>, <top>, <width>, <height>, <nowiki><caption></nowiki>, <variable> | {{Command|syntax=[[Image:Button.png|right|BUTTON]]BUTTON <left>, <top>, <width>, <height>, <nowiki><caption></nowiki>, <variable> | ||
|description=:Define the size and the position of a button and the text to be displayed inside it. | |description=:Define the size and the position of a button and the text to be displayed inside it. |
Revision as of 17:40, 30 July 2010
Command
- BUTTON <left>, <top>, <width>, <height>, <caption>, <variable>
- Define the size and the position of a button and the text to be displayed inside it.
Parameters
- <left>
- Start position measured from the left edge of the dialog.
- <top>
- Start position of measured from the top edge of the dialog.
- <width>
- Width of the control.
- <height>
- Height of the control.
- <caption>
- Text to be displayed on the button.
- <variable>
- Define a custom variable to be used later in the macro, for example "1".
Example
- BUTTON 15, 15, 100, 24, "Variables", 5
- For an example macro see GetMTMData.dlg