Jump to content
Fivewin Brasil

SETKEY


maudruidas

Recommended Posts

Boa tarde, estou habilitando meu F2 da seguinte forma:

  SETKEY(VK_F2 , {|| LOCGRU(OGETG,DGRU,ODSGRU) })
 

até aí nenhum problema. Gostaria de saber como fazer para ativar este F2 apenas quando o usuário entrar no meu GET e quando sair desativar. Meu get:

  REDEFINE GET OGETG VAR GRU ID 105 OF ODLGMS FONT OFNC3 PICTURE "999" ;
  VALID FUNGRU(GRU,DGRU,ODSGRU,OGETG,"N") BITMAP "BUSCAR" ACTION(LOCGRU(OGETG,DGRU,ODSGRU));
  WHEN (LETRA="I" .OR. LETRA="A")
  OGETG:lBtnTransparent := .t.       // transparent button
 

Fivewin for xHarbour 21.2   xHarbour 1.2.3 Intl. (SimpLex) (Build 20201212). Workshop.

Link to comment
Share on other sites

   REDEFINE GET aGet[10] VAR cTPSerCod PICTURE "@K !!!!" ID 21 OF oDlg       ;
      UPDATE COLORS CLR_BLACK, CLR_WHITE FONT oFont BITMAP "BUSCAR"          ;
      VALID( VERIFICA_COD_SERVICO( aGet, cTPSerCod ) )                       ;
      ACTION( MOSTRAR_COD_SERVICO( aGet, cTPSerCod ) )
   aGet[10]:cToolTip := OemToAnsi( "<F7> - Mostra o Tipo do Servi‡o" )
   aGet[10]:lBtnTransparent := .T.       // transparent button
   aGet[10]:bKeyDown := { |nKey| IF( nKey == VK_F2, Eval( aGet[10]:bAction ), 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...