home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21576 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: devuns@alsys.fr (Olivier Devuns)
  4. Subject: Modality, Motif & the Intrinsics
  5. Message-ID: <9301261259.AA01789@venus.alsys_sa>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Organization: The Internet
  8. Date: Tue, 26 Jan 1993 12:59:21 GMT
  9. Lines: 34
  10.  
  11. Hi xperts,
  12.  
  13. Thanks to jcb@hal.com (Joe Beall) who answered my previous modality
  14. question. I think I finally found the answer in the Intrinsics. The
  15. problem was to allow access to a permanent help in its own topLevelShell
  16. while the rest of the application is blocked on a modal dialog, such as
  17. a MOTIF MessageDialog instance.
  18.  
  19. The solution I found is to add the help window to the modal cascade
  20. by just calling :
  21.    XtAddGrab (HelpWidget, False, False);
  22. in the modal dialog's help callback; this allows input to be sent to
  23. the help window and to the modal dialog as well.
  24.  
  25. When the modal is dismissed, don't forget to remove the grab if it
  26. has been added :
  27.    if (grab_added)
  28.       XtRemoveGrab (HelpWidget);
  29.  
  30. and you'll want to do that usually in the modal dialog's unmap callback.
  31.  
  32. Maybe that solution was known-to-everybody-for-years, but since nobody
  33. but Joe answered, I guess broadcasting it again can be useful to others...
  34.  
  35. -----------------------------------------------------------------------
  36. Olivier Devuns -- Ada Tools Development Engineer
  37. ALSYS          -- 29 Ave. LR Duchesne, 78170 La Celle St Cloud - FRANCE
  38.  
  39. Email          : devuns@alsys.fr       Voice          : (1)30781727
  40.  
  41.                      "Views expressed are my own."
  42. -----------------------------------------------------------------------
  43.  
  44.  
  45.