Click or drag to resize

GetFocusedObject Function

X#
Return the object corresponding to the control or window that currently has input focus.

Namespace:  VOGUIClasses
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 FUNCTION GetFocusedObject() AS Object
Request Example View Source

Return Value

Type: Object
The window or control object that currently has input focus.
Remarks
Examples
This example causes a beep if the object that currently has input focus is a MultiLineEdit control:
X#
1oObj := GetFocusedObject()
2IF oObj != NULL_OBJECT .AND. IsInstanceOf(oControl, #MultiLineEdit)
3MessageBeep(MB_ICONASTERISK)
4ENDIF
See Also