Hi:
How can capture the key used to exit a textbox (PASSWORD)?
I tested with:
ON LOSTFOCUS {|| If( LastKey() = K_ESC, ControlEscape(), Validar Acceso(cPass)) }
and does not work.
TIA
jouhmg
Capture key
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Capture key
IMHO, Windows API provides total control to the "textbox". We can capture particular key pressing event only for a window container as a whole.
If we want to process Esc key sequence separately, we can use the following:
ON KEY <Key>
[ OF <ParentWindow> ]
ACTION <ActionProcedureName> | <bBlock>
If we want to process Esc key sequence separately, we can use the following:
ON KEY <Key>
[ OF <ParentWindow> ]
ACTION <ActionProcedureName> | <bBlock>
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Capture key
English by Google
*************
Hi:
I solved by replacing:
ON KEY ESCAPE OF...
...
...
ON LOSTFOCUS {|| If( LastKey() = K_ESC, ControlEscape(), ValidarAcceso(cPass)) }
by:
ON KEY ESCAPE OF...
...
...
ON ENTER {|| ValidarAcceso(cPass) }
Thank you very much for responding.
jouhmg
*************
Hi:
I solved by replacing:
ON KEY ESCAPE OF...
...
...
ON LOSTFOCUS {|| If( LastKey() = K_ESC, ControlEscape(), ValidarAcceso(cPass)) }
by:
ON KEY ESCAPE OF...
...
...
ON ENTER {|| ValidarAcceso(cPass) }
Thank you very much for responding.
jouhmg