A. Features Introduced in OpenROAD 4.1 : OpenROAD 4.1/0109 Enhancements : New Events : KeyDown Event
 
Share this page                  
KeyDown Event
The KeyDown event is triggered whenever OpenROAD receives a WM_KEYDOWN or WM_SYSKEYDOWN message. The event is not queued, but is generated immediately.
Information about the key is stored in the KeyDownData object, which is delivered to the 4GL program in the MessageObject attribute of FrameExec. The 4GL event code has the opportunity to stop further processing of the WM_KEYDOWN or WM_SYSKEYDOWN message by modifying the KeyDownData object. To discard the message, the developer should set the KeyDownData.VirtualKey to zero.
The PrintScrn key does not cause a KeyDown event, and no other events are generated in conjunction with a KeyDown event. In particular, the KeyDown event does not cause either a SetValue or a ChildSetValue event.
For more information about this event, see the latest version of the Language Reference Guide.