Ver Mensaje Individual
  #3  
Antiguo 10-11-2009
luifervm luifervm is offline
Miembro
 
Registrado: nov 2009
Posts: 12
Reputación: 0
luifervm Va por buen camino
Hola... no... lo intenté por allě y no funciono ...

Estuve buscando en unos foros bien antiguos y encontre un post del creador de los controles aca lo pongo:

********************************************************
One way would be to trap the escape key using the grid's OnKeyDown event.

There you could set the key to 0 so that the grid would not process the
escape. Instead you could call the cancel method of the dataset. This
would disable the grid's default behavior of handling the escape.

Another idea is to use the TwwIntl component's UserMessages |
wwDBGridDiscardChanges property and change the message to what you want.
However this would not prevent your BeforeCancel event from firing so you
would need to find some way to handle this on your own.

--
Roy (Woll2Woll Software)

********************************************************

Lo que suguiere para atrapar el escape es como la forma de saltarse el comportamiento por defecto y podria ser una solucion... De todas maneras si alguien conoce un método mas simple, por favor cuenteme jejeje ... Lo del cambio de mesajes si es algo que no le entiendo para nada... Si alguien lo ha manejado, por favor una explicacioncita de que hay que hacer ...

Gracias !
Responder Con Cita