|
NAMEXmtChooserGetState(), XmtChooserGetValue(), XmtChooserGetSensitivity() - query an XmtChooser widget about its selected items and item sensitivity.SYNOPSIS#include <Xmt/Chooser.h>
int XmtChooserGetState(Widget w) XtPointer XmtChooserGetValue(Widget w) Boolean XmtChooserGetSensitivity(Widget w, int item) ARGUMENTSINPUTS
RETURNS See below. DESCRIPTIONXmtChooserGetState() returns the selection state of the XmtChooser widget w. If the XmtNchooserType resource of the widget is XmtChooserRadioBox, XmtChooserRadioPalette, XmtChooserRadioList, or XmtChooserOption, then the returned value is the index of the single selected item. If the XmtNchooserType resource is XmtChooserCheckBox, XmtChooserCheckPalette, or XmtChooserCheckList, then the returned value is a bitfield indicating the selection state of each of the items (up to 32) in the widget. If the XmtNchooserType resource is XmtChooserButtonBox, then the returned value is not meaning ful. Calling this function is equivalent to, but more efficient than, querying the XmtNstate resource of w.XmtChooserGetValue() returns the address of the value associated with the selected item in the XmtChooser w. The specified widget must have its XmtNchooserType resource set to one of the ``single selection'' types: XmtChooserRadioBox, XmtChooserRadioPalette, XmtChooserRadioList, or XmtChooserOption. Note that the returned value is an untyped pointer. You must cast and dereference it as appropriate. XmtChooserGetSensitivity() return True if item item in XmtChooser w is sensitive, and False otherwise. Use XmtChooser SetSensitive() to set the sensitivity of an item. Insensitive items cannot be selected by the user. SEE ALSOChapter 27, Presenting Choices,XmtChooser, XmtChooserSetState(), XmtChooserSetItemValue(), XmtChooserSetSensitive().
Visit the GSP FreeBSD Man Page Interface. |