Jump to content
Fivewin Brasil

tecla de atalho (+)


marcioe

Recommended Posts

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 

 

Link to comment
Share on other sites

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.

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