PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Changing an event
Changing an event
Iniciado por david, 20,ago. 2003 15:06 - 1 respuesta
Publicado el 20,agosto 2003 - 15:06
Hello beautifull people!
I'm new to windev and i'm having problems with the ESC. In any MDI window
when i press ESC automatically closes the window. What i want is to move
the focus to the previous control by pressing ESC. Does anyone have an idea??
Publicado el 20,agosto 2003 - 17:11
david wrote:

Hello beautifull people!
I'm new to windev and i'm having problems with the ESC. In any MDI window
when i press ESC automatically closes the window. What i want is to move
the focus to the previous control by pressing ESC. Does anyone have an idea??


Hi !
remove all abort type buttons in your windows (via desc>detail>type)
then create an event for ESC via
EXTERN "WINCONST.WL"
Event("myesc", "*.*", WM_KEYUP)

then myesc should test code for ESC ( key _eve.wparam' if i remember)
and ReturnToCapture(PreviousField())

regards
R&B