XmNchoiceCallback
This callback is triggered by activating a button or a list. The returned structure is XmChoiceCallbackStruct.
typedef union {
XmChoiceBCallbackStruct ChoiceButton;
XmChoiceLCallbackStruct ChoiceList;
}
typdef struct {
int wsid;
int device;
int NumButton
int reason;
XEvent *event;
int click_count;
} XmChoiceBCallbackStruct;
wsid : Workstation number
device : Device number
NumButton : Validated choicenumber
reason : Reason for the callback call (see pushButton callback)
event : Corresponding XEvent (see pushButton callback)
click_count : (see pushButton callback)
typdef struct {
int wsid;
int device;
int NumButton
int reason;
XEvent *event;
XmString item;
int intem_lenght;
int item_position;
XmString *selected_items
int selected_item_count;
int *selected_item_positions;
int selection_type;
} XmChoiceLCallbackStruct;
wsid : Workstation number
device : Device number
NumButton : Validated choicenumber
reason : Reason for the callback call (see pushButton callback)
event : Corresponding XEvent (see pushButton callback)
For other fields, see the MOTIF documentation on callback List.