Jump to content
Fivewin Brasil

Teclas de Atalho (Resolvido)


Edu

Recommended Posts

Veja se te ajuda:

    oDlg:bKeyDown := { | nKey | Ctrl_Teclas(nKey,oDlg) }
	Function Ctrl_Teclas(nKey,oDlg)
	   Do Case
   Case ( nKey == Asc( "S" ) .OR. nKey == Asc( "s" ) ) .AND. GetKeyState( VK_CONTROL )
      oDlg:End()
   Case ( nKey == Asc( "O" ) .OR. nKey == Asc( "o" ) ) .AND. GetKeyState( VK_CONTROL )
      Grava()
   Case ( nKey == Asc( "P" ) .OR. nKey == Asc( "p" ) ) .AND. GetKeyState( VK_CONTROL )
      Imprime()
   EndCase
	Return Nil


Link to comment
Share on other sites

Very good.

 

ou,

"mmercado"
Hola Ubiratan:

Preciso chamar em todo meu sistema a função GERAL(),


para isso gostaria de usar a tecla CTRL+K.
ex:
 setKey( CTRL+K,  { | nKey | GERAL()  } )
Como fazer isto?


No soy Antonio pero tal vez esto te sirva:

	   #define VK_K   75
	   SetKey( VK_K, {|| If( GetKeyState( VK_CONTROL ), GERAL(), Nil ) } )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...