SftTree/NET 2.0

ItemDoubleClick Event, SftTree Class

Softel vdm, Inc.

Occurs when an item, cell or part is double-clicked.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Event ItemDoubleClick As ItemDoubleClickEventHandler

C#   

public event ItemDoubleClickEventHandler ItemDoubleClick;

C++   

public: event ItemDoubleClickEventHandler ItemDoubleClick;

Event Data

The ItemDoubleClick event handler receives an argument of type ItemClickEventArgs containing data related to this event.

Comments

The ItemDoubleClick event occurs when an item, cell or part is double-clicked.

Please note that the ItemDoubleClick event reflects mouse button events. The SelectionChange event should be used when selection changes need to be tracked, as these can also occur though keyboard input, which is not reflected by the ItemClick event.

The ItemDoubleClick event supplies all the necessary information to the application, so appropriate action can be taken. The application can start cell editing, expand or collapse an item or display application specific information based on the event and the area clicked.

The ItemDoubleClick event can be used to respond to a mouse button that is pressed twice within a short time. An ItemDoubleClick event is always preceded by an ItemClick event. If the pause between mouse click events is sufficiently long, the ItemClickAgain event may be generated instead of the ItemDoubleClick event.

If the ItemDoubleClick event is used to display a context sensitive menu (popup menu), the CancelMode method must be used before displaying the context menu.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com