[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in nam 1.0a7



Check out http://www-mash.cs.berkeley.edu/nam/nam-problems.html. 

Problem: Tcl source code dump on various platforms, the end of which
complains about
     unknown event "MouseWheel".

     Solution: This is because in macro LIB in nam's Makefile, -L/usr/lib
-lz is placed before
     -ltcl8.0, etc. Thus if there is an older version of libtcl8.0.a or
libtcl8.0.so in /usr/lib,
     nam is messed up. Edit nam Makefile and put that -lz stuff at the end
of the LIB macro. 

In fact you can use 'search' from the ns web site and you'll get lots of
info on this MouseWheel stuff. 

- Haobo

On Thu, 18 Nov 1999, Robert Graham Merkel wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Haobo Yu writes:
>  > it would be useful if you can send the last 15 lines or so. That'll tell
>  > where the error occurred. 
>  > 
>  > - Haobo
>  > 
>  
> proc tkScrollButton2Down {w x y} {
> global tkPriv
> set element [$w identify $x $y]
> if {($element == "arrow1") || ($element == "arrow2")} {
> tkScrollButtonDown $w $x $y
> return
> }
> tkScrollToPos $w [$w fraction $x $y]
> set tkPriv(relief) [$w cget -activerelief]
> 
> 
> update idletasks
> $w configure -activerelief sunken
> $w activate slider
> tkScrollStartDrag $w $x $y
> }
> : bad event type or keysym "MouseWheel"
>     while executing
> "bind Listbox <MouseWheel> {
> %W yview scroll [expr - (%D / 120) * 4] units
> }"
> 
> Thanks for your response.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.0 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE4MzA6swIdT6exn5QRAvkXAJ9iPSEyupH3dxZsx7SBRmll7r6E+ACgjVOg
> ip3sH3tjHeV/aq66bELpAdU=
> =qqaG
> -----END PGP SIGNATURE-----
>