Contents Up Previous Next

wxTextDropTarget

A predefined drop target for dealing with text data.

Derived from

wxDropTarget

Include files

<wx/dnd.h>

See also

Drag and drop overview, wxDropSource, wxDropTarget, wxFileDropTarget

Members

wxTextDropTarget::wxTextDropTarget
wxTextDropTarget::OnDrop
wxTextDropTarget::OnDropText


wxTextDropTarget::wxTextDropTarget

wxTextDropTarget()

Constructor.


wxTextDropTarget::OnDrop

virtual 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::OnDropText

virtual 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.