[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] bug in message.warning ?
From:       Benoit Minisini <gambas () users ! sourceforge ! net>
Date:       2005-07-24 16:26:04
Message-ID: 200507241826.04220.gambas () users ! sourceforge ! net
[Download RAW message or body]

On Wednesday 20 July 2005 20:32, Stefano Palmeri wrote:
> Hi all.
>
> I've found this dangerous behaviour in message.warning.
>
> The example application I've attached has two buttons.
> With the first one you can create a temp directory and with
> the second you can delete the temp dir.
> Well. When you click the remove button a
> message.warning window pops up.
> The application SELECTs the user's choice.
>
> HERE is the DANGER!
>
> If you accidentally close the message.warning window instead of
> using the buttons, the application thinks you have clicked
> the second button and removes the directory.
>
> So in a message.warning window when you close the window
> you act as if you clicked the last indexed button.
>
> I've read the Gambas doc and I haven't found an explanation for that.
> Is it a default feature, I mean "closing window" = "last button clicking" ?
> I think that disabling the window closing on messages windows
> should be safer.
>
> I'm using Gambas 1.0.7
>
> Saluti,
>
> Stefano Palmeri
>
>

This is by design. Closing the message box is as if you clicked the right most 
button.

I admit that is behaviour is a bit stupid... Maybe I should change it for the 
developmenet verison.

As for the stable one, always please put your cancel button at the right of 
your message box.

Regards,

-- 
Benoit Minisini
mailto:gambas@users.sourceforge.net


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic