Selects or deselects the specified check box or radio button.
PROCEDURE SetBooleanItem(
dialogID : LONGINT;
componentID : LONGINT;
setState : BOOLEAN);def vs.SetBooleanItem(dialogID, componentID, setState):
return None| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | the dialog identifier given by CreateLayout or CreateResizableLayout |
| componentID | LONGINT | The identifier for the radio or checkbox button component. |
| setState | BOOLEAN | The selection state to set for the given component. |
{* dialog init *}
SetupDialogC: BEGIN
SetItemText(dialogID, 4, Num2StrF (0));
SetItemText(dialogID, 6, Num2StrF (0));
SetBooleanItem(dialogID, 7, FALSE);
SelectEditText(dialogID, 4);
END;
BEGIN
CASE item OF
{* dialog init *}
SetupDialogC: BEGIN
SetBooleanItem(dialogID, 4, (method = 1));
SetBooleanItem(dialogID, 5, (method = 2));
SetBooleanItem(gCurrentDialogID, 2*i + 5, gChangeField [fieldNum]);import vs
# Selects or deselects the specified check box or radio button.
dialogID = 1
componentID = 2
setState = True
vs.SetBooleanItem(dialogID, componentID, setState)Availability: from Vectorworks 2010