vdk 2.4.0
Public Member Functions | Public Attributes
VDKRadioButtonGroup Class Reference

Providesa radio button group. More...

#include <radiobtngroup.h>

Inheritance diagram for VDKRadioButtonGroup:
VDKObjectContainer VDKObject VDKNotCopyAble

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Providesa radio button group.

SIGNALS
  • toggled_signal received whenever one of the buttons into group is toggled.
EXAMPLES
Into ./testvdk/rbutton.cc

Constructor & Destructor Documentation

VDKRadioButtonGroup::VDKRadioButtonGroup ( VDKForm owner,
int  mode = v_box 
)

Constructor

Parameters:
owner
modeeither v_box or h_box

Destructor


Member Function Documentation

void VDKRadioButtonGroup::Add ( VDKObject obj,
int  justify = l_justify,
int  fill = false,
int  expand = false,
int  padding = false 
) [virtual]

Add an object.

Reimplemented from VDKObjectContainer.

Return group box

Remove a button from radio button group

Parameters:
buttonwhich button has to be removed
void VDKRadioButtonGroup::SetDefault ( int  buttonNumber)

Sets the button that will be selected by default

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

Member Data Documentation

same as 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>="">

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: