paulb@siesoft.co.uk (Paul Bentley) (04/29/91)
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.