RADIO: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
|param4=<height>|param4_desc={{height}} | |param4=<height>|param4_desc={{height}} | ||
|param4=<text>|param4_desc={{radio_text}} | |param4=<text>|param4_desc={{radio_text}} | ||
|param5=<variable>|param5_desc= | |param5=<variable>|param5_desc=Variable to be set to the state of the button. 0 for not selected, 1 for selected. | ||
|param6=[<default>]|param6_desc={{default}} | |param6=[<default>]|param6_desc={{default}} | ||
|param7=[<group number>]|param7_desc={{group number}} | |param7=[<group number>]|param7_desc={{group number}} |
Revision as of 18:36, 18 August 2010
Command
- Define the size and the position of a radio button and the text to be displayed next to 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.
- <text>
- Text to be displayed next to the radio button.
- <variable>
- Variable to be set to the state of the button. 0 for not selected, 1 for selected.
- [<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
- For an example macro see GetCommands.dlg