CONTROL SET CHECK

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Commands >

CONTROL SET CHECK

 

Description

 

Set the Check status for a CHECK3STATE or CHECKBOX control.

 

Syntax

 

CONTROL SET CHECK hwnd, ctrlID, CheckValue

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

CheckValue

Number

No

If control is a CHECKBOX:

0 = Uncheck

1 = Check

If control is a CHECK3STATE:

0 = Uncheck

1 = Check (display an 'X' in the box)

2 = Indeterminate state (display a filled box).

 

 

Remarks

 

Restrictions

 

Usable only for some controls, for example Checkbox, Check3State and Option.

 

See also

 

Examples