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

PICCORO McKAY Lenz mckaygerhard at gmail.com
Sat May 5 15:18:18 CEST 2018


maybe use the keycode constants?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2018-05-03 14:12 GMT-04:00 Gianluigi <bagonergi at gmail.com>:

>
>
> 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
>
>
> --------------------------------------------------
>
> 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/20180505/5a1f7dae/attachment.html>


More information about the User mailing list