Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!ukc!stc!stl!siesoft!paulb From: paulb@siesoft.co.uk (Paul Bentley) Newsgroups: comp.windows.x.motif Subject: "XmMainWindow/XmScrolledWindow size" Message-ID: <1991Apr29.125822.24474@siesoft.co.uk> Date: 29 Apr 91 12:58:22 GMT Sender: usenet@siesoft.co.uk (NNTP Poster) Organization: Siemens Nixdorf Systems Development Group, Reading UK Lines: 22 I'm looking for a way of creating XmScrolledWindow and XmMainWindow widgets and setting the size of the clip area explicitly. The way I do this currently is by finding the size of the scrollbars and various shadow and highlight metrics, calculating how much space these take, then adding this to the width and height I want the clip area to be when creating the widget. I'm not sure what the correct algorithm for this is in all cases. Does anyone know ? These calculations are very unpleasant and get even worse for an XmMainWindow when message area and menu bar metrics also have to be accounted for. This is a problem common to many applications. Is there an easy way round this ? Paul Bentley (paulb@siesoft.co.uk) Siemens Nixdorf Informations Systems Limited Siemens Nixdorf House Oldbury, Bracknell Berkshire RG12 4FZ England.