wx.TextDropTarget Class Reference

Inheritance diagram for wx.TextDropTarget:

wx.DropTarget wx.Object

List of all members.

Public Member Functions

override bool GetData ()
override DragResult OnData (int x, int y, DragResult def)
override bool OnDrop (int x, int y)
abstract bool OnDropText (int x, int y, string text)
 TextDropTarget ()


Detailed Description

A predefined drop target for dealing with text data.

Cf. Drag and drop overview.


Constructor & Destructor Documentation

wx.TextDropTarget.TextDropTarget (  ) 


Member Function Documentation

override bool wx.TextDropTarget.GetData (  )  [virtual]

This method may only be called from within OnData. By default, this method copies the data from the drop source to the wxDataObject associated with this drop target, calling its wx.DataObject.SetData method.

See also:
OnData

Reimplemented from wx.DropTarget.

override DragResult wx.TextDropTarget.OnData ( int  x,
int  y,
DragResult  def 
) [virtual]

Called after OnDrop() returns true. By default this will usually GetData() and will return the suggested default value def.

Parameters:
x The x coordinate of the mouse.
y The y coordinate of the mouse.
def Suggested default for return value. Determined by SHIFT or CONTROL key states.
See also:
GetData

Implements wx.DropTarget.

override bool wx.TextDropTarget.OnDrop ( int  x,
int  y 
) [virtual]

Called when the user drops a data object on the target. Return false to veto the operation.

Parameters:
x The x coordinate of the mouse.
y The y coordinate of the mouse.
Returns:
Return true to accept the data, false to veto the operation.

Reimplemented from wx.DropTarget.

abstract bool wx.TextDropTarget.OnDropText ( int  x,
int  y,
string  text 
) [pure virtual]

Override this function to receive dropped text.

Parameters:
x The x coordinate of the mouse.
y The y coordinate of the mouse.
text The data being dropped: a string.
Returns:
Return true to accept the data, false to veto the operation.


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