Conveniently manipulate Tk windows

Share:

Description

These functions provide an easy way to create and manipulate Tk windows under R. Note that the corresponding winXXX() function also manipulate Tk windows the same way, but are capable of manipulating other windows as well (in the future). One should, thus, preferably use winXXX()!

Usage

1
2
3
tkWinAdd(name = "win1", parent = .TkRoot, title = NULL, pos = NULL,
    bind.delete = TRUE, ...)
tkWinDel(window)

Arguments

name

name for a new Tk window.

parent

parent of this window.

title

title of the window.

pos

where to place the window. A string like '+XX+YY' where XX is the horizontal position in pixels, and YY is the vertical position. Using negative values place the window relative to the right or bottom side of the screen. Specifying NULL (by default) allows for automatic placement of the window.

bind.delete

do we automatically bind tkWinDel() to the window delete event (strongly advised for correct housekeeping)?

...

additional options to pass to the window creator.

window

the name of a 'tkguiWin' object.

Details

Do not use these functions directly. Prefer the corresponding winXXX() functions that will call them if Tk windows are concerned.

Value

tkWinAdd() returns the handle of the newly created window invisibly. tkMenuDel() returns invisibly TRUE if the window is found and deleted, FALSE otherwise.

Author(s)

Philippe Grosjean

See Also

winAdd