![]() ![]() ![]() ![]() wxtextdroptargeta predefined drop target for dealing with text data. derived from include files <wx/dnd.h> see also drag and drop overview, wxdropsource, wxdroptarget, wxfiledroptarget members
wxtextdroptarget::wxtextdroptarget
wxtextdroptarget::wxtextdroptargetwxtextdroptarget() constructor.
wxtextdroptarget::ondropvirtual bool ondrop(long x, long y, const void *data, size_t size) see wxdroptarget::ondrop. this function is implemented appropriately for text, and calls wxtextdroptarget::ondroptext.
wxtextdroptarget::ondroptextvirtual bool ondroptext(wxcoord x, wxcoord y, const wxstring& data) override this function to receive dropped text. parameters x
y
data
return value return true to accept the data, false to veto the operation.
|