12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simple <strong>Widget</strong>sTo find the currently selected Toggle in a radio group of Toggle widgets use Xaw-ToggleGetCurrent.XtPointer XawToggleGetCurrent( XawToggleGetCurrent(radio_group),radio_group);radio_groupSpecifies any Toggle widget in the radio group.The value returned by this function is the radioData of the Toggle in this radiogroup that is currently set. The default value for radioData is the name of thatToggle widget. If no Toggle is set in the radio group specified then NULL is returned.Changing the Toggle that is set in a radio group.To change the Toggle that is currently set in a radio group use XawToggle<strong>Set</strong>Current.void XawToggle<strong>Set</strong>Current( radio_data), radio_group, radio_data);radio_groupradio_dataSpecifies any Toggle widget in the radio group.Specifies the radioData identifying the Toggle thatshould be set in the radio group specified by theradio_group argument.XawToggle<strong>Set</strong>Current locates the Toggle widget to be set by matching radio_dataagainst the radioData for each Toggle in the radio group. If none match, Xaw-Toggle<strong>Set</strong>Current returns without making any changes. If more than one Togglematches, XawToggle<strong>Set</strong>Current will choose a Toggle to set arbitrarily. If this causesany Toggle widgets to change state, all routines in their callback lists will beinvoked. The callback routines for a Toggle that is to be unset will be called beforethe one that is to be set. Unsetting all Toggles in a radio group.To unset all Toggle widgets in a radio group use XawToggleUnsetCurrent.void XawToggleUnsetCurrent( XawToggleUnsetCurrent(radio_group),radio_group);radio_groupSpecifies any Toggle widget in the radio group.If this causes a Toggle widget to change state, all routines on its callback list willbe invoked.57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!