Basic box container
Basic box container
S3 generic whose methods are implemented in the toolkit packages
The svalue
method refers to the main property of the box
container, its spacing. There are generally two types of spacing:
padding around border of the box and spacing between each child
that is packed in. The spacing here is the between-child-component spacing.
The reference class method set_borderwidth
can be used for the other.
Avoids need to type horizontal=FALSE
ggroup(horizontal = TRUE, spacing = 5, use.scrollwindow = FALSE, container = NULL, ..., toolkit = guiToolkit()) .ggroup(toolkit, horizontal = TRUE, spacing = 5, use.scrollwindow = FALSE, container = NULL, ...) ## S3 replacement method for class 'GGroup' svalue(obj, index=TRUE, ...) <- value gvbox(spacing = 5, use.scrollwindow = FALSE, container = NULL, ..., toolkit = guiToolkit())
horizontal |
logical. If TRUE, left to right layout, otherwise top to bottom |
spacing |
spacing aroud widget |
use.scrollwindow |
logical. Either |
container |
A parent container. When a widget is created it can be incorporated into the widget heirarchy by passing in a parent container at construction time. (For some toolkits this is not optional, e.g. gWidgets2tcltk or gWidgets2WWW2.) |
... |
These values are passed to the |
toolkit |
Each widget constructor is passed in the toolkit it
will use. This is typically done using the default, which will
lookup the toolkit through |
obj |
|
index |
ignored |
value |
value (in pixels) for between child spacing |
Child components are typically added to a box container through
the child components constructor. The argument expand
,
fill
, and anchor
determine how the child is
positioned within the container.
a GGroup instance.
a GGroup instance with vertical packing.
gframe
and gexpandgroup
if(interactive()) { w <- gwindow("Box containers") g <- gvbox(cont=w) # ggroup(horizonta=FALSE, ...) nb <- gnotebook(cont=g); gbutton("one", label="one", cont=nb) gframe("Frame", cont=g) pg <- gpanedgroup(cont=g); gbutton("one", cont=pg); gbutton("two", cont=pg) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.