[Gambas-user] Closing a Message!

jose.rodriguez at cenpalab.cu jose.rodriguez at cenpalab.cu
Fri Dec 11 07:00:51 CET 2020


December 10, 2020 9:35 PM, "Bruce Steers" <bsteers4 at gmail.com (mailto:bsteers4 at gmail.com?to=%22Bruce%20Steers%22%20<bsteers4 at gmail.com>)> wrote:
  what do you think of this Ben? https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero (https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero)   It adds a Property/Option CancelIsZero to Message class and forces right hand buttons (and closing window) to always be zero if set to True.  
It does not particularly address the issue but does make sense for cancel to always return zero in some cases. 
(I couldn't see how to disable the windows close button but if there is a way maybe an option to do that would be cool?)  
There have been several mentions in this thread of "right hand buttons", but some toolkits actually invert the order of the buttons, don't they? As in left is Cancel and right is Ok, instead of the more typical ordering?

Also, FWIW and IMHO, I always prefer to have the option to disable the window close button programmatically.

Regards,
Joe1962
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201211/9b79b416/attachment-0001.htm>


More information about the User mailing list