PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Changing an event
Changing an event
Débuté par david, 20 aoû. 2003 15:06 - 1 réponse
Posté le 20 août 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??
Posté le 20 août 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