Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Alejandro Lopez-Valencia <dradul@etb.net.co>
Subject: Re: tcl /tk on cygwin + mouse wheel event
Date: Fri, 06 Feb 2004 20:48:18 -0500
Lines: 45
Message-ID: <feg8209lv6244fe76jkffgcc2h3fjhm4ie@4ax.com>
References: <4024228E.4090007@nycap.rr.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: ixde16782-227.pool.007mundo.com
X-Newsreader: Forte Agent 1.93/32.576 English (American)

On Fri, 06 Feb 2004 18:26:06 -0500, Mathieu Malaterre wrote in
<4024228E.4090007@nycap.rr.com>:

>Hello,
>	I am having some issues with mouse wheel on a cygwin system. Could any 
>one comment on this ?
>
>None of these scripts work:

They work fine in my system. See below.

>
>Comments/suggestions really welcome.
>Thanks a bunch,
>Mathieu
>Ps: by the way if you think this is more of a tcl/tk problem just let me 
>know.

Rather a Tcl/Tk issue. You may not be aware of the fact that Cygwin's
Tcl/Tk is in reality a set of true *native* win32 binaries. No POSIX
emulation layer at all. That is, tclsh and wish need to find their
libraries with Win32 style paths.

Assuming you are using the latest Tcl/Tk as of today and
bash/zsh/pdksh as your default shell, add this file to your
/etc/profile.d/ :

cat > /etc/profile.d/tcltk.sh
export TCL_LIBRARY=$(/usr/bin/cygpath -w /usr/share/tcl8.4)
export TK_LIBRARY=$(/usr/bin/cygpath -w /usr/share/tk8.4)
^D

Close your shell console and start a new one. Your test programs will
work as expected. If you examine your shell environment, you'll find
the folowing:

TCL_LIBRARY=C:\cygwin\usr\share\tcl8.4
TK_LIBRARY=C:\cygwin\usr\share\tk8.4

This same procedure solves the problem people has had with WinCVS.

Cheers

Alejo



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

