/* UIL declarations for thw Xaw Panner widget. */
! Declare the creation procedure
procedure
XawCreatePannerWidget();
! Declare resources
value
XtNallowOff : argument ('allowOff', boolean);
XtNbackgroundStipple : argument ('backgroundStipple', string);
XtNcanvasWidth : argument ('canvasWidth', integer);
XtNcanvasHeight : argument ('canvasHeight', integer);
XtNdefaultScale : argument ('defaultScale', integer);
XtNinternalSpace : argument ('internalSpace', integer);
XtNresize : argument ('resize', boolean);
XtNrubberBand : argument ('rubberBand', boolean);
XtNshadowThickness : argument ('shadowThickness', integer);
XtNsliderX : argument ('sliderX', integer);
XtNsliderY : argument ('sliderY', integer);
XtNsliderWidth : argument ('sliderWidth', integer);
XtNsliderHeight : argument ('sliderHeight', integer);
! Declare callbacks
value
XtNreportCallback : reason ('reportCallback');
This file declares the widget creation function and defines a number of resources. The Panner also has a callback, so
the include file declares the callback using the UIL reason type. The reason literal simply specifies the string
name of the callback resource. Unlike the argument literal, no type is necessary because the type is always a
callback.
27.1.3 Creating User−defined Widgets
A module can create instances of the user−defined Tree and Panner widgets by including the two files shown above.
the source code illustrates a typical application of these widgets.
module tree
include file 'XawTree.uih';
include ...