j verzani
Fri, 26 Feb 2010 17:13:00 -0800
Liviu Andronic <landronimirc <at> gmail.com> writes: > > Dear all > I would like to have one "status area" per container, hence several in > a window. The problem with gstatusbar() is that it can only be > attached to a window, and the result is not very clean. Please see the > code below. > > Is there a way to attach a "status area" to a container? Thank you > Liviu >
Sorry, not without just using RGtk2 commands. At some time this was possible,
but I changed the behavior so statusbars, menusbars and toolbars are only part
of a toplevel window.
If you want to use RGtk2 commands, it isn't so hard. Here is an example:
library(RGtk2)
library(gWidgets); options(guiToolkit="RGtk2")
w <- gwindow()
g <- ggroup(cont=w, horizontal=FALSE)
g1 <- ggroup(cont=g, horizontal=FALSE)
glabel("one", cont=g1)
sb1 <- gtkStatusbar(); add(g1, sb1)
g2 <- ggroup(cont=g, horizontal=FALSE)
glabel("two", cont=g2)
sb2 <- gtkStatusbar(); add(g2, sb2)
sb1$push(1, "some text")
sb1$push(1, "new text")
sb1$pop(1)
..snip..
--JOhn
_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gui