MWidgets::CheckBox Class Reference

Class that represent checkbox widget. More...

#include <checkbox.h>

Inheritance diagram for MWidgets::CheckBox:

MWidgets::Widget List of all members.

Public Member Functions

 CheckBox ()
 Constructor.
virtual void Create (Widget *parent, int x, int y, int w, int h, string caption)
 Create widgets window.
BOOL GetCheked ()
 Return 1 if it is checked.
void SetCheked (BOOL val)
 Set widget checked or not.
virtual WIDGET_TYPE GetType ()
 Returns class's identifier like WINDOW or BUTTON.

Protected Member Functions

virtual void OnCommand (WORD code, WORD id)
 Function starts callbacks.

Detailed Description

Class that represent checkbox widget.

Definition at line 14 of file checkbox.h.


Constructor & Destructor Documentation

MWidgets::CheckBox::CheckBox (  ) 

Constructor.

Definition at line 19 of file chekbox.cpp.


Member Function Documentation

void MWidgets::CheckBox::Create ( Widget parent,
int  x,
int  y,
int  w,
int  h,
string  caption 
) [virtual]

Create widgets window.

Parameters:
parent parent widget.
w new Button's width.
h new Button's height.
caption new Button's caption.

Definition at line 23 of file chekbox.cpp.

References MWidgets::Widget::Create(), and MWidgets::Widget::GetHwnd().

BOOL MWidgets::CheckBox::GetCheked (  ) 

Return 1 if it is checked.

Definition at line 39 of file chekbox.cpp.

References MWidgets::Widget::m_hWnd.

Referenced by OnCommand().

WIDGET_TYPE MWidgets::CheckBox::GetType (  )  [virtual]

Returns class's identifier like WINDOW or BUTTON.

Implements MWidgets::Widget.

Definition at line 53 of file chekbox.cpp.

References MWidgets::CHECKBOX.

void MWidgets::CheckBox::OnCommand ( WORD  code,
WORD  id 
) [protected, virtual]

Function starts callbacks.

Reimplemented from MWidgets::Widget.

Definition at line 28 of file chekbox.cpp.

References GetCheked(), and SetCheked().

void MWidgets::CheckBox::SetCheked ( BOOL  val  ) 

Set widget checked or not.

Parameters:
val 1-checked 0-not checked.

Definition at line 45 of file chekbox.cpp.

References MWidgets::Widget::m_hWnd.

Referenced by OnCommand().


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 13:47:46 2006 for MWidgets by  doxygen 1.4.7