oneVScrList {widgetTools} | R Documentation |
A function that creates a groups of list boxes sharing a single vertical scroll bar
Description
This function creates a group of list boxes what share a common vertical scroll bar. Values in all the list boxes scroll up or down when the scroll bar is dragged
Usage
oneVScrList(base, data)
Arguments
base |
|
data |
|
Details
The matrix should have names for its columns. The names of the list boxes to be created will be the same as the corresponding columns of the matrix.
Data in the list boxes can be sorted based on values in any of the list boxes.
Value
This function returns a list containing the tkwin objects of the list boxes created.
Author(s)
Jianhua Zhang
References
tcltk
See Also
Examples
## Not run:
## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the widgetTools package loaded
testData <- matrix(c(1:50, 100:51), ncol = 2)
colnames(testData) <- c("Column 1", "Column 2")
base <- tktoplevel()
tt <- oneVScrList(base, testData)
# Destroy toplevel widget
# tkdestroy(base)
## End(Not run)
[Package widgetTools version 1.74.0 Index]