Jump to content
Fivewin Brasil

Teclas de Atalho (Alt+A)


marcioe

Recommended Posts

Veja se ajuda...

// Para Usar Tecla ALT+Letra. By Ednaldo Rolim
Static Function Teste( nKey, nFlags )
	    local cKey:= CHR( nKey )
	    If  GetKeyState( VK_CONTROL ) .And. ;
        GetKeyState( VK_SHIFT )
	        MsgInfo( " CONTROL + SHIFT + " + cKey )
	        ElseIf GetKeyState( VK_CONTROL )
	        MsgInfo( " ALT + CONTROL + " + cKey )
	        ElseIf GetKeyState( VK_SHIFT )
	        MsgInfo( " ALT + SHIFT + " + cKey )
	        ElseIf GetKeyState( VK_MENU )                    // alt key
	        MsgInfo( " ALT + " + cKey )
	    EndIf
	    // By Ednaldo Rolim - The Best.
    cKey:= Upper( cKey )
	    IF  cKey == "I"            // Alt+I
	        MsgInfo( " INCLUIR" )
	        ELSEIF cKey == "A"    // Alt+A
	        MsgInfo( " ALTERAR" )
	        ELSEIF cKey == "E"    // Alt+E
	        MsgInfo( " EXCLUIR" )
	        ELSEIF cKey == "P"    // Alt+P
	        MsgInfo( " IMPRIMIR" )
	        ELSEIF cKey == "R"    // Alt+R
	        MsgInfo( OemToAnsi( " RELATàRIOS" ) )
	    ENDIF
	Return( nKey )

Abraços

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...