On Sunday 07 March 2004 05:38 pm, Lyle Johnson wrote:
> On Mar 7, 2004, at 12:36 PM, John Reed wrote:
> > I don=E2=80=99t know how to capture the SEL_CLOSE event in my program=
because
> > if the dialog box used in the program for data entry is open, and
> > there have been changes, I want to warn the user about those changes.
> > I tried attaching the .connect(SEL_CLOSE) to the contents object, but
> > that didn=E2=80=99t work.
>
> No, there's no point in connecting SEL_CLOSE on the "contents" object
> since it's a vertical frame and not an FXMainWindow. I *started* to say
> that this shouldn't be a big deal, because if you display the dialog
> box modally, the user wouldn't be able to click the main window's close
> button. But I just ran a quick test and it doesn't appear that modality
> of a dialog box prevents you from closing the application's main window
> (this was a surprise to me).
Small correction: this is indeed the case for FOX 1.0; for 1.1, only the
currently active (topmost) modal window may be closed this way...
[In FOX 1.0, closing one of the "underlying" windows effectively caused
all stacked windows to behave as if closed. In many cases, this worked
fine but of course we don't know what a modal dialog does when its
cancelled so its better not to have such surprises]
- Jeroen
--=20
+------------------------------------------------------------------------=
----+
| Copyright (C) 23:50 12/11/2003 Jeroen van der Zijp. All Rights Reserv=
ed. |
+------------------------------------------------------------------------=
----+
|