[Gambas-user] Question of shortcut keys position

Gianluigi bagonergi at gmail.com
Tue Apr 24 18:06:33 CEST 2018


2018-04-24 17:33 GMT+02:00 Benoît Minisini <g4mba5 at gmail.com>:

> Le 24/04/2018 à 17:18, Gianluigi a écrit :
>
>> Hi Benoit,
>> I have not completely understood this suggestion:
>> "You should not decide for the user of your library which shortcut he
>> wants to use."
>> But is not it always the programmer who decides what the shortcut keys of
>> his application will be?
>> Is not it normal to reserve F1 and F2 for help?
>> This application is a utility if the shortcut keys are in the main module
>> is not easier for the programmer to intervene and change them?
>>
>> Regards
>> Gianluigi
>>
>>
> No, shortcuts should be configurable.
>
> In Gambas, this is done through :
>
> - The "Action" property of a control.
>
> - The "Shortcut" associated with a menu entry having its Action property
> set.
>
> - the gb.form.mdi component that adds support for configuring these
> shortcuts.
>
> At the moment, this is not possible to have an action with a shortcut
> outside of a menu entry.
>
> I suggest that you don't try to handle the shortcut. Just offer a method
> to show your help browser, and let the user of your library manage the
> shortcuts as he likes.
>
> --
> Benoît Minisini
>
>
What you have just given me is a great teaching.
Thank you so much

Regards
Gianluigi


> --------------------------------------------------
>
> This is the Gambas Mailing List:
> https://lists.gambas-basic.org/listinfo/user
>
> Search the list:
> https://lists.gambas-basic.org/cgi-bin/search.cgi
>
> Hosted by https://www.hostsharing.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180424/dccfcefd/attachment.html>


More information about the User mailing list