[Gambas-user] [Gambas Bug Tracker] Bug #1128: Message.Question should return -1 on cancel
bugtracker at ...3416...
bugtracker at ...3416...
Wed Jul 19 15:20:52 CEST 2017
http://gambaswiki.org/bugtracker/edit?object=BUG.1128&from=L21haW4-
C THAL reported a new bug.
Summary
-------
Message.Question should return -1 on cancel
Type : Bug
Priority : Medium
Gambas version : 3.9.90 (TRUNK)
Product : Language
Description
-----------
Message.Question returns 2 if the message window was closed or canceled via <Esc>.
That is bad, especially if there are two buttons and the action should not be default, but on button two, like so:
Dim ret as integer
ret = Message.Question("Do you really want to delete all?", "No", "Yes")
--------------------------------------------------------------------------
If the user cancels or closes the window of the message it returns 2! All will be deleted ...
More information about the User
mailing list