GoDiagram Web Reference
DoObjectEnterLeave Method

Perform the behavior that normally occurs when there is a change in the document object that the mouse is over.
Syntax
'Declaration
 
Public Overridable Sub DoObjectEnterLeave( _
   ByVal from As GoObject, _
   ByVal to As GoObject, _
   ByVal evt As GoInputEventArgs _
) 
public virtual void DoObjectEnterLeave( 
   GoObject from,
   GoObject to,
   GoInputEventArgs evt
)

Parameters

from
to
evt
Remarks

By default this raises the ObjectEnterLeave event by calling RaiseObjectEnterLeave. It calls GoObject.GoObject.OnEnterLeave for the from object (if not null) and the to object (if not null) and proceeds up the Parent chain for both objects. This allows groups such as nodes the ability to easily detect when the mouse enters or leaves the node, and to detect when the mouse moves over different child objects of a node. If both from and to are part of the same group, this method does not call GoObject.OnEnterLeave twice on the common parent group. A true value from a call to GoObject.OnEnterLeave will stop that chain of calls up the Parent tree.

This is normally called from the GoToolManager.DoMouseMove method, and from the GoToolDragging.GoToolDragging.DoMouseMove method. Therefore this ObjectEnterLeave event is not raised during a resize or a linking or a rubber-band selection operation. However, you may extend existing tools or define new tools to call this method under the circumstances and with the objects that your policy would indicate.

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

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback