Progress
Language Reference
CODE Attribute
A numeric code associated with the last event.
Data Type: INTEGERAccess: ReadableApplies To: LAST-EVENT System HandleFor keyboard and mouse events (EVENT-TYPE attribute set to "KEYPRESS" or "MOUSE"), this is the key code. For high-level Progress events (EVENT-TYPE attribute set to "PROGRESS"), this is a unique numeric value greater than the key code values. For information on key codes, see the chapter on handling user input in the Progress Programming Handbook .
If a mouse event is high-level mouse event (for example, MOUSE-SELECT-CLICK), this attribute is set to the key code of the low-level mouse event (for example, MOUSE-SELECT-UP) that triggered the high-level event. To determine the triggered high-level event, you must also check the value of the FUNCTION attribute, in this case "MOUSE-SELECT-CLICK".
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |