[Gambas-user] Function keys F1 and F2 to call online help

Gianluigi bagonergi at gmail.com
Thu May 3 20:12:00 CEST 2018


2018-05-03 17:48 GMT+02:00 Gianluigi <bagonergi at gmail.com>:

> Hi Benoit,
> not being able to use the Application_KeyPress event to manage the
> function keys and seen what you say in this discussion [0], here's what I
> wrote in the last seHelpBuilder 0.2.4:
>
> In the main form I entered this code:
> [code]Public Sub RaiseHelp(sKey As String)
>
>   Action_Activate(sKey)
>
> End[/code]
>
> And in the other windows the code:
>
> [code]Public Sub Form_KeyPress()
>
>   If Key.Code = Key.F2 Then
>     FMain.RaiseHelp("help-current")
>   Else If Key.Code = Key.F1 Then
>     FMain.RaiseHelp("help-open")
>   Endif
>
> End[/code]
> How can I get response on F1 or F2 even from the Gambas dialogs?
>
> Regards
> Gianluigi
> [0] https://lists.gambas-basic.org/pipermail/user/2014-
> February/047379.html
>

I mean OpenFile, SelectColor etc.

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180503/eee05d7b/attachment.html>


More information about the User mailing list