Is an alphanumeric character string that may include the underscore character. TAG A tag is name that is normally used to referr to an item in a menu tree.
Menu entries have a typeĪnd the menubar class supports the following 6 entry types: Command, Checkbutton,Įach menu entry has a visible string that is called the entry label. Menu may contain any number of child menus that are rendered as cascading menus.Ĭascading menus are rendered next to the parent menu when they are activated.Ī menu contains an ordered list of items called entries. Visible until a user preforms some action (normally a event). MENU A menu is an ordered list of items that is rendered vertically. The visible rendering of a menubar in a toplevel window is a horizontally group of
Scope control for the state variables of checkbuttons and radiobuttons.Automatic management of state variables for checkbuttons and radiobuttons.A simplified method for creating radiobutton groups.Support for hiding and exposing menus on the menubar.Namespace support for all callback commands so callback commands can be easily.A simplified and uniform interface for all callback commands.Support for user defined tags that depend on the toplevel window context.A tagging system that simplifies access to menu entries in the menu tree.The menubar class provides many unique capabilities that are not found in other tcl/tk Installed in one or more toplevel windows. Menubar is then compiled by an instance of the menubar class after which it can be Language that results in a human readable description of a menubar. Menubar, configuring menu items and installing the menubar in toplevel windows.Ī menubar can be thought of as a tree of cascading menus. These options are inherited from the Tk menu command, their effect is platform specific.Īn instance of the menubar class provides methods for compiling a description of the The following options can be passed to the menubar new command. PathName argument because menubars are handled by the window manager (i.e. Unlike other Tk widget commands, the menubar command doesn't have a Widget framework and therefore can be used with or without a framework (e.g. The menubar class encapsulates theĭefinition, installation and dynamic behavior of a menubar. option value? mBarInst rialize tag mBarInst serialize tag stream mBarInst notebook.addTabStore pathname mBarInst leteTabStore pathname mBarInst tTabValue pathname tag mBarInst notebook.restoreTabValues pathnameĬreate and return a new instance of the menubar class. option value? mBarInst tag.cget pathName tag ?option? mBarInst group.add tag label ?cmd?accel?sequence?state? mBarInst lete tag label mBarInst group.move direction tag label mBarInst nfigure tag label ?option value.
? mBarInst menu.namespace tag namespace mBarInst menu.hide tag mBarInst menu.show tag mBarInst tag.add tag value mBarInst tag.configure pathName tag ?option value.
#Add html widget to activetcl install
MBarInst define body mBarInst install pathName body mBarInst nfigure option tag-settings ?option tag-settings. Package require menubar ?0.5? menubar new ?options? Menubar - Creates an instance of the menubar Class.