Closed davidgohel closed 9 years ago
There isn't really such an option in the underlying toolkit the way there is in Qt. Using a vertical group with expand=FALSE
gives a place to pack in buttons. The call btn=gbutton(action=a, cont=tb)
will make a button from an action. The call btn$remove_border()
will make each one look more like a toolbar button, than a button. It isn't perfect, but not bad. The following pattern allows you to adjust the position of the image, though using it with action items requires a bit more work:
b = gbutton("", cont=tb)
b$widget["image-position"] = GtkPositionType["top"]
svalue(b) <- "open"
b$remove_border()
(For some reason the image doesn't show without the extra call to svalue
, though that might be just my setup.)
Thanks for the suggestion.
I did get something satisfying.
Thanks again
Dear John Verzani,
Thanks for your very useful package.
I am trying to design an app containing a vertical
gtoolbar
.I tried with argument fill set to "y" (and "x") but it has no effect. Is it possible? Below the code I am using:
And my sessionInfo()
Any suggestion is welcome. David