home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!spool.mu.edu!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!ghostwind!shmdgljd
- From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
- Subject: bind problem
- Sender: news@rchland.ibm.com
- Message-ID: <1993Jan07.150404.10636@rchland.ibm.com>
- Date: Thu, 07 Jan 1993 15:04:04 GMT
- Reply-To: jay@vnet.ibm.com
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- Nntp-Posting-Host: ghostwind.rchland.ibm.com
- Organization: IBM Rochester, MN
- Lines: 24
-
- How come I can do
- 1) bind . <FocusIn> {puts stdout "focus in"}
- but not
- 2) bind . <FocusIn> +{puts stdout "focus in"}
- or
- 3) bind . <FocusIn> +{puts stdout focus_in}
-
- (2) results in the error message
- extra characters after close-quote
- while (3) results in the message
- wrong # args: should be "bind window ?pattern? ?command?"
-
- Both (2) and (3) seem to be problematic due to Tcl's parsing of the
- command, probably because they begin with `+'. Is this intentional? If
- not, perhaps the bind command could take a -append flag to allow forms
- such as (2) and (3) while of course maintaining the current syntax.
-
- I realize this is easy enough to work around, but it is occasionally
- annoying (more so of late).
-
- This is with tk2.3, AIX 3.2.2, x11r4.
- --
- : jay jay@vnet.ibm.com My opinions and ideas, not my employer's.
- : shmdgljd@rchland.vnet.ibm.com (c) Copyright 1992. All rights reserved.
-