[Gambas-devel] bug in message.warning ?

Stefano Palmeri stefanopalmeri at ...29...
Wed Jul 20 20:32:38 CEST 2005


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


 







  







I'm really new with Gambas and I've never used Vb, so
I don't know 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-message-warning-0.0.1.tar.gz
Type: application/x-tgz
Size: 773 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20050720/c4ae5223/attachment.bin>


More information about the Devel mailing list