wx.DropSource Class Reference

Inheritance diagram for wx.DropSource:


List of all members.

Public Member Functions

override void Dispose ()
virtual DragResult DoDragDrop (Drag flags)
 DropSource (DataObject dataObject, Window win)
 DropSource (Window win)
 DropSource (IntPtr wxObject)

Protected Attributes

DataObject m_dataObject = null


DataObject DataObject [get, set]

Detailed Description

This class represents a source for a drag and drop operation.

Cf. Drag and drop overview

Constructor & Destructor Documentation

wx.DropSource.DropSource ( IntPtr  wxObject  ) 

For internal use only

wxObject Pointer to a native C++ instance

wx.DropSource.DropSource ( Window  win  ) 

Creates a drop source referring to the provided window as data source.

win The source of the dropped data.

wx.DropSource.DropSource ( DataObject  dataObject,
Window  win 

Creates a drop source referring to a window provising the data and the dragged data.

dataObject The dragged data.
win The source of the dropped data.

Member Function Documentation

override void wx.DropSource.Dispose (  )  [virtual]

Reimplemented from wx.Object.

virtual DragResult wx.DropSource.DoDragDrop ( Drag  flags  )  [virtual]

Do it (call this in response to a mouse button press, for example). This starts the drag-and-drop operation which will terminate when the user releases the mouse.

flags Describes the drag operation. If wx.Drag.wxDrag_AllowMove is included in the flags, data may be moved and not only copied (default). If wx.Drag.wxDrag_DefaultMove is specified (which includes the previous flag), this is even the default operation.
Returns the operation requested by the user, may be wx.Drag.wxDragCopy, wx.Drag.wxDragMove, wx.Drag.wxDragLink, wx.Drag.wxDragCancel, or wx.Drag.wxDragNone if an error occurred.

Member Data Documentation

DataObject wx.DropSource.m_dataObject = null [protected]

Property Documentation

DataObject wx.DropSource.DataObject [get, set]

Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads