gframe: gframe is a title-decorated ggroup box container

Description Usage Arguments Value See Also Examples

View source: R/gframe.R

Description

Use svalue<- to adjust the title

Usage

1
2
3
gframe(text = "", pos = 0, horizontal = TRUE, spacing = 2,
  use.scrollwindow = FALSE, container = NULL, ..., width = NULL,
  height = NULL, ext.args = NULL)

Arguments

text

label text

pos

position of label. Ignored?

horizontal

Boolean. Set to TRUE to pack children horizontally.

spacing

Integer. Between child spacing.

use.scrollwindow

Boolean. Set to TRUE to add a scrollwindow to manage space given to child widgets. Containers with scrollwindows often have their size fixed.

container

A parent container. In gWidgetsWWW2 a parent container is not optional (though it can be substituted with the parent argument in some circumstances). The parent specifies the widget heirarchy and the ... argument is used to pass along arguments to layout the child component in the parent container. Typically, these are passed to the add method of the parent container.

...

Used to pass along argument to the parent container's add method and possible other arguments to the underlying ference class constructors.

width

width in pixels of component. Sizing in gWidgetsWWW2 is sometimes necessary as the arguments expand and fill are not well implemented.

height

height in pixels of the component.

ext.args

The contructors of gWidgetsWWW2 ultimately call an Ext constructor. The options passed to the Ext constructor may be added to or overridden by use of this argument. Values are passed in as named list components and with values converted into JavaScript objects by asJSObject.

Value

an GContainer object

See Also

ggroup

Examples

1
2
3
4
w <- gwindow()
g <- gframe("Label", cont=w)
b <- gbutton("insider frame", cont=g)
svalue(g) <- "new label"

gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.