The Be Book The Interface Kit The Interface Kit Index

BCheckBox

Derived from: public BControl
Declared in:  be/interface/CheckBox.h
Library: libbe.so
Allocation: Constructor only
Summary:  more...


A BCheckBox object draws a labeled check box on-screen and responds to a keyboard action or a click by changing the state of the object: When the user "checks" the check box, the object displays an "x" within its border, its state is set to B_CONTROL_ON, and the invocation message is sent to the object's target. When the user "unchecks" the check box, the "x" is removed, the state is set to B_CONTROL_OFF, and the invocation message is sent.


Constructor and Destructor


BCheckBox()

BCheckBox(BRect frame, const char *name,
      const char *label,
      BMessage *message,
      uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP,
      uint32 flags = B_WILL_DRAW | B_NAVIGABLE)
BCheckBox(BMessage *archive)

Initializes the BCheckBox by passing all arguments to the BControl constructor (see BControl::BControl() for more information on the arguments.)

If necessary, the bottom coordinate of the object's frame rectangle is increased to accommodate the height of the label, given the object's font (be_plain_font, by default).

Freshly constructed, the object's state is B_CONTROL_OFF. Like all controls, the check box's view and low colors are set to those of its parent when the object is attached to a window.


~BCheckBox()

virtual ~BCheckBox()

Deletes the BCheckBox object.


Member Functions

All of BCheckBox's member functions are implementations of functions declared by its superclasses. For information on specific functions, look in BControl, then in BView, and so on up the inheritance hierarchy.


Archived Fields

See "Archived Fields" [BControl]. BCheckbox doesn't add any of its own fields to the archive message.


The Be Book The Interface Kit The Interface Kit Index

The Be Book,
...in lovely HTML...
for BeOS Release 5.

Copyright © 2000 Be, Inc. All rights reserved..