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
_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gui