R/gstatusbar.R

Defines functions gstatusbar gstatusbar

Documented in gstatusbar

##' @include methods.R
NULL

##' constructor to add a status bar to main window
##'
##' @param text inital status text
##' @inheritParams gcontainer
##' @export
##' @examples
##' \dontrun{
##' w <- gwindow("Statusbar", visible=FALSE)
##' sb <- gstatusbar("status text", container=w)
##' g <- gvbox(container=w)
##' gbutton("update", container=g, handler=function(...) svalue(sb) <- "new value")
##' visible(w) <- TRUE
##' }
gstatusbar <- function(
                       text = "", container = NULL, ... ,
                       toolkit=guiToolkit()){
  obj <- .gstatusbar (toolkit,
                      text=text, container=container ,...
                      )
  check_return_class(obj, "GStatusBar")
  return(obj)
}


##' generic for toolkit dispatch
##' 
##' @rdname gstatusbar
##' @export
.gstatusbar <-  function(toolkit,
                         text = "", container = NULL, ... )
  UseMethod( '.gstatusbar' )

Try the gWidgets2 package in your browser

Any scripts or data that you put into this service are public.

gWidgets2 documentation built on May 29, 2017, 9:20 p.m.