WDS_RadioButton

WDS_RadioButton

wds

1998 12-05


CLASS

WDS_RadioButton - radio button widget


SYNOPSIS

Class WDS_RadioButton is a specialized WDS_Button which can be toggled on and off. It only makes sense in groups of like widgets since it is intended to be a one selection of many. WDS_Button already contains this complete functionality. However, WDS_RadioButton conveniently sets the appropriate flags in its constructor and provides a separate class for independent look-and-feel specification.


Note that WDS_RadioButton uses the WDS_Button flag WDS_BUTTON_FLAGS_EXCLUSIVE. This prevents any other such configured widget with the same shallowest ancestral scope from being selected at the same time. To expound, when a radio button is selected, it searches up the widget hierarchy for the first WDS_Scope it finds and registers itself with that scope. Any radio button that previously registered itself with that same scope is automatically deselected. This issue should be taken care of automatically when using a WDS_RadioScope.


PUBLIC MEMBER FUNCTIONS

Inheritance from class WDS_Button


STATE CHANGES

Inherited from WDS_Button



WDS_STATE_0 Released
WDS_STATE_1 Pressed


FILES

wds/button.h Button header file


SEE ALSO

WDS_intro(3), WDS_Widget(3), WDS_Button(3) , WDS_RadioScope(3)