Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] how to drag'n'drop ?

From: jason::cunliffe::verizon::net at: 1-Oct-2002 23:26

I just accidentally discovered a great drag'n'drop feature of MSIE6 Drag an image onto another brower window and bang it displays the cached version. That makes it much faster when you want to save/email/whatever no more fiddly right-mouse clicking. Yesterday I was playing around with the wxPython demos. there's nice one with drag'n'drop. I want this for rebol apps => -open a browsder -drag an image onto rebol/view... -zing upload to remote site What is needed to do this in REBOL? Would'nt it be sweet to have some of this in /View? from wxPython.wx import * #---------------------------------------------------------------------- class MyURLDropTarget(wxPyDropTarget): def __init__(self, window): wxPyDropTarget.__init__(self) self.window = window = wxURLDataObject(); self.SetDataObject( def OnDragOver(self, x, y, d): return wxDragLink def OnData(self, x, y, d): if not self.GetData(): return wxDragNone url = self.window.AppendText(url + "\n") return d ./Jason