SYS(1270) - Object Location

Returns a reference for an object at the specified point.

SYS(1270 [, nXCoord, nYCoord])

Parameters

  • nXCoord
    Specifies the horizontal coordinate in pixels relative to the Windows desktop.

  • nYCoord
    Specifies the vertical coordinate in pixels relative to the Windows desktop.

Return Value

Character or object reference. SYS(1270) returns a reference to the object at the location specified by nXCoord and nYCoord, if included. If nXCoord and nYCoord are omitted, SYS(1270) returns a reference to the object in the location of the current mouse position. If no object is located at either position, SYS(1270) returns False (.F.).

Note

For dockable forms, SYS(1270) will not return the proper object if the form is docked with other forms and the mouse (or nXCoord, nYCoord) is over the titlebar of the docking container.

See Also

Reference

AMOUSEOBJ( ) Function

CREATE FORM Command

GETPEM( ) Function

PEMSTATUS( ) Function

SYS(1269) - Property Information

SYS(1271) - Object's .SCX File

SYS(1272) - Object Hierarchy

ASELOBJ( ) Function

SYS( ) Functions Overview