CheckBox Interface Reference

The CheckBox control allows the user to check it. More...

Inheritance diagram for CheckBox:

Inheritance graph
Collaboration diagram for CheckBox:

Collaboration graph
List of all members.

Properties

LONG RW State []
 This parameter can be a one of the following values:.
VARIANT_BOOL RW AllowGrayed []
 The AllowGrayed property is a Boolean value that indicates that the CheckBox can be grayed.
VARIANT_BOOL RW Checked []
 The Checked property is a Boolean value that indicates that the CheckBox is checked or not.

Detailed Description

The CheckBox control allows the user to check it.

When the user checks the control, the OnChange event occur.

Example:

o = new ActiveXObject("Scripting.WindowSystemObject")

o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.Text = "WSO"
f.ClientWidth = 200
f.ClientHeight = 100
f.CenterControl()

f.CreateCheckBox(10,10,100,25,"Check 1")
f.CreateCheckBox(10,40,100,25,"Check 2").Checked = true
f.CreateCheckBox(10,70,100,25,"Check 3")

f.Show()

o.Run()


function CloseForm(Sender)
{
        f.Close()
}

Result:

CheckBox.jpg


Property Documentation

VARIANT_BOOL RW AllowGrayed

The AllowGrayed property is a Boolean value that indicates that the CheckBox can be grayed.

VARIANT_BOOL RW Checked

The Checked property is a Boolean value that indicates that the CheckBox is checked or not.

LONG RW State

This parameter can be a one of the following values:.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:12:21 2015. (C) Veretennikov A. B. 2004-2015