BUTTON: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
ConnerO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax=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=*DESCRPTION*
|description=:Define the size and the position of a button and the text to be displayed inside it.


|param1=<left>|param1_desc={{left}}
|param1=<left>|param1_desc={{left}}
Line 7: Line 7:
|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={{variable}}
|param6=<variable>|param6_desc=Define a custom variable to be used later in the macro, for example "1".
}}
}}


===Example===
===Example===
:- BUTTON
:BUTTON 15, 15, 100, 24, "Variables", 5


[[Category:Dialog]]
[[Category:Dialog]]

Revision as of 17:10, 19 July 2010

Command

BUTTON
BUTTON
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