OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Modifying Selection Boxes

Checking and unchecking a selection box seems like a job for the application user, not your application.

But in some cases, your application needs control over a selection box's state. For example, if the user opens a text file, you might want to automatically check a check box labeled "Save as ANSI text."

TCheckBox defines several member functions for modifying a check box's state:

TCheckBox member functions for modifying selection boxes

Member functionDescription
TCheckBox::Check or TCheckBox::SetCheck(BF_CHECKED)Check
TCheckBox::Uncheck or TCheckBox::SetCheck(BF_UNCHECKED)Uncheck
TCheckBox::ToggleToggle
TCheckBox::SetStateHighlight
TCheckBox::SetStyleChange the button's style

When you use these member functions with radio buttons, ObjectWindows ensures that only one radio button per group is checked, as long as the buttons are assigned to a group.

See Also