wxRuby Documentation Home

Wx::TextDropTarget

A predefined drop target for dealing with text data.

Derived from

DropTarget

See also

Drag and drop overview, DropSource,
DropTarget, FileDropTarget

Methods

TextDropTarget.new

TextDropTarget#on_drop

Boolean on_drop(%(arg-type)Integer% x, Integer y, (arg-type) data, Integer size)

See DropTarget#on_drop. This function is implemented
appropriately for text, and calls TextDropTarget#on_drop_text.

TextDropTarget#on_drop_text

Boolean on_drop_text(%(arg-type)Integer% x, Integer y, String data)

Override this function to receive dropped text.

Parameters

Return value

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

[This page automatically generated from the Textile source at 2023-06-09 00:45:30 +0000]