Module: VROleDragSource
- Includes:
- VROleDragSourceLow
- Defined in:
- lib/vr/vrolednd.rb
Constant Summary
Constants included from VRMessageHandler
VRMessageHandler::PREHANDLERSTR
Constants included from OleDnDConstants
OleDnDConstants::DROPEFFECT_COPY, OleDnDConstants::DROPEFFECT_LINK, OleDnDConstants::DROPEFFECT_MOVE, OleDnDConstants::DROPEFFECT_NONE, OleDnDConstants::IDROPTARGET_NOTIFY_DRAGENTER, OleDnDConstants::IDROPTARGET_NOTIFY_DRAGLEAVE, OleDnDConstants::IDROPTARGET_NOTIFY_DRAGOVER, OleDnDConstants::IDROPTARGET_NOTIFY_DROP
Constants included from ClipboardFormat
ClipboardFormat::CF_HDROP, ClipboardFormat::CF_OEMTEXT, ClipboardFormat::CF_TEXT, ClipboardFormat::CF_URL, ClipboardFormat::RegisterClipboardFormat
Instance Method Summary collapse
Methods included from VROleDragSourceLow
#oledragsourcelowinit, #self_vr_oledrag, #set_dragobj_lparam, #start_oledragsource, #vrinit
Methods included from VRUserMessageUseable
#registerUserMessage, #userMessage, #usermessageuseableinit, #vrinit
Methods included from VRMessageHandler
#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching, #vrinit
Instance Method Details
#self_getoledragitem(format) ⇒ Object
185 186 187 188 189 190 191 |
# File 'lib/vr/vrolednd.rb', line 185 def self_getoledragitem(format) return 0 unless @_vr_draghash ddobj = @_vr_draghash[format] if ddobj then ddobj.handle else 0 end end |
#start_oledrag(objs, effect = 0x3) ⇒ Object
175 176 177 178 179 180 181 182 183 |
# File 'lib/vr/vrolednd.rb', line 175 def start_oledrag(objs,effect=0x3) @_vr_draghash={} formats = [] objs.each do |o| formats.push o.objectformat @_vr_draghash[o.objectformat] = o end start_oledragsource(formats,effect) end |