Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!mlb.semi.harris.com!sloth.mlb.semi.harris.com!pjp From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera) Newsgroups: comp.windows.x.motif Subject: Dialog Unmap/'Close' Question and Problem Keywords: UnmapCallbacks, Dialogs, Window Menu Button Message-ID: <1991Mar28.210727.24964@mlb.semi.harris.com> Date: 28 Mar 91 21:07:27 GMT Sender: pjp@mlb.semi.harris.com Followup-To: comp.windows.x.motif Organization: Interface & Control Systems, Inc. Lines: 47 Nntp-Posting-Host: sloth.mlb.semi.harris.com Dialog Unmap/'Close' Question: When I create 3 Form dialogs, with the hierarchy described below, I attach UnmapCallbacks to them which takes care of some cleaning up for the window when it is unmapped. (Form Dialog inherits behavior from the Bulletin Board class, hence the UnmapCallback capability). This callback is activated when I select the 'Close' option (Alt+F4) from the Window Menu Button (the 'Dash' button in the upper left corner of each window). For example, if I select 'Close' for "dialog3", then the UnmapCallback is executed for the window "dialog3" and the window disappears. The problem is when I 'Close' a dialog that has 1 or more children dialogs, (i.e. "dialog1" or "dialog2"); the UnmapCallback *DOES NOT GET CALLED* for the children dialogs, even though they disappear. For example, 'Close' dialog2, then dialog2 and dialog3 disappear, and dialog2 UnmapCallback gets called but dialog3 UnmapCallback does *NOT*. I tried the DestroyCallback, but that doesn't seem to get activated for the children either. +---------+ | dialog1 | | +---------+ Widget Hierarchy: | | dialog2 | dialog1 is parent of dialog2 | | +---------+ dialog2 is parent of dialog3 | | | dialog3 | +-| | | | | | +-| | | | +---------+ What can I do so that the children callbacks get activated as well, even though I didn't explicitly 'Close' them? (They need to do some cleaning up too!) What is actually happening when I select the 'Close' option from the Window Menu Button? In Motif 1.0, I could double click on the Window Menu Button to activate 'Close'. Now that I've upgraded to 1.1, this double click doesn't work. How can I restore this feature? I'm running X11R4, Motif 1.1 on a DECstation 3100. Reply either e-mail or this conference (comp.windows.x.motif). Thanks in advance. Patrick Pinchera Interface & Control Systems, Inc. Melbourne, FL