diff options
author | dgp <dgp@users.sourceforge.net> | 2001-03-13 01:28:03 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2001-03-13 01:28:03 (GMT) |
commit | 606071581d513fe5326526b43a2ff4ef0cd4285d (patch) | |
tree | c9b49596c6406851c9436b71c6fa7900d2f4e5c3 | |
parent | d43ffae4d8ab27c36b9915c323f421ac57b1110a (diff) | |
download | tk-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/menu.n | 12 | ||||
-rw-r--r-- | unix/mkLinks | 4 |
3 files changed, 20 insertions, 2 deletions
@@ -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 @@ -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 |