GoDiagram Web Reference
ObjectDoubleClicked Event

A document object was double clicked by the user.
Syntax
'Declaration
 
<CategoryAttribute("GoView")>
<DescriptionAttribute("A document object was double clicked by the user (a GoObjectEventHandler)")>
Public Event ObjectDoubleClicked As GoObjectEventHandler
[CategoryAttribute("GoView")]
[DescriptionAttribute("A document object was double clicked by the user (a GoObjectEventHandler)")]
public event GoObjectEventHandler ObjectDoubleClicked
Event Data

The event handler receives an argument of type GoObjectEventArgs containing data related to this event. The following GoObjectEventArgs properties provide information specific to this event.

PropertyDescription
Alt (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets whether Modifiers has the Alt flag (mask == 4) set.
Buttons (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the MouseButtons used with this input event.
Control (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets whether Modifiers has the Control flag (mask == 2) set.
Delta (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the amount of change associated with a mouse-wheel rotation.
DocPoint (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the point at which this input event occurred.
DoubleClick (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets whether this is a double-click event.
GoObject Gets or sets the GoObject associated with this event.
InputState (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the GoInputState as defined by various tools.
IsContextButton (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets whether Buttons equals MouseButtons.Right.
Key (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the key pressed as this input event.
Modifiers (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the modifier keys used with this input event.
Shift (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets whether Modifiers has the Shift flag (mask == 1) set.
ViewPoint (Inherited from Northwoods.GoWeb.GoInputEventArgs)Gets or sets the point at which this input event occurred.
Remarks
This event is raised for the first document object found at the GoInputEventArgs.DocPoint. Unlike GoObject.OnDoubleClick, which proceeds up the Parent chain until a call returns true, this event occurs only once. Thus you will often need to look at the GoObject.ParentNode or GoObject.TopLevelObject in order to find the most meaningful object to really handle the click.
                MyView.ObjectDoubleClicked += new GoObjectEventHandler(MyView_ObjectDoubleClicked);
              ...
              private void MyView_ObjectDoubleClicked(Object sender, GoObjectEventArgs evt) {
                GoBasicNode bn = evt.GoObject.ParentNode as GoBasicNode;
                if (bn != null) {
                  MessageBox.Show("Double-clicked on " + bn.Text);
                }
              }
            
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