CtrlGetState

InstallShield 2014 ยป InstallScript Language Reference

The CtrlGetState function gets the current state of a check box or option button control from a custom dialog.

Syntax

CtrlGetState ( szDialogName, nControlID );

Parameters

CtrlGetState Parameters

Parameter

Description

szDialogName

Specifies the name of the dialog that contains the control.

nControlID

Specifies the resource ID of the check box or option button control whose state is to be retrieved.

Return Values

CtrlGetState Return Values

Return Value

Description

BUTTON_CHECKED (-1001)

The check box or option button is selected.

BUTTON_UNCHECKED (-1002)

The check box or option button is not selected.

DLG_ERR (-1)

CtrlGetState was unable to determine the state of the control.

See Also