oneVScrList: A function that creates a groups of list boxes sharing a...

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1

Arguments

base

base a tkwin object that will be the container of the list boxes to be created

data

data a matrix with data to be put in the list boxes

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

dropdownList, tooltip

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    ## 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)

widgetTools documentation built on Nov. 8, 2020, 8:29 p.m.