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

Gianluigi bagonergi at gmail.com
Thu May 3 17:48:13 CEST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180503/4b778ce3/attachment.html>


More information about the User mailing list