home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!ucbvax!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: dhaibo@a.cs.okstate.EDU (DU HAIBO)
- Newsgroups: comp.windows.x
- Subject: Dialog Box Delated Popdown?
- Message-ID: <9211051857.AA28024@expo.lcs.mit.edu>
- Date: 5 Nov 92 18:51:03 GMT
- Sender: root@athena.mit.edu (Wizard A. Root)
- Organization: The Internet
- Lines: 31
-
- Hi! I am working under X11R4, Motif 1.1 and Sequent S81 environment.
- My problem is as follows:
-
- 1. I popped up, above a drawing window which is under a form widget,
- a PromptDialog widget, called prompt_box, which was created by a
- call to XmCreatePromptDialog(). The prompt widget was to prompt
- a user to enter a file name for "xwd", -- X window dumping of the
- drawing window. I set up for the OK button in the prompt box a
- callback procedure, in which I unmapped the prompt box first and
- then called a function to execute the window image dumping like this:
-
- XtUnmanageChild(prompt_box);
- xwd_processing(...);
-
- 2. I noticed that the prompt box did not dissappear until the dumping
- was finished. This resulted in the box appearing in the dumpped window
- image, which, of course, was not desired.
-
- 3. It seems to me that in such a callback, the corresponding window would
- not unmapped until the other actions in the procedure were finished.
- Is that true?
-
- 4. In addition, does XmNunmapCallback invokes its callback list *just before*
- or *just after* the corresponding widget is unmapped? It seems to me that
- it does so just before. If so, who can I make it **just after**.
-
- I'll appreciate any help or hint. Many thanks in advance.
-
-
- Haibo Du
- dhaibo@a.cs.okstate.edu
-