Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!osf.org!meeks From: meeks@osf.org (W. Scott Meeks) Newsgroups: comp.windows.x.motif Subject: Re: How can I remove sashes from window panes? Message-ID: <9104041433.AA19019@clew> Date: 4 Apr 91 14:33:08 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 36 >Date: 3 Apr 91 19:11:38 GMT >From: sdd.hp.com!wuarchive!hsdndev!bbn.com!mips2!bubba!jtsillas@ucsd.edu (James Tsillas) > >Hello, I am converting an app. based on Athena widgets to Motif. >One of the things it uses is the XmPanedWindow class. Once I create >the widget I wish to keep the sash from appearing for the first >child. How can I do this? A code fragment would be *greatly* appreciated. All you have to do is set the XmNpaneMaximum and XmNpaneMinimum PanedWindow constraint resources on the child to the same value. If you're explicitly setting the height of the child in question, then you can just set the resources to that value. See page 1-733, paragraph 3 of the 1.1 Programmer's Reference. For example: object push_button1 : XmPushButton { arguments { XmNheight = 100; XmNpaneMaximum = 100; XmNpaneMinimum = 100; }; }; If you don't explicitly set the height of the child, but rely on the parent's size and constraints to set the child's height, then it's a little more complicated. You'll have to manage the widgets first, query the XmNheight of the child and then set the panedMinimum and panedMaximum to that value. It may cause a brief flicker of the sash. I hope this helps. If you have any further questions, please let me know. W. Scott Meeks | We must live with the fact, true throughout recorded Open Software Foundation | history, that our artifacts are sometimes flawed and meeks@osf.org | cause us to die in novel and unexpected ways, and we (617) 621-7229 | can only do our human best to minimize the problems.