Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gframe

Constructor for framed box container with label


Description

The framed box container inherits from ggroup. The main addition is a label, which is accessed via the name method.

generic for toolkit dispatch

Usage

gframe(text = "", markup = FALSE, pos = 0, horizontal = TRUE,
  spacing = 5, container = NULL, ..., toolkit = guiToolkit())

.gframe(toolkit, text = "", markup = FALSE, pos = 0, horizontal = TRUE,
  spacing = 5, container = NULL, ...)

Arguments

text

frame label

markup

does label use markup (toolkit specific)

pos

position of label: 0=left, 1=right, some toolkit allow values in between

horizontal

logical. If TRUE, left to right layout, otherwise top to bottom

spacing

spacing aroud widget

container

parent container

...

passed through

toolkit

toolkit

Note

to include a scrollwindow, place a ggroup within this window.

See Also

Examples

## Not run: 
w <- gwindow("gformlayout", visible=FALSE)
f <- gframe("frame", horizontal=FALSE, container=w)
glabel("Lorem ipsum dolor sit amet, \nconsectetur adipiscing elit.", container=f)
gbutton("change name", container=f, handler=function(h,...) {
  names(f) <- "new name"
})
visible(w) <- TRUE

## End(Not run)

gWidgets2

Rewrite of gWidgets API for Simplified GUI Construction

v1.0-8
GPL (>= 3)
Authors
John Verzani
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.