#include <wx/dnd.h>

A predefined drop target for dealing with text data.
Public Member Functions | |
| wxTextDropTarget () | |
| Constructor. | |
| virtual bool | OnDrop (wxCoord x, wxCoord y) |
| See wxDropTarget::OnDrop(). | |
| virtual bool | OnDropText (wxCoord x, wxCoord y, const wxString &data)=0 |
| Override this function to receive dropped text. | |
| wxTextDropTarget::wxTextDropTarget | ( | ) |
Constructor.
This function is implemented appropriately for text, and calls OnDropText().
Reimplemented from wxDropTarget.
| virtual bool wxTextDropTarget::OnDropText | ( | wxCoord | x, | |
| wxCoord | y, | |||
| const wxString & | data | |||
| ) | [pure virtual] |
Override this function to receive dropped text.
| x | The x coordinate of the mouse. | |
| y | The y coordinate of the mouse. | |
| data | The data being dropped: a wxString. |
Return true to accept the data, or false to veto the operation.
|
[ top ] |