PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Trapping Keystrokes
Trapping Keystrokes
Started by Rich Scheuermann, Sep., 05 2005 1:40 AM - 3 replies
Posted on September, 05 2005 - 1:40 AM
I need to trap keystrokes in an edit control.
I am new to WinDev and could not find anything helpful in the doucmentation.
Thanks
Posted on September, 05 2005 - 2:51 AM
I need to trap keystrokes in an edit control.
I am new to WinDev and could not find anything helpful in the doucmentation.
Thanks

Art covers it comprehensively in his answer. Just go the code for the edit control and plonk your code in the "Whenever modified" section. I have found this useful for all sorts of situations where I want to trap every keystroke in an edit control. If it's not a one-off, ie you want to do something similar for a number of edit controls, just call a procedure in the "Whenever modified" section.
Cheers
Chris L
Melbourne, Oz
Posted on September, 05 2005 - 11:12 AM
Dans un message Rich Scheuermann disait :

I need to trap keystrokes in an edit control.
I am new to WinDev and could not find anything helpful in the
doucmentation. Thanks



Not sure to understand the request as it is very large

For Edit Controls : use "a chaque modification" code. Your code will be
executed at every keystroke for that field. Just understand that the control
will contain all typed chars even the last one.

if needed, For other cases use shortcuts of buttons or windows events

HTH
--
Michel HERRSCHER CONSULTANT
Président WINDASSO - Association des utilisateurs WxxDEV(c)
Tel : +33450870912 Fax:+33450871741
http://www.windasso.org
Posted on September, 05 2005 - 4:09 PM
Hello Rich,
you can also use EVENT together with WM_CHAR.
Raimund
I need to trap keystrokes in an edit control.
I am new to WinDev and could not find anything helpful in the doucmentation.
Thanks



http://www.invitec.com