summaryrefslogtreecommitdiffstats
path: root/doc/menu.n
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2001-08-01 16:21:11 (GMT)
committerdgp <dgp@noemail.net>2001-08-01 16:21:11 (GMT)
commit467c9e4b5370192c9785e29cda3a170e70a710e8 (patch)
tree38846cbe94cc8aac068898282ced4624f130770e /doc/menu.n
parentc68eaf7c36bd99f3ea38a1d823c04e7e537f9a7e (diff)
downloadtk-467c9e4b5370192c9785e29cda3a170e70a710e8.zip
tk-467c9e4b5370192c9785e29cda3a170e70a710e8.tar.gz
tk-467c9e4b5370192c9785e29cda3a170e70a710e8.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. FossilOrigin-Name: 3c0c681d8883f0843b9dcb3f402c2773f6a438a7
Diffstat (limited to 'doc/menu.n')
-rw-r--r--doc/menu.n12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/menu.n b/doc/menu.n
index b3be142..352dbc4 100644
--- a/doc/menu.n
+++ b/doc/menu.n
@@ -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.