Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

W32DLib::RadioButton Class Reference

The RadioButton class. More...

#include <w32dlib/radiobutton.h>

Inheritance diagram for W32DLib::RadioButton:

W32DLib::Control W32DLib::Window List of all members.

Public Member Functions

 RadioButton (Dialog *parent, int resource_id, int first_radio, int last_radio, DataX *datax)
 Constructor.
virtual ~RadioButton ()
 Destructor.
void OnPress (Window *owner, W32DLibCallback callback)
 Sets a callback for a button press.
void SetState ()
 Sets the radio button on.
bool GetState ()
 Gets the tickstate.
virtual void DoDataExchange (bool set)
 Performs data exchange.

Detailed Description

The RadioButton class.


Constructor & Destructor Documentation

W32DLib::RadioButton::RadioButton Dialog parent,
int  resource_id,
int  first_radio,
int  last_radio,
DataX datax
 

Constructor.

Parameters:
parent The dialog the control belongs to.
resource_id The ID of the control in the resource file.
first_radio The ID of the first radio button in the group.
last_radio The ID of the last radio button in the group.
datax The DataX to use. NULL means don't use data exchange.

virtual W32DLib::RadioButton::~RadioButton  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void W32DLib::RadioButton::DoDataExchange bool  set  )  [virtual]
 

Performs data exchange.

Support types:

eString -- see Control::DoDataExchange()

eBool -- same as GetState() / SetState()

Parameters:
set If true the set the Control from the DataX object. If false then set the DataX object from the Control.

Reimplemented from W32DLib::Control.

bool W32DLib::RadioButton::GetState  ) 
 

Gets the tickstate.

Returns:
The tick state
See also:
SetState()

void W32DLib::RadioButton::OnPress Window owner,
W32DLibCallback  callback
 

Sets a callback for a button press.

Parameters:
owner The class the callback resides in.
callback The callback.

void W32DLib::RadioButton::SetState  ) 
 

Sets the radio button on.

Note that this will affect other radio buttons in the group if appropriate. If DataX is used to set this and more than two buttons in the group are set the results are indeterminate.

See also:
GetState()


The documentation for this class was generated from the following file:
Generated on Fri May 6 01:22:33 2005 for W32DLib by  doxygen 1.4.1