Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKRadioButtonGroup Class Reference

Providesa radio button group. More...

#include <radiobtngroup.h>

Inheritance diagram for VDKRadioButtonGroup:

VDKObjectContainer VDKObject VDKNotCopyAble List of all members.

Public Methods

Public Attributes


Detailed Description

Providesa radio button group.

SIGNALS
EXAMPLES
Into ./testvdk/rbutton.cc


Constructor & Destructor Documentation

VDKRadioButtonGroup::VDKRadioButtonGroup VDKForm   owner,
int    mode = v_box
 

Constructor

Parameters:
owner 
mode  either v_box or h_box

VDKRadioButtonGroup::~VDKRadioButtonGroup   [inline]
 

Destructor


Member Function Documentation

void VDKRadioButtonGroup::Add VDKObject   obj,
int    j = l_justify,
int    e = false,
int    f = false,
int    p = false
[virtual]
 

Add an object.

Reimplemented from VDKObjectContainer.

VDKEventBox* VDKRadioButtonGroup::GBox   [inline]
 

Return group box

void VDKRadioButtonGroup::RemoveButton VDKRadioButton   button
 

Remove a button from radio button group

Parameters:
button  which button has to be removed

void VDKRadioButtonGroup::SetDefault int    buttonNumber
 

Sets the button that will be selected by default

Parameters:
buttonNumber  ordinal number of selected button (0 <= buttonNumber < Buttons.size())


Member Data Documentation

VDKReadOnlyValueProp<VDKRadioButtonGroup, RadioButtonList*> VDKRadioButtonGroup::ButtonList
 

same as Buttons

RadioButtonList VDKRadioButtonGroup::Buttons
 

Returns a list of radio buttons contained into group. You can acces them:

    // disables last radio button
    int last = radio_group->Buttons.size()-1;
    radio_group->Buttons[last]->Enabled = false;
<read only>

VDKReadWriteValueProp<VDKRadioButtonGroup,int> VDKRadioButtonGroup::Selected
 

Use this property to know wich button was toggled after a toggle_signal. Or to force a selection. Selected propery contais the ordinal number of toggled button ( 0 <= x < n) Defaults to 0


The documentation for this class was generated from the following files:
Generated on Sun May 5 01:29:44 2002 for vdk 2.0.1 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002