Focus - cUIObject

Returns the ID of the object that currently has the focus

Type: Property

Access: Read-Only

Data Type: Handle

Parameters: None

Syntax
 Property Handle Focus

Read Access: Get Focus to HandleVariable


Description

The Focus property returns the ID of the object that currently has the focus. This property may be used anywhere an object_id is called for. This property is used in object-independent procedures, where the procedure is designed to act upon the focus. The desktop object has a property called focus, being the ID of the object that has the focus.

Send SaveYourself of (Focus(Desktop))

If (Focus(Desktop)=Self) Send DeActivate