[comp.windows.x.motif] Motif 1.0 sizing child windows

dmbeal@uswnvg.UUCP (Dave Beal) (05/08/91)

To those who may know:

I have a question related to having a main window
tell its children the proper size of the work area 
before they are displayed. 

I have created a "main" window which manages and unmanages 
2 child windows. The child windows are a list scrolled window
and a text scrolled window. I would like the child window 
that is to be managed to fill the "work" area of the main
window. If I resize the main window than the child window that 
is being managed will resize along with the main window. But 
when I manage the next child window, it did not know about 
the main window being resized and is displayed as though the 
main window where the size it last was, when this child 
was displayed. 

I hope thats not to confusing, what I am trying to determine
is how to get my child windows to be the correct geometry to 
fill the work area of the main window. 

It looks like XtMakeGeometryRequest might do the job, but 
not sure when to use it? at initialization time or prior to 
each XtManageChild call. Any suggestions? 
Thanks in advance. 

Dave Beal
USWEST NewVector
uunet!uswnvg!dmbeal

nazgul@alfalfa.com (Information Junkie) (05/09/91)

> It looks like XtMakeGeometryRequest might do the job, but 
> not sure when to use it? at initialization time or prior to 
> each XtManageChild call. Any suggestions? 
Applications should never use that call.  I haven't fiddled with
MainWindow and multiple children too much, other than to notice
that it has bugs in its geometry management code.  One thing you
might try is realizing your child widgets before managing them,
but I doubt that will help here.

Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
nazgul@alfalfa.com              |       Send Anything... Anywhere
617/646-7703 (voice/fax)        |       info@alfalfa.com

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.