Article View: comp.windows.interviews
Article #452Re: Foces on a dialogbox
From: John Vlissides
Date: Wed, 12 Aug 1992 12:27
Date: Wed, 12 Aug 1992 12:27
15 lines
1111 bytes
1111 bytes
In article <15680@star.cs.vu.nl>, you write:
> Is it possible for a dialog box (Dialog) to capture all mouse
> events to the program? Right now it is possible to open a
> dialog box and then press the quit-button in the main window,
> and resulting in some fault (memory, bus, etc).
For 2.6 dialogs, you can make the Accept function ignore events for
targets that are outside the dialog's interactor hierarchy. See
BasicDialog::{Forward,IsAChild} in src/lib/Unidraw/dialogs.c for an
example. For 3.1 dialogs, the default implementation for the run
function does a grab, so there should be no problem.
--
John Vlissides / IBM T.J. Watson Research / vlis@watson.ibm.com
Technical Details
Message-ID:
<9208121227.AA22897@aurora.watson.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!WATSON.IBM.COM!vlisShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!WATSON.IBM.COM!vlis From: vlis@WATSON.IBM.COM (John Vlissides) Subject: Re: Foces on a dialogbox Message-ID: <9208121227.AA22897@aurora.watson.ibm.com> Sender: news@shelby.stanford.edu (USENET News System) Reply-To: vlis@watson.ibm.com Organization: Internet-USENET Gateway at Stanford University Date: Wed, 12 Aug 1992 12:27:06 GMT Lines: 15