Description Usage Arguments Details Value See Also Examples
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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
1 2 3 4 5 6 7 | 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)
}
|
Loading required package: digest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.