createMenuBar {RGtkViewers}R Documentation

Create and populate Gtk Menu Bar

Description

This is a convenience function for creating a menu bar and populating it with menus. The menus can be recursive.

Usage

createMenuBar(..., mbar = gtkMenuBar())

Arguments

... a collection of named element each of which gives the label for the menu and a list of the elements in that menu. For example, createMenubar(File=list(Open=function(x,...) { }))
mbar an optional existing GtkMenuBar object to which to append the objects. If this is not specified, a new one is created.

Value

The GtkMenuBar object.

Note

This will probably be moved to a new package named RGtkUtils in the future.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.gtk.org

See Also

createSimpleMenu

Examples



[Package RGtkViewers version 0.7 Index]