gstatusbar {gWidgets}R Documentation

Constructor of status bar widget

Description

A status bar widget is used to send message to the user. A familiar instance is the bottom area of a web browser.

Usage

gstatusbar(text = "", container = NULL, ..., toolkit = guiToolkit())

Arguments

text Initial text of status bar
container Optional container to attach widget to. Should be gwindow object
... Passed to add method of container
toolkit Which GUI toolkit to use

Details

The statusbar keeps a message stack. The svalue method pops the last message from the stack. The svalue<- method pushes a new message onto the stack.

Statusbars should be added to the top-level gwindow instance.

Examples

## Not run: 
  w <- gwindow("status bar example")
  tbl <- list(quit=list(icon="quit",
    handler = function(...) dispose(w)))
  tb <- gtoolbar(tbl, cont=w)
  sb <- gstatusbar("", cont=w)
  txt <- gtext("type here", cont=w)
  addHandlerChanged(txt, handler=function(h,...)
    svalue(sb) <- paste("You typed",svalue(txt),"in the  box",collapse=" "))

## End(Not run)

[Package gWidgets version 0.0-35 Index]