[R-gui] gwidgets drag and drop basic question
Mark Heckmann
mark.heckmann at gmx.de
Sat Dec 12 13:57:18 CET 2009
I got stuck while trying to implement Drag and Drop in gwidgets.
I hoped the following code would call the handler function and thus
print something to the console.
But it does not. ISo suppose I do not understand some basic
properties of the handler mechanism.
Can someone explain?
w <- gwindow()
lab = glabel("drag me",container=w)
ed = gedit("drop here",container = w)
adddropsource(lab)
adddroptarget(ed, handler=function(h,...) print("arrived"))
Thanks,
Mark
–––––––––––––––––––––––––––––––––––––––
Mark Heckmann
Dipl. Wirt.-Ing. cand. Psych.
Vorstraße 93 B01
28359 Bremen
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
More information about the R-SIG-GUI
mailing list