Progress
Language Reference
SELF System Handle
A handle to the object or widget associated with the currently executing user-interface trigger or event procedure.
SYNTAX
attribute
An attribute of the object or widget associated with the trigger or event procedure. The specific attributes available depend on the type of the object or widget. You can determine the object or widget type by examining the SELF:TYPE attribute.
EXAMPLEThe following example uses the SELF handle to display the starting and ending positions of an object you move.
NOTES
- You can reference the SELF handle only within a user-interface trigger or the event procedure for an ActiveX control or asynchronous remote request.
- In user-interface triggers, SELF is not automatically the widget that has input focus. To give input focus to the widget referenced by SELF, you must apply the ENTRY event to SELF within the trigger block. Note that you must do this for fill-in widgets whose AUTO-ZAP attribute you want to set, as in this fragment.
This makes SELF = FOCUS, which allows the new AUTO-ZAP value to take effect. For more information on the AUTO-ZAP attribute, see the "Attributes and Methods Reference" section in this manual.
- In the event procedure of an asynchronous remote request or in the context of a procedure called directly or indirectly by this event procedure, SELF returns the associated asynchronous request handle.
- In the event procedure of an ActiveX control, SELF returns the control-frame widget handle and the COM-SELF system handle returns the control-frame COM-HANDLE value.
- If referenced within a READ-RESPONSE event procedure, then SELF is the socket handle associated with the connection that received the message. If referenced within the CONNECT event procedure, then SELF is the server socket handle.
SEE ALSO
Asynchronous Request Object Handle, COM-SELF System Handle, FOCUS System Handle, LAST-EVENT System Handle
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |