home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / fj / maillis / xwindow / 19727 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.9 KB

  1. Path: sparky!uunet!utcsri!skule.ecf!torn!spool.mu.edu!agate!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: devuns@alsys.fr (Olivier Devuns)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Modality, Motif & the Intrinsics
  5. Message-ID: <1993Jan26.145452.19073@sm.sony.co.jp>
  6. Date: 26 Jan 93 14:54:52 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
  10. Lines: 35
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Tue, 26 Jan 93 13:59:21 +0100
  14. Message-Id: <9301261259.AA01789@venus.alsys_sa>
  15.  
  16. Hi xperts,
  17.  
  18. Thanks to jcb@hal.com (Joe Beall) who answered my previous modality
  19. question. I think I finally found the answer in the Intrinsics. The
  20. problem was to allow access to a permanent help in its own topLevelShell
  21. while the rest of the application is blocked on a modal dialog, such as
  22. a MOTIF MessageDialog instance.
  23.  
  24. The solution I found is to add the help window to the modal cascade
  25. by just calling :
  26.    XtAddGrab (HelpWidget, False, False);
  27. in the modal dialog's help callback; this allows input to be sent to
  28. the help window and to the modal dialog as well.
  29.  
  30. When the modal is dismissed, don't forget to remove the grab if it
  31. has been added :
  32.    if (grab_added)
  33.       XtRemoveGrab (HelpWidget);
  34.  
  35. and you'll want to do that usually in the modal dialog's unmap callback.
  36.  
  37. Maybe that solution was known-to-everybody-for-years, but since nobody
  38. but Joe answered, I guess broadcasting it again can be useful to others...
  39.  
  40. -----------------------------------------------------------------------
  41. Olivier Devuns -- Ada Tools Development Engineer
  42. ALSYS          -- 29 Ave. LR Duchesne, 78170 La Celle St Cloud - FRANCE
  43.  
  44. Email          : devuns@alsys.fr       Voice          : (1)30781727
  45.  
  46.                      "Views expressed are my own."
  47. -----------------------------------------------------------------------
  48.