Kbase P10778: How to create a keyboard event
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/11/2008 |
|
Status: Unverified
GOAL:
How to create a keyboard event.
FACT(s) (Environment):
Progress 9.1x
OpenEdge 10.x
FIX:
In way to be able to make your application react on a key pressed by a user, you can create a keyboard event.
For example you need to make react your application when the User press on KEY C inside a fill-in.
1. Go to the Section Editor of the Fillin.
2. Go to the trigger of this fill-in.
3. Choose NEW, a window will pop-up with 2 choices, Key Function or Key Label.
4. Choose Key Label.
5. Press the key you want your application react when pressed, in our example "C".
A New Trigger event has been created.
The syntax of the generated code is:
ON C OF FILL-IN-1 IN FRAME fMain:
Message "MARY HAS A LITTLE LAMB" VIEW-AS ALERT-BOX.
END.