Colegas, necesito asignarle ciertas teclas a un control get pero al hacerlo se deshabilitan las teclas por defecto ( las flechas, retroceso, etc. ). Alguna pista para que esto no suceda ? Muchisimas gracias
Colegas, necesito asignarle ciertas teclas a un control get pero al hacerlo se deshabilitan las teclas por defecto ( las flechas, retroceso, etc. ). Alguna pista para que esto no suceda ? Muchisimas gracias
Muestra como est谩s haciendo via c贸digo. Saludos.
oGet[ 4 ] : bKeyDown := { | nKey | ::KeyGet4( nKey, oDlg ) } Function KeyGet4 ?? ahi algo en ella que causa este efecto 贸 no?//----------------------------------------------------------------------------//
Method KeyGet4( nKey, oDlg ) Class TCobro
//----------------------------------------------------------------------------//
聽 聽 Switch nKey
聽 聽 聽 聽 Case VK_RETURN
聽 聽 聽 聽 聽 聽 If( Round( ::nTCobrarBk, 2 ) == Round( ::nContado, 2 ) )
聽 聽 聽 聽 聽 聽 聽 聽 ::RealizaPago()
聽 聽 聽 聽 聽 聽 Else
聽 聽 聽 聽 聽 聽 聽 聽 ::MenuContado( oDlg )
聽 聽 聽 聽 聽 聽 End
聽 聽 聽 聽 聽 聽 Exit
聽 聽 聽 聽 Case VK_F9
聽 聽 聽 聽 聽 聽 AEval( ::aFacturas, { | x | x[ 1 ] := .f. } )
聽 聽 聽 聽 聽 聽 ::oBrw1 : Refresh()
聽 聽 聽 聽 聽 聽 ::nContado := 0
聽 聽 聽 聽 聽 聽 ::nTotal 聽 := 0
聽 聽 聽 聽 聽 聽 oGet[ 4 ] : Refresh()
聽 聽 聽 聽 聽 聽 oGet[ 4 ] : Disable()
聽 聽 聽 聽 聽 聽 ::oBrw1 : Enable()
聽 聽 聽 聽 聽 聽 ::oBrw1 : GoTop()
聽 聽 聽 聽 聽 聽 ::oBrw1 : aCols[ 5 ] : cFooter := Transform( ::nTotal, '@E 99,999,999.99' )
聽 聽 聽 聽 聽 聽 ::oBrw1 : SetFocus()
聽 聽 聽 聽 聽 聽 Exit
聽 聽 EndSwitch聽 聽聽 聽 聽 聽 聽 聽 聽 聽
聽 聽 Return 0//----------------------------------------------------------------------------//
Method KeyGet4( nKey, oDlg ) Class TCobro
//----------------------------------------------------------------------------//
Switch nKey
Case VK_RETURN
If( Round( ::nTCobrarBk, 2 ) == Round( ::nContado, 2 ) )
::RealizaPago()
Else
::MenuContado( oDlg )
End
Exit
Case VK_F9
AEval( ::aFacturas, { | x | x[ 1 ] := .f. } )
::oBrw1 : Refresh()
::nContado := 0
::nTotal := 0
oGet[ 4 ] : Refresh()
oGet[ 4 ] : Disable()
::oBrw1 : Enable()
::oBrw1 : GoTop()
::oBrw1 : aCols[ 5 ] : cFooter := Transform( ::nTotal, '@E 99,999,999.99' )
::oBrw1 : SetFocus()
Exit
EndSwitch
Return( nKey )
// Return 0Gracias Karinha, funcion贸 perfectamente.
Saludos