Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!julius.cs.uiuc.edu!usc!orion.oac.uci.edu!cerritos.edu!arizona.edu!arizona!sunquest!uunet!igor!twinkie!drk From: drk@twinkie.Rational.COM (David Kaelbling) Newsgroups: comp.windows.x.motif Subject: Non-standard scrollbar placement Keywords: Scrollbar,placement,question Message-ID: <823@igor.Rational.COM> Date: 16 Jan 91 20:31:37 GMT Sender: news@Rational.COM Lines: 45 One of my users wants a non-standard window layout, and I don't know a good way to do it. We want something like this: +-----------------------------------+ | Menu bar | +---+---------------------------+---+ | P | | S | | a | | c | | l | | r | | e | Work Area | o | | t | | l | | t | | l | | e | | | +---+----+----------------------+---+ | Button | Scroll bar | | +--------+----------------------+---+ Note that the horizontal scroll bar isn't the same width as the work area. XmAUTOMATIC behavior is desired, although it doesn't strictly need to be implemented that way. My first idea was that all the widgets could be peers in a big happy XmForm, but XmScrolledWindow suggests that the scroll bars need to be its children. Life without all the built-in XmScrolledWindow functionality would be very painful. My second idea was to try explicit XtSetValues() calls on the position and size of the scroll bar, but the code in XmScrolledWindow doesn't look very promising for that either. My third idea was to find something the Style guide that said this was a no-no, but I couldn't. Is there an easy way out of this? Maybe one of the approaches mentioned isn't as difficult as it looks? Maybe I missed the obvious solution? I haven't tried coding all the permutations, but rather am hoping somebody in netland has already solved this problem. Thanks in advance, David -- David Kaelbling (408) 496-3600 c/o Rational; 3320 Scott Boulevard; Santa Clara, CA 95054-3197 Email: DKaelbling@Rational.COM, or uucp {uunet,ubvax,aeras}!igor!drk