diff options
author | patthoyts@users.sourceforge.net <patthoyts> | 2010-01-09 00:54:06 (GMT) |
---|---|---|
committer | patthoyts@users.sourceforge.net <patthoyts> | 2010-01-09 00:54:06 (GMT) |
commit | b200e7ec6d1557961e5e12dae8e448f9c952ceb3 (patch) | |
tree | 9d7ca731a7a70029796af147b571f3ebb944e22d /doc/menu.n | |
parent | 292968f3c75653b1e754ecbd818cac3b24b1b29d (diff) | |
download | tk-b200e7ec6d1557961e5e12dae8e448f9c952ceb3.zip tk-b200e7ec6d1557961e5e12dae8e448f9c952ceb3.tar.gz tk-b200e7ec6d1557961e5e12dae8e448f9c952ceb3.tar.bz2 |
TIP 360: Remove special handling of the .help menu on X11.
Diffstat (limited to 'doc/menu.n')
-rw-r--r-- | doc/menu.n | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: menu.n,v 1.23.2.2 2009/01/11 11:27:10 patthoyts Exp $ +'\" RCS: @(#) $Id: menu.n,v 1.23.2.3 2010/01/09 00:54:06 patthoyts Exp $ '\" .so man.macros .TH menu n 4.1 Tk "Tk Built-In Commands" @@ -230,15 +230,16 @@ menubars, they may not be drawn with indicators on some platforms, due to system restrictions. .SS "SPECIAL MENUS IN MENUBARS" .PP -Certain menus in a menubar will be treated specially. On the Macintosh, -access to the special Application and Help menus is provided. On Windows, -access to the Windows System menu in each window is provided. On X Windows, -a special right-justified help menu is provided. In all cases, these -menus must be created with the command name of the menubar menu concatenated -with the special name. So for a menubar named .menubar, on the Macintosh, -the special menus would be .menubar.apple and .menubar.help; on Windows, -the special menu would be .menubar.system; on X Windows, the help -menu would be .menubar.help. +Certain menus in a menubar will be treated specially. On the +Macintosh, access to the special Application and Help menus is +provided. On Windows, access to the Windows System menu in each window +is provided. On X Windows, a special right-justified help menu may be +provided if Motif menu compatibility is enabled. In all cases, these +menus must be created with the command name of the menubar menu +concatenated with the special name. So for a menubar named .menubar, +on the Macintosh, the special menus would be .menubar.apple and +.menubar.help; on Windows, the special menu would be .menubar.system; +on X Windows, the help menu would be .menubar.help. .PP When Tk sees a .menubar.apple menu on the Macintosh, that menu's contents make up the first items of the Application menu whenever the window @@ -258,8 +259,11 @@ Alt+Spacebar. Due to limitations in the Windows API, any font changes, colors, images, bitmaps, or tearoff images will not appear in the system menu. .PP -When Tk see a Help menu on X Windows, the menu is moved to be last in -the menubar and is right justified. +When Tk sees a Help menu on X Windows and Motif menu compatibility is +enabled the menu is moved to be last in the menubar and is right +justified. Motif menu compatibility is enabled by setting the Tk option +\fB*Menu.useMotifHelp\fR to true or by calling +\fBtk::classic::restore menu\fR. .SH "CLONES" .PP When a menu is set as a menubar for a toplevel window, or when a menu @@ -269,7 +273,7 @@ configuration of the original are reflected in the clone. Additionally, any cascades that are pointed to are also cloned so that menu traversal will work right. Clones are destroyed when either the tearoff or menubar goes away, or when the original menu is -destroyed. +destroyed. .SH "WIDGET COMMAND" .PP The \fBmenu\fR command creates a new Tcl command whose |