home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: devuns@alsys.fr (Olivier Devuns)
- Subject: Modality, Motif & the Intrinsics
- Message-ID: <9301261259.AA01789@venus.alsys_sa>
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Date: Tue, 26 Jan 1993 12:59:21 GMT
- Lines: 34
-
- Hi xperts,
-
- Thanks to jcb@hal.com (Joe Beall) who answered my previous modality
- question. I think I finally found the answer in the Intrinsics. The
- problem was to allow access to a permanent help in its own topLevelShell
- while the rest of the application is blocked on a modal dialog, such as
- a MOTIF MessageDialog instance.
-
- The solution I found is to add the help window to the modal cascade
- by just calling :
- XtAddGrab (HelpWidget, False, False);
- in the modal dialog's help callback; this allows input to be sent to
- the help window and to the modal dialog as well.
-
- When the modal is dismissed, don't forget to remove the grab if it
- has been added :
- if (grab_added)
- XtRemoveGrab (HelpWidget);
-
- and you'll want to do that usually in the modal dialog's unmap callback.
-
- Maybe that solution was known-to-everybody-for-years, but since nobody
- but Joe answered, I guess broadcasting it again can be useful to others...
-
- -----------------------------------------------------------------------
- Olivier Devuns -- Ada Tools Development Engineer
- ALSYS -- 29 Ave. LR Duchesne, 78170 La Celle St Cloud - FRANCE
-
- Email : devuns@alsys.fr Voice : (1)30781727
-
- "Views expressed are my own."
- -----------------------------------------------------------------------
-
-
-