home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 15742 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  2. From: mahan@TGV.COM (Patrick L. Mahan)
  3. Newsgroups: comp.windows.x
  4. Subject: RE: how to implement slow calback routines ?
  5. Message-ID: <920827104953.21000150@TGV.COM>
  6. Date: 27 Aug 92 17:49:53 GMT
  7. Sender: daemon@athena.mit.edu (Mr Background)
  8. Organization: The Internet
  9. Lines: 24
  10.  
  11. #
  12. #My problem is the following :
  13. #
  14. #In several applications we add a callback routine to a pushbutton, let us say 
  15. #that foo is this callback routine.
  16. #In foo, we have to access large numbers of pieces of equipment;this operation
  17. #may take up to 30 seconds. Therefore, we pop up an a XmMessageBox telling the
  18. #user that the task in currently running.
  19. #The problem is that after the creation of the messagebox we do not return to
  20. #the XtMainLoop() and the messagebox is not managed on the screen, even if we
  21. #call XFlush().
  22. #
  23.  
  24. You need to register a Work Proc inside of the button callback to acutally
  25. do the work for you.  This will allow 1) the message box to actually show
  26. up and 2) let you complete your task.
  27.  
  28. Patrick L. Mahan
  29.  
  30. --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
  31.  
  32. Waking a person unnecessarily should not be considered  - Lazarus Long
  33. a capital crime.  For a first offense, that is            From the Notebooks of
  34.                               Lazarus Long
  35.