GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / OnMouseOver Method
In This Topic
    OnMouseOver Method (GoObject)
    In This Topic
    Called when the user moves the mouse over this object when not dragging or resizing.
    Syntax
    public virtual bool OnMouseOver( 
       GoInputEventArgs evt,
       GoView view
    )

    Parameters

    evt
    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 parents.
    Remarks

    By default this method just calls GetCursorName; if the return value is a string, it sets the view's GoView.CursorName property to that value; otherwise this method returns false. Your override of this method can decide to set the Control.Cursor property directly, if you do not want to use the GetCursorName method. The view's GoView.DoBackgroundMouseOver method is responsible for restoring the default cursor for the view when the pointer is no longer over an object that specifies a cursor. The view method GoView.DoMouseOver will call GoView.DoBackgroundMouseOver when all the calls to this object method OnMouseOver return false.

    Normally this method is called when no specific tool is in control for the view, i.e., when the GoToolManager tool is the view's current tool. GoView.GoView.DoMouseOver is the normal caller.

    See Also