home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:18785 comp.windows.x.motif:7270 comp.sys.sun.apps:2392
- Newsgroups: comp.windows.x,comp.windows.x.motif,comp.sys.sun.apps
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!wupost!gumby!yale!yale.edu!jvnc.net!nuscc!iti.gov.sg!agnel
- From: agnel@iti.gov.sg (Agnel Rajendran (AIM))
- Subject: Popup dialogs
- Message-ID: <1992Nov6.014838.21779@iti.gov.sg>
- Keywords: Dialog
- Sender: news@iti.gov.sg (News Admin)
- Organization: Information Technology Institute, National Computer Board, Singapore.
- References: <1992Oct30.192913.4999@mnemosyne.cs.du.edu>
- Date: Fri, 6 Nov 1992 01:48:38 GMT
- Lines: 38
-
-
- I am facing this problem in Motif 1.1.2 on SunOS 4.1.1.
-
- Within a dialog callback function when I want to popup a warning dialog
- the dialog does not get blocked for user input. But the code after
- the dialog get executed. The dialog pops up after the main dialog is
- unmanaged. For example,
-
-
- OpenDialogCB(widget, client_data, call_data)
- ...
- {
-
- if (filename) /* close previous file */
- CloseCB(widget, client_data, call_data);
- .....
- }
-
- CloseCB(widget, client_data, call_data) /* parameters not used */
- {
- if (saved != True) /* check whether file is saved */
- {
- /* call warning dialog with error message ;
- get input from user to save or not
- */
- .....
- CallWarningDialog(mesgstring);
- }
- CloseTextWidget();
- }
-
- The CloseTextWidget() gets executed before the warning dialog appears.
-
- Could any of you give me a simple solution to this? I presently know a work around.
-
- Regards,
- Agnel
- (agnel@iti.gov.sg)
-