wx.FileDropTarget Class Reference

Inheritance diagram for wx.FileDropTarget:

wx.DropTarget wx.Object

List of all members.

Public Member Functions

 FileDropTarget ()
override bool GetData ()
override DragResult OnData (int x, int y, DragResult def)
override bool OnDrop (int x, int y)
abstract bool OnDropFiles (int x, int y, string[] filenames)


Detailed Description

This is a drop target which accepts files e.g. dragged from File Manager or Explorer (Drag and drop overview).

Constructor & Destructor Documentation

wx.FileDropTarget.FileDropTarget (  ) 


Member Function Documentation

override bool wx.FileDropTarget.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.FileDropTarget.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.FileDropTarget.OnDrop ( int  x,
int  y 
) [virtual]

See wx.DropTarget.OnDrop. This function is implemented appropriately for files, and calls wx.FileDropTarget.OnDropFiles().

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.FileDropTarget.OnDropFiles ( int  x,
int  y,
string[]  filenames 
) [pure virtual]

Called if files are dropped on this target.

Parameters:
x The x coordinate of the mouse.
y The y coordinate of the mouse.
filenames Names of the files to be dropped
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