GetFocusedObject Function | |
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
public static Object GetFocusedObject()
Request Example
View SourceReturn 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:
1oObj := GetFocusedObject()
2IF oObj != NULL_OBJECT .AND. IsInstanceOf(oControl, #MultiLineEdit)
3MessageBeep(MB_ICONASTERISK)
4ENDIF
See Also