Difference between revisions of "BUTTON"

From Macros Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[:Category:Dialog|{{Up}}]]
 
[[: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>
 
|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.
  
Line 9: Line 9:
 
|param4=<height>|param4_desc={{height}}
 
|param4=<height>|param4_desc={{height}}
 
|param5=<nowiki><caption></nowiki>|param5_desc={{button_caption}}
 
|param5=<nowiki><caption></nowiki>|param5_desc={{button_caption}}
|param6=<variable>|param6_desc=Define a custom variable to be used later in the macro, for example "1".
 
 
}}
 
}}
  
 
===Example===
 
===Example===
:BUTTON 15, 15, 100, 24, "Variables", 5
+
:BUTTON 15, 15, 100, 24, "Variables"
 
:For an example macro see [[GetMTMData.dlg]]
 
:For an example macro see [[GetMTMData.dlg]]
 
[[Category:Dialog]]
 
[[Category:Dialog]]

Revision as of 13:33, 18 August 2010

Up

Command

BUTTON
BUTTON <left>, <top>, <width>, <height>, <caption>


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.

Example

BUTTON 15, 15, 100, 24, "Variables"
For an example macro see GetMTMData.dlg