Next: The scale.c program Up: Scale Widgets Previous: Scale basics

Scale Callbacks

The Scale Callback can be called on to types of events:

XmNvalueChangedCallback
- if the value is changed, or
XmNdragCallback
- if the Scale value is moved at all, ``continuous'' values can be input. This may affect X performance.

The Scale Callback function is standard:

void scale_cbk(Widget w, XtPointer data, XmScaleCallbackStruct *struct)

The structure element value holds the current Scale integer value.


Dave.Marshall@cm.cf.ac.uk
Tue May 24 16:52:56 BST 1994