property Gauge.LayerFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Long
Retrieves the index of the layer from the point ( only visible and selectable objects are included ).

TypeDescription
X as OLE_XPOS_PIXELS A long expression that specifies the x-position in client coordinate to get the layer from.
Y as OLE_YPOS_PIXELS A long expression that specifies the y-position in client coordinate to get the layer from.
Long A Long expression that specifies the index of the layer from the cursor, or -1 if not found.
The LayerFromPoint property retrieves the layer from point that's visible and selectable. The Visible property shows or hides a specific layer (visible). The Selectable property returns or sets a value that indicates whether the layer is selectable. The Item property accesses the Layer object giving its index. The OnDrag property indicates the action to be performed when the user drags the layer ( dragable ). Use the ShowToolTip method to display a custom tooltip. The ToolTip / ToolTipTitle property indicates the layer's tooltip. The MouseMove event is generated continually as the mouse pointer moves across objects.