RADIO: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=RADIO <left>, <top>, <width>, <height>, <variable>, [<default>], [<group number>] |description=*DESCRPTION* |param1=<left>|param1_desc={{left}} |param2=<top>|param2_desc=...
 
ConnerO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax=RADIO <left>, <top>, <width>, <height>, <variable>, [<default>], [<group number>]
{{Command|syntax=[[Image:Radio.png|right|RADIO]] RADIO <left>, <top>, <width>, <height>, <text>, <variable>, [<default>], [<group number>]
|description=*DESCRPTION*
|description=*DESCRPTION*


Line 6: Line 6:
|param3=<width>|param3_desc={{width}}
|param3=<width>|param3_desc={{width}}
|param4=<height>|param4_desc={{height}}
|param4=<height>|param4_desc={{height}}
|param4=<text>|param4_desc={{radio_text}}
|param5=<variable>|param5_desc={{variable}}
|param5=<variable>|param5_desc={{variable}}
|param6=[<default>]|param6_desc={{default}}
|param6=[<default>]|param6_desc={{default}}
Line 12: Line 13:


===Example===
===Example===
:- RADIO
:- RADIO 070,  044, 070, 24, "Square",  dir4,  1, 1


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

Revision as of 16:33, 19 July 2010

Command

RADIO
RADIO
RADIO <left>, <top>, <width>, <height>, <text>, <variable>, [<default>], [<group number>]


  • DESCRPTION*

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.
<text>
Text to be displayed next to the radio button.
<variable>
Define a custom variable to be used later in the macro, for example "w1".
[<default>]
Optional default value.
[<group number>]
Define the group number of the radio button, for example:
radio 70, 124, 70, 24, "Cross", RadioSelected, RadioDefault, 1
radio 70, 154, 70, 24, "Tag", RadioSelected, RadioDefault, 1
radio 70, 184, 70, 24, "radio03", RadioSelected, RadioDefault, 1

Set the variable "RadioDefault" to the radio button (1, 2 or 3) to be selected when the dialog is displayed.
The variable "RadioSelected" will be set to the button (1, 2 or 3) that was selected when the dialog was closed.

Example

- RADIO 070, 044, 070, 24, "Square", dir4, 1, 1