CHECK: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
CatoH (talk | contribs)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[:Category:Dialog|{{Up}}]]
{{Command|syntax=[[Image:Check.png|right|CHECK]]CHECK <left>, <top>, <width>, <height>, <text>, <variable>, [<default>]  
{{Command|syntax=[[Image:Check.png|right|CHECK]]CHECK <left>, <top>, <width>, <height>, <text>, <variable>, [<default>]  
|description=:Define the size and the position of a check box and the text to be displayed next to it.
|description=:Define the size and the position of a check box and the text to be displayed next to it.
Line 7: Line 9:
|param4=<height>|param4_desc={{height}}
|param4=<height>|param4_desc={{height}}
|param4=<text>|param4_desc={{check_text}}
|param4=<text>|param4_desc={{check_text}}
|param5=<variable>|param5_desc={{variable}}
|param5=<variable>|param5_desc=Variable to be set to the state of the check box. 0 for unchecked, 1 for checked.
|param6=[<default>]|param6_desc={{default}}
|param6=[<default>]|param6_desc={{default}}
}}
}}
Line 13: Line 15:
===Example===
===Example===
:CHECK 070,  044, 070, 24, "Cross", dir1,  0
:CHECK 070,  044, 070, 24, "Cross", dir1,  0
:For an example macro see [[GetCommands.dlg]]
:For an example macro see [[GetCommands.dlg]] [[GeoSavedProcess.dlg]]
 
===Example with IF statement===
 
Most dialog elements can be used with IF statements, for examples see [[dialog_if_examples]]
 
 
[[Category:Dialog]]
[[Category:Dialog]]

Latest revision as of 11:44, 26 February 2025

Up

Command

CHECK
CHECK
CHECK <left>, <top>, <width>, <height>, <text>, <variable>, [<default>]


Define the size and the position of a check box 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 check box, must be in double quotes.
<variable>
Variable to be set to the state of the check box. 0 for unchecked, 1 for checked.
[<default>]
Optional default value.

Example

CHECK 070, 044, 070, 24, "Cross", dir1, 0
For an example macro see GetCommands.dlg GeoSavedProcess.dlg

Example with IF statement

Most dialog elements can be used with IF statements, for examples see dialog_if_examples