summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-03-13 01:28:03 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-03-13 01:28:03 (GMT)
commit606071581d513fe5326526b43a2ff4ef0cd4285d (patch)
treec9b49596c6406851c9436b71c6fa7900d2f4e5c3
parentd43ffae4d8ab27c36b9915c323f421ac57b1110a (diff)
downloadtk-606071581d513fe5326526b43a2ff4ef0cd4285d.zip
tk-606071581d513fe5326526b43a2ff4ef0cd4285d.tar.gz
tk-606071581d513fe5326526b43a2ff4ef0cd4285d.tar.bz2
BRANCH dgp-privates-into-namespace:
* doc/menu.n: * unix/mkLinks: Added documentation for [tk_menuSetFocus].
-rw-r--r--ChangeLog6
-rw-r--r--doc/menu.n12
-rw-r--r--unix/mkLinks4
3 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c0726e..4fe3488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2001-03-12 Don Porter <dgp@users.sourceforge.net>
BRANCH dgp-privates-into-namespace:
+ * doc/menu.n:
+ * unix/mkLinks: Added documentation for [tk_menuSetFocus].
+
+2001-03-12 Don Porter <dgp@users.sourceforge.net>
+
+ BRANCH dgp-privates-into-namespace:
* doc/text.n:
* doc/tkvars.n:
* unix/mkLinks: Added documentation for commands and variables
diff --git a/doc/menu.n b/doc/menu.n
index b3be142..0aac548 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.4.4.1 2001/03/13 01:28:03 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.
diff --git a/unix/mkLinks b/unix/mkLinks
index 1464605..9e9079d 100644
--- a/unix/mkLinks
+++ b/unix/mkLinks
@@ -706,6 +706,10 @@ if test -r getOpenFile.n; then
ln getOpenFile.n tk_getOpenFile.n
ln getOpenFile.n tk_getSaveFile.n
fi
+if test -r menu.n; then
+ rm -f tk_menuSetFocus.n
+ ln menu.n tk_menuSetFocus.n
+fi
if test -r menubar.n; then
rm -f tk_menuBar.n
rm -f tk_bindForTraversal.n