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



wxTextDropTarget::wxTextDropTarget



wxTextDropTarget(void)

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
The x coordinate of the mouse.

y
The y coordinate of the mouse.

data
The data being dropped: a wxString.

Return value

Return true to accept the data, false to veto the operation.

ymasuda 平成17年11月19日