The following short block of code creates a menu bar with menu item "graphic" disabled:
TopWindow <- tktoplevel(parent=.TkRoot) TopMenu <- tkmenu(TopWindow) tkconfigure(TopWindow,menu=TopMenu) FileMenu <- tkmenu(TopMenu) GraphicsMenu <- tkmenu(TopMenu) tkadd(TopMenu,"cascade",label="File", menu=FileMenu) tkadd(TopMenu,"cascade",label="Graphics", menu=GraphicsMenu, state="disabled") Other than tkdestroy(TopMenu)and rebuilding the menubar omitting'state="disabled"', is there a way to change the state of the menu item "Graphics" to "normal"? Bill Morphet, Space Shuttle engineer & PhD statistics student [[alternative HTML version deleted]] _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui