From: Daniel A. S. <da...@ca...> - 2011-03-24 20:44:27
|
move the [. configure -menu .menu] to after you've added .apple, c.f. menu.n: Such a .apple menu must be present in a menu when that menu is first configured as a toplevel's menubar, otherwise a default application menu (hidden from Tk) will be inserted into the menubar at that time and subsequent addition of a .apple menu will no longer result in it becoming the Application menu. On Mar 24, 2011, at 12:15 PM, David Zolli wrote: > Le 24 mars 2011 à 19:45, Gerald W. Lester a écrit : > >> David, >> >> Can you post the exact code you used to create the image? > > Sure: > > KrocBook:~ dzolli$ /usr/bin/tclsh8.5 > % package require Tk > 8.5.7 > % menu .menu > % . configure -menu .menu > % menu .menu.apple -tearoff 0 > % .menu add cascade -label "Apple" -menu .menu.apple > % .menu.apple add command -label "About ArcCode" > > etc.. > > -- > David Zolli > kr...@kr... > http://www.kroc.tk > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |