GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / OnEnterLeave Method
the object that had been under the mouse, or null if the mouse was not over any document object
the object that is now under the mouse, or null if the mouse is now in the view's background
In This Topic
    OnEnterLeave Method
    In This Topic
    Called when the document object immediately under the mouse changes as the mouse moves when no particular tool is running or when the GoToolDragging tool is running.
    Syntax
    public virtual bool OnEnterLeave( 
       GoObject from,
       GoObject to,
       GoView view
    )

    Parameters

    from
    the object that had been under the mouse, or null if the mouse was not over any document object
    to
    the object that is now under the mouse, or null if the mouse is now in the view's background
    view

    Return Value

    True to indicate this object handled the event and thus that the calling view need not continue calling the method up the chain of parent objects.
    Remarks

    By default this method does nothing but return false. This method is normally invoked by the GoToolManager tool and the GoToolDragging tool, through the GoView.GoView.DoObjectEnterLeave method. Thus the GoView.ObjectEnterLeave event is not raised during a resize or a linking operation or the operation of other tools. This method is also not called directly on external drag-and-drop operations from other Controls. However, you may be able to get called in such situations if GoView.GoView.ExternalDragDropsOnEnter is true, because then a drag enter causes a drop which adds objects to the document that are dragged around by the GoToolDragging tool.

    See Also