1. Win32Libv50: modal window bug?

Is this a bug?

You can exit a main window which has an associated modal window, if you just
minimize the modal window, instead of first closing the modal, & I don't
think you're supposed to be able to do that.

If you set up a modal window like this:

constant bModalWindow   = create( Window, "This is a Modal Window",
TheWindow, 50, 80, 400, 200, 0 )

and open it:

global procedure onClick_bModalButton()
  openWindow( bModalWindow, Modal ) -- THIS IS WHAT MAKES IT A MODAL WINDOW
end procedure

and then click on the minimize sysmenu button in the modal window, you can
then click on the main window's close button & it will close the main
window, even though the modal window hasn't been closed first.

I know you could create the window you intend to make modal *without* a
minimize button, but shouldn't opening a window as modal automatically
remove any option that would allow closing the main before closing the modal
one?

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: Win32Libv50: modal window bug?

Known bug. This was pointed out first by Davi Figueiredo, and I've applied
the fix. Seeing that there are many fixes going into the next release, it
will be known as v0.53.

----- Original Message -----
From: "Dan B Moyer" <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, September 17, 2000 2:46 PM
Subject: Win32Libv50: modal window bug?


> Is this a bug?
>
> You can exit a main window which has an associated modal window, if you
just
> minimize the modal window, instead of first closing the modal, & I don't
> think you're supposed to be able to do that.
>
> If you set up a modal window like this:
>
> constant bModalWindow   = create( Window, "This is a Modal Window",
> TheWindow, 50, 80, 400, 200, 0 )
>
> and open it:
>
> global procedure onClick_bModalButton()
>   openWindow( bModalWindow, Modal ) -- THIS IS WHAT MAKES IT A MODAL
WINDOW
> end procedure
>
> and then click on the minimize sysmenu button in the modal window, you can
> then click on the main window's close button & it will close the main
> window, even though the modal window hasn't been closed first.
>
> I know you could create the window you intend to make modal *without* a
> minimize button, but shouldn't opening a window as modal automatically
> remove any option that would allow closing the main before closing the
modal
> one?
>
> Dan Moyer

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Libv50: modal window bug?

> I know you could create the window you intend to make modal *without*
> a minimize button, but shouldn't opening a window as modal
> automatically remove any option that would allow closing the main
> before closing the modal one?
>
> Dan Moyer
>

Hmm, don'tcha think one should go and close the window on a
onClose?

Blessed Be! --"LEVIATHAN"

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32Libv50: modal window bug?

Not really sure what you mean.

If you mean that if the program user did some appropriate thing within the
modal window which *should* allow the main to close, then I would think that
that action could in fact first close the modal and then the main, no
problem.

Sorry if I misunderstood your question?

My original question has already been pointed out to have refered to a known
bug.

Dan

----- Original Message -----
From: "LEVIATHAN" <leviathan at USWEST.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, September 17, 2000 9:23 AM
Subject: Re: Win32Libv50: modal window bug?


> > I know you could create the window you intend to make modal *without*
> > a minimize button, but shouldn't opening a window as modal
> > automatically remove any option that would allow closing the main
> > before closing the modal one?
> >
> > Dan Moyer
> >
>
> Hmm, don'tcha think one should go and close the window on a
> onClose?
>
> --"LEVIATHAN"

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu