The following tasks are associated with using an ICheckBox*
part in visual composition. Tasks that are common to many parts
are described in related topics.
-
- Defining text for a check box
- To specify text for the check box, do either of the
following:
- On the composition surface, directly edit the
part text.
- In the part property sheet, enter the text in the
value column of the text property.
- Setting the initial state
- To set the initial state of the check box, set the selected
property in the ICheckBox* property sheet. To initially
select the check box, set the property value to true.
To initially not select the check box, set the property
value to false.
- Disabling another part
- To disable another control when the user selects the
check box, connect the ICheckBox* selected
attribute to the value attribute of an
IVBBooleanPart* part. Then, connect the IVBBooleanPart* notValue
attribute to the enabled attribute of the other
control. When the user deselects the check box, the other
control is enabled.
- Enabling another part
- To enable another control when the user selects the check
box, connect the ICheckBox* selected attribute to
the enabled attribute of the other control. When
the user deselects the check box, the other control is
disabled.
-
-
Common Tasks for Control Parts
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers
Properties
Setting Part Framing Properties
Editing Part Labels Directly
Working with VisualAge User
Interface Parts
ICheckBox
Property Settings --
ICheckBox
Portability -- ICheckBox