Consultor Eletrônico



Kbase 16305: Writing a trigger to fire on all ALT-key combinations
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Writing a trigger to fire on all ALT-key combinations

If you want to capture all ALT-key sequences, you can
use the following code. Note that this trigger is
firing on every key stroke and could possibly slow
the application down.

ON ANY-KEY OF FILL-IN-1 IN FRAME F-Main
DO:

IF LASTKEY > 1024 AND LASTKEY < 2047 THEN
DO:
MESSAGE "ALT-KEY used".
APPLY my-event TO FILL-IN-1.
END.
END

ON my-event ANYWHERE DO:
CASE statement to cover ALT-KEYS.
END.

Further references:
Programming Handbook, Chapter 5, Handling User Input

Progress Software Technical Support Note # 16305