marcioe Posted December 6, 2022 Report Share Posted December 6, 2022 Existe algo Para Acionar a Tecla + (Mais) do teclado Tipo SetKey( VK_F12,{|| Minha_funcao() }) SetKey( VK_(Tecla_Mais),{|| Minha_funcao() }) Espero que tenha conseguido explicar Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted December 7, 2022 Report Share Posted December 7, 2022 Toda classe Dialog, gets, etc vc pode definir a propriedade bKeyDown. Se vc definir f5 no oget:bKeyDown, toda vez que focu estiver no objeto get vai responde ao f5. Se definir no dialog vai responder em qq objeto que estiver no Dialog, tipo setkey(). No exemplos Fivewin vai encontrar vários exemplos. oDlg:bKeyDown := {|nKey| Minha_funcao(nKey) } Espero ter ajudado! JMSILVA Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 7, 2022 Report Share Posted December 7, 2022 Use bKeyChar() Regards, saludos. Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted December 7, 2022 Report Share Posted December 7, 2022 33 minutos atrás, kapiaba disse: Use bKeyChar() Regards, saludos. É uma function ? Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 7, 2022 Report Share Posted December 7, 2022 5 minutos atrás, Jmsilva disse: É uma function ? // C:\FWH..\SAMPLES\TECLAS.PRG #Include "FiveWin.Ch" FUNCTION Main() LOCAL oWnd DEFINE WINDOW oWnd TITLE "Testando as Teclas - Caixa Alta e Baixa" oWnd:bKeyDown = { | nKey | MsgInfo( "Caixa Baixa: " + Str( nKey ) ) } oWnd:bKeyChar = { | nKey | MsgInfo( "Caixa Alta.: " + Str( nKey ) ) } ACTIVATE WINDOW oWnd RETURN NIL Regards, saludos. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.