Displaying 3 results from an estimated 3 matches for "ggraphics".
Did you mean:
graphics
2009 Dec 22
1
RGtk2 - retrieve ggraphics mouse coordinates during drag-and-drop event
...to drag an element from the table onto the graphic.
When the drag object is released over the ggraphic widget, I want the
mouse coordinates inside the ggraphic to be returned.
Right now I do not know how to get the mouse ccordinates of the
ggraphic widget at any given time.
How can I access the ggraphics mouse coordinates?
Below you find my sample code (windows only due to ggraphics).
TIA,
Mark
library(gWidgets)
library(RGtk2)
options("guiToolkit"="RGtk2")
w = gwindow("ggraphics example")
table <- gtable(1:10, container=w)
g = ggraphics(cont=w, expand=T)
size(g...
2009 Jun 25
1
How do I define the method for gcheckboxgroup in gWidgets?
...gframe("y range", container = leftPanel)
add(tmp, yrange, expand = TRUE)
tmp <- gcheckboxgroup(stuff, handler = report.which, index = TRUE,
checked = c(TRUE, FALSE, FALSE, FALSE, FALSE), container = leftPanel)
add(tmp, value = 1, expand = TRUE)
# Put it all together
add(mainWin, ggraphics()) # puts the active graphic window w/i mainWin
2011 Dec 18
1
gWidgets: how to remove that is box drawn when moving the mouse with pressed button
...hics object?
I have seen that in the 'playwith' package the box changes to an arrow when
using the 'pan' button. But I do not find the corresponding line in the code to implement that.
library(gWidgets)
options("guiToolkit"="RGtk2")
w <- gwindow()
g <- ggraphics(cont=w)
par(mar=rep(0,4))
size(g) <- c(600,600)
plot(1:10)
Thanks!
Mark
????????????????????????????????????
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com