[comp.windows.x.motif] Help!: Need to pop dialog shells with main window

brennan@rtp.dg.com (Dave Brennan) (03/26/91)

I've got an application which has a main window (applicationShell) and
several dialog shells which may be up at any given time.  The user can
close (unmap / unmanage) the main window, at which time the dialogs are
automatically unmapped by Xt (Motif?).  When the main window is remapped I
want to remap any dialogs that were mapped when the window was unmapped.
By default the dialogs do not get remapped when the main window is
remapped.  

I tried two things which did not work: 1) to manage the dialog shells after
managing the main window, and 2) to manage the dialog shells in the popup
callback of the main window.  If I can't find another solution I'll have to
resort to making the dialog shells application shells.

Anybody have any ideas?

                                          |\
Dave Brennan                              | \____oo_     brennan@rtp.dg.com
=========================================((__|  /___>    ...rti!dg-rtp!brennan
User Interfaces, Data General                | //        daveb@rpitsmts.bitnet
Research Triangle Park, NC                   |//         Phone: (919) 248-6330

nazgul@alfalfa.com (Kee Hinckley) (03/27/91)

> several dialog shells which may be up at any given time.  The user can
> close (unmap / unmanage) the main window, at which time the dialogs are
> automatically unmapped by Xt (Motif?).  When the main window is remapped I
> want to remap any dialogs that were mapped when the window was unmapped.
> By default the dialogs do not get remapped when the main window is
> remapped.  
What window manager are you using?  Mwm1.0 handles that all automatically
for me.  However I just discovered that Olwm2.0 doesn't map or unmap the
dialogs automatically when the parent goes away.  Does anyone know how
to fix this?  Will manually putting them in a group do it?

brennan@DG-RTP.DG.COM (Dave Brennan) (03/27/91)

I think maybe that I misinterpreted your message.  If I iconify the window
with mwm, then open it the dialogs come back.  However my application also
contains a "Close" button which unmanages the main window.  When the window
is remanaged the dialog boxs do not come back.  I don't think that the
window manager is supposed to bring them back in this case.

Dave Brennan