diff options
author | dgp@users.sourceforge.net <dgp> | 2001-08-01 16:21:11 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2001-08-01 16:21:11 (GMT) |
commit | c7434cee89e3147e22707264d6a59c0f68153e58 (patch) | |
tree | 38846cbe94cc8aac068898282ced4624f130770e /doc/menu.n | |
parent | 70f7337d907732723cfac8033e7ff856d33aa5e8 (diff) | |
download | tk-c7434cee89e3147e22707264d6a59c0f68153e58.zip tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.gz tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.bz2 |
Merged changes from feature branch dgp-privates-into-namespace,
implementing TIP 44. All Tk commands and variables matching
tk[A-Z]* are now in the ::tk namespace.
Diffstat (limited to 'doc/menu.n')
-rw-r--r-- | doc/menu.n | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -5,16 +5,18 @@ '\" 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.4 2000/08/25 06:58:32 ericm Exp $ +'\" RCS: @(#) $Id: menu.n,v 1.5 2001/08/01 16:21:11 dgp Exp $ '\" .so man.macros .TH menu n 4.1 Tk "Tk Built-In Commands" .BS '\" Note: do not modify the .SH NAME line immediately below! .SH NAME -menu \- Create and manipulate menu widgets +menu, tk_menuSetFocus \- Create and manipulate menu widgets .SH SYNOPSIS +.nf \fBmenu\fR \fIpathName \fR?\fIoptions\fR? +\fBtk_menuSetFocus\fR \fIpathName\fR .SO \-activebackground \-borderwidth \-foreground \-activeborderwidth \-cursor \-relief @@ -752,6 +754,12 @@ next menubutton to the right is posted. Disabled menu entries are non-responsive: they don't activate and they ignore mouse button presses and releases. .PP +.VS 8.4 +Several of the bindings make use of the command \fBtk_menuSetFocus\fR. +It saves the current focus and sets the focus to its \fIpathName\fR +argument, which is a menu widget. +.VE +.PP The behavior of menus can be changed by defining new bindings for individual widgets or by redefining the class bindings. |