[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple-button Message boxes not behaving according to documentation


On 7/15/24 18:37, Bruce Steers wrote:
    So then, it appears that the documentation is incorrect, or at least misleading/incomplete. Agreed?


Agreed , a quick study of the code shows

if Message.DefaultButton is false then no buttons get the hButton.Default = True
if It "is" set to True then the first button gets hButton.Default = True

The Last button always gets hButton.Cancel = True

It's possible each toolkit might have their own, er, features.

Respects
BruceS

Thanks, Bruce.

Wiki updated.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----