Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

ObjectSetFocus

  • Last UpdatedMay 06, 2025
  • 1 minute read

This function sets keyboard focus to the ActiveX control located at a specified AN on a graphics page if the control will support it. In some cases, the ActiveX control may have a more complex window arrangement which will prevent keyboard focus being set to the expected window.

Syntax

ObjectSetFocus(nAN)

nAN

The reference AN for the ActiveX control.

Return Value

0 if successful, or an error code if an invalid AN is used or the AN is not associated with an ActiveX control.

Note: This function should not be called from an On page entry event as controls are not guaranteed to be initialized. If required, use the On page shown event instead (see Page Properties - Events).

See Also

ActiveX Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in