On 11 Apr 1999 0:12:19 +0100 Neil Bothwick said:
> Tony Rolfe said,
>
> > On 9 Apr 1999 9:13:42 +0100 Neil Bothwick said:
> >> It's a commodity. The standard behaviour of a commodity when clicking
> >> the close gadget is to close the window and hide the commodity. The
> >> requester is a way of allowing you to use the close gadget to quit
> >> without breaking the rules for commodities.
>
> > Sorry, Neil. I disagree here.
>
> > Most commodities use "Hide" to hide the GUI and "Quit" to quit the
> > application.
>
> But we're not talking about a Hide or Quit option, we're talking about
> a window close gadget. Try it with Commodities Exchange, the definitive
> commodity, the window close button does just that. commodities are
> intended to be run in the background, so the window close button only
> closing the window is the logical behaviour.
I did try it and the window closed. It did not give me an "Are you
sure" option. If it had, then I would have expected it to leave the
window open if I said "No". That is my complaint.
>
> > If I hit any button which gives me an "Are you sure?"
> > option and I say "No", I expect the application to leave
> > everything as it was. If the button says "Quit" and I change my
> > mind, I don't want the application making some arbitrary decision
> > as to what I really meant.
>
> The button doesn't say "Quit". It's a close gadget. The requester is
> effectivly asking you "do you want to quit the program as well as
> closing the window". The only "bug" here is the wording of the
> requester could be a lot clearer.
I still think that it is good programming practice (commodity or not)
to return an application to the original state if the user cancels out
of a request.
>
> > My suggestion would be to add a "Hide" button and make them both
> > behave intuitively.
>
> The window close gadget *is* the hide button for a commodity.
The window close gadget in any Amiga application should close the
window. If the user is given the option of changing their mind then
the window should not close. There is a Quit menu item if I want to
Quit. Most other commodities (including the definitive one!) have
separate Hide and Quit options.
The other problem I have is that running Nectonnect a second time
when it has the GUI closed, simply gives you a requester saying,
in effect, "Silly Boy". With with most commodities, that situation
simply opens the GUI again. Try it with Commodity Exchange.
It just seems to me that there is a bit of lazy programming going on
here and a few minutes with a keyboard could fix it up. It is simply
non-intuitive behaviour.
Cheers
--
Tony Rolfe
Amiga 2000, 68030/25, 1+4Mb
www.shoalhaven.net.au/edgewater