Northwoods.Go Assembly > Northwoods.Go Namespace > GoObject Class : OnMouseOver Method |
'Declaration Public Overridable Function OnMouseOver( _ ByVal evt As GoInputEventArgs, _ ByVal view As GoView _ ) As Boolean
public virtual bool OnMouseOver( GoInputEventArgs evt, GoView view )
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 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.DoMouseOver is the normal caller.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2