Path: utzoo!attcan!uunet!wuarchive!sdd.hp.com!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!bmc.uu.se!heap From: heap@bmc.uu.se Newsgroups: comp.windows.x.motif Subject: Problem using the WorkingDialog Message-ID: <1990Oct1.111721.3499@bmc.uu.se> Date: 1 Oct 90 10:17:20 GMT Organization: Biomedical Center, University of Uppsala, Sweden Lines: 40 I have a little problem with the usage of XmMessageBox of type WORKING. I want to be able to pop up a WORKING dialog to inform the user that he will have to wait for a while. After the computation (or whatever) is finished the dialog should automatically disappear (i.e. the program takes care of the unmapping). Example: PopupWorkingDialog("Saving file"); SaveFile(); PopdownWorkingDialog(); The problem is to get the dialog window is displayed properly. I use the following code to get the dialog displayed in the routine "PopupWorkingDialog" : dialog = CreateWorkingDialog(...); < unmanage all buttons ... > XtManageChild(dialog); while (XtAppPending(appcontext) != 0) { XtAppNextEvent(appcontext,&event); XtDispatchEvent(&event); } With this code the window of the dialog is displayed but not the text in it ! If I turn the loop into a for-loop and loop 50 times everything in the dialog window is displayed properly (but that is not a real solution). What is the correct solution ? To handle some event that tells me when the window is finished displayed by the server ? I have also tried XPending abd XFlush with no success. Many thanks in advance for any directions. -- ---------------------------------------------------------------------- Per Bengtsson, Dept. of Scientific Computing, Univ. of Uppsala, Sweden Internet: heap@tdb.uu.se Sunet/Decnet: tdb::heap ----------------------------------------------------------------------