|
From: Maurizio la C. <m.l...@gm...> - 2014-10-30 16:12:42
|
Hi Alain,
you could try:
hwg_SetDlgKey( oDialog, nExtKeyCode, nKeyCode, bBlock )
Passing bBlock as NIL will disable the key hook.
Example:
hwg_SetDlgKey( oDlg, 0, VK_SPACE, {|| hwg_msgInfo( "Space bar pressed" ) } )
You'll find the key codes in windows.ch ( for gtk too... ).
BR
Maurizio
2014-10-30 15:53 GMT+01:00 Alain Aupeix <ala...@wa...>:
> Searching in hwindow.prg, I saw that there is KEYLIST to replace set key
> But I can't figure how to implement it
>
> Create an array and refer to it in Window creation command ?
> How could be this array ?
> Is the case of F1 (help) treated differently from other keys ?
> How to replace inkey(x) ?
>
> Thanks
> A+
> --
> ------------------------------------------------------------------------
> Alain Aupeix
> http://jujuland.pagesperso-orange.fr/
> http://pissobi-lacassagne.pagesperso-orange.fr/
> ------------------------------------------------------------------------
> U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) |
> HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2298)
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Hwgui-developers mailing list
> Hwg...@li...
> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
>
|