Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!uflorida!mephisto!mcnc!beguine!Paul.Quane From: Paul.Quane@samba.acs.unc.edu (BBS Account) Newsgroups: comp.windows.x.motif Subject: XmScrolledWindow re-sizing Keywords: XmScrolledWindow XtQuertyGeometry Message-ID: <950@beguine.UUCP> Date: 29 Aug 90 19:08:27 GMT Sender: usenet@beguine.UUCP Lines: 20 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