[comp.windows.x.motif] Using the XmScrolledWindow widget

jtc@motcad.portal.com (J.T. Conklin) (08/03/90)

I am trying to use a ScrolledWindow widget that automatically manages
the scrollbars and clipping region, but it doesn't repaint the window
on expose events if backing store is turned of in my NCD 16.

Enclosed is my uil code that sets up the windows.  I have looked through
all of the literature at my disposal and still cannot determine whether
the bug is in my code or in my X/Motif implementation (Motorola MPC/100).

Thanks

	--jtc

--
J.T. Conklin	CADnet Inc, San Ramon California
		jtc@motcad.portal.com, ...!portal!motcad!jtc


	img_window: XmScrolledWindow {
		arguments {
			XmNtopAttachment      = XmATTACH_FORM;
			XmNbottomAttachment   = XmATTACH_FORM;
			XmNleftAttachment     = XmATTACH_WIDGET;
			XmNleftWidget         = XmRowColumn cmd_window;
			XmNrightAttachment    = XmATTACH_FORM;

			XmNscrollingPolicy    = XmAUTOMATIC;
			XmNworkWindow         = XmDrawingArea img_canvas;
		};
		controls {
			XmDrawingArea img_canvas;
		};
	};

	img_canvas: XmDrawingArea {
		callbacks {
			XmNcreateCallback = procedure img_create_cb;
		};
	};
-- 
J.T. Conklin	CADnet Inc, San Ramon California
		jtc@motcad.portal.com, ...!portal!motcad!jtc