The Layout Library: MCheckBox

Derived from: public MView, public BCheckBox

Declared in: <MCheckBox.h>


Overview

An MCheckBox is a BCheckBox which has been adapted to be a part of layoutlib. In all other respects, an MCheckBox works just like a BCheckBox. For further information about BCheckBox's, you are encouraged to read the BeBook.


Constructor and Destructor


MCheckBox()

      MCheckBox(const char *label, BMessage *message, BHandler *target=NULL, bool state=false)
      MCheckBox(const char *label, ulong ID, bool state=false)

Initializes an MCheckBox that will display the label label.
The first form of the constructor will assign the model message to the checkbox, and set up the target BHandler as the target for this message.
The second form of the constructor will create a BMessage(M_CHECKBOX_SELECTED), which will contain a pointer to the checkbox (whose name is defined by the constant M_CHECKBOX_POINTER_NAME), and an int32 (called M_CHECKBOX_ID_NAME) that has the value ID.
The initial state of the MCheckBox can be set with the state argument.

See also: the BCheckBox constructor.


~MCheckBox()

      virtual ~MCheckBox(void)

Cleans up after the MCheckBox.



Copyright © 1997 Marco Nelissen (marcone@xs4all.nl) All rights reserved.

Be, BeOS, BeBox, BeWare, GeekPort, the Be logo, the BeOS logo, roColour, Beatware and Beatware painter are trademarks or registered trademarks of their respective owners.