A simple radio button control.
![]() | PRadioButton ( PInteractor * parent ) Create a radio button with the specified parameters: name, notification function and radio button group. |
![]() | PRadioButton ( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, PINDEX * valuePtr ) Create control from interactor layout with the specified control ID. |
![]() | ~PRadioButton () Destroy the radio button, removing it from its group. |
![]() | TransferValue ( int option ) This function transfers the value of the control to or from the variable pointed to by the value pointer member variable. |
![]() | DefaultDimensions () Set the default (minimum) dimensions for the control |
![]() | SetValue ( PINDEX newVal ) Set the value of the radio button group. |
![]() | GetValue () const Get the currently selected button in the radio button group. |
![]() | GetValuePointer () const Get the current value pointer associated with the control. |
![]() | SetValuePointer ( PINDEX * ptr ) Set the current value pointer associated with the control. |
![]() | AddToGroup ( PRadioButton & groupButton ) Add this button to the group that the groupButton parameter is also contained in. |
![]() | Overrides from class PControl |
![]() | New functions for class |
![]() | group List of buttons in the group. |
PNotifier codes
Overrides from class PInteractor
Overrides from class PInteractor
Member variables
Overrides from class PObject
System callback functions.
A simple radio button control. A set of radio buttons is used to select one of a number of choices. A group of radio buttons may be created by passing the first radio button created to all the others subsequently created. Then whenever one of the buttons is selected all the other buttons in the group are automatically deselected.Note that a radio button can only be in one group at a time.
Add this button to the group that the groupButton parameter is also contained in. This is typically the first button created.
PRadioButton( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, PINDEX * valuePtr )
ctlID - Identifier for the control in the layout.
notify - Function to call when changes state.
valuePtr - Variable to change to the check box state.virtual ~PRadioButton()
Overrides from class PControl
virtual void TransferValue( int option )
New functions for class
void DefaultDimensions()
void SetValue( PINDEX newVal )
PINDEX GetValue() const
PINDEX* GetValuePointer() const
void SetValuePointer( PINDEX * ptr )
void AddToGroup( PRadioButton & groupButton )
Group group
Alphabetic index HTML hierarchy of classes or Java