Newsgroups: comp.windows.x.motif
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll
From: carroll@cs.uiuc.edu (Alan M. Carroll)
Subject: Re: How can I remove sashes from window panes?
Message-ID: <1991Apr4.234633.18417@m.cs.uiuc.edu>
Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager))
Nntp-Posting-Host: aspen.cs.uiuc.edu
Reply-To: carroll@cs.uiuc.edu (Alan M. Carroll)
Organization: Technophiles Inc. - Engineers with Attitude
References: <JTSILLAS.91Apr3141138@bubba.ma30.bull.com> <9104041433.AA19019@clew>
Distribution: inet
Date: Thu, 4 Apr 91 23:46:33 GMT
Lines: 33

In article <9104041433.AA19019@clew>, meeks@osf.org (W. Scott Meeks) writes:
> >Date: 3 Apr 91 19:11:38 GMT
> >From: sdd.hp.com!wuarchive!hsdndev!bbn.com!mips2!bubba!jtsillas@ucsd.edu  (James Tsillas)
> >
> >keep the sash from appearing for the first child [ of panedwindow ]
> 
> All you have to do is set the XmNpaneMaximum and XmNpaneMinimum PanedWindow
> constraint resources on the child to the same value.
> See page 1-733, paragraph 3 of the 1.1

I was trying to do the same thing, and I couldn't get it to work under
any circumstances. Then I saw your post and noticed that you referred
to "XmNpaneMinimum" while all of my references refer to "XmNminimum".
Has this been changed since 1.0?

Here's a requested code fragment:

{
  /* assume that widget has the child widget, and it's already been realized */
  short height;  /* notice that it's a short */
  Arg argl[2];

  XtSetArg(argl[0], XmNheight, &height);
  XtGetValues(widget, argl, 1);
  /* _not_ XmNminimum or XmNmaximum */
  XtSetArg(argl[0], XmNpaneMinimum, height);
  XtSetArg(argl[1], XmNpaneMaximum, height);
  XtSetValues(widget, argl, 2);
}
-- 
Alan M. Carroll          <-- Another victim of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan
