[comp.windows.x.motif] XmScrolledWindow re-sizing

Paul.Quane@samba.acs.unc.edu (BBS Account) (08/30/90)

Has anyone tried the mechanism suggested in the behaviour paragraph
of the Manual XmScrolledWindow page to resize the scroll window
to the optimum size for a given dimension ?
The size it returns me is NOT optimal
Here's some code

  XtWidgetGeometry checkgeom;         /* Dimensions we're interested in    */
  XtWidgetGeometry enclosegeom;         /* Dimensions to enclose work area */

  checkgeom.request_mode = CWHeight;
  checkgeom.height = 0;
  XtQueryGeometry(pjhinitsw,&checkgeom,&enclosegeom);
  n = 0;
  XtSetArg(args[n],XmNwidth,enclosegeom.width); n++;
  XtSetValues(pjhinitsw,args,n);

I'm interested in resizing the width - but regardless of the settings 
of request_mode and width etc i still get the same answer which is too small.

Thanks - Paul Quane