GoDiagram Win Reference
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
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
'Declaration
 
Public Overridable Function OnEnterLeave( _
   ByVal from As GoObject, _
   ByVal to As GoObject, _
   ByVal view As GoView _
) As Boolean
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.DoObjectEnterLeave method. Thus the 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.

Requirements

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

See Also

Reference

GoObject Class
GoObject Members
OnMouseOver Method
OnHover Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback