A widget holding this trait will be treated as a command button in a DialogBox or as a major tab in a Notebook
Format
#include <Xm/ActivatableT.h> typedef struct { int version; XmActivatableCallBackProc changeCB; } XmActivatableTraitRec, *XmActivatableTrait; void (*XmActivatableCallBackProc)WidgetXtCallbackProcXtPointerBoolean
DESCRIPTION
A widget holding the XmQTactivatable trait wishes to be treated as a command button when its parent widget is a DialogBox. The standard Motif DialogBox widgets (XmMessageBox, XmSelectionBox, and XmFileSelectionBox) place child widgets having this trait at the bottom of the DialogBox widget, underneath the separator.
In addition, if the XmNotebook widget is the parent of a widget having this trait, then XmNotebook sets the default value of the XmNnotebookChildType constraint to XmMAJOR_TAB.
The following standard Motif primitive widgets and gadgets hold this trait:
In addition, the following standard Motif manager widgets examine their children for this trait:
void changeCBWidget widgetXtCallbackProc activCBXtPointer clientDataBoolean setunset
The changeCB trait method is responsible for adding or removing callback activCB from the list of callbacks. A child widget holding this trait should provide a callback resource that is called when the widget is activated. (This resource is typically named XmNactivateCallback; however, you could give this resource a different name if you prefer.)
RELATED
XmMessageBox(3), XmSelectionBox(3), XmFileSelectionBox(3), XmNotebook(3), XmPushButton(3), XmDrawnButton(3), XmArrowButton(3), XmDrawnButtonGadget(3), XmArrowButtonGadget(3), and ExmCommandButton(3).