Re: Option-click title bar has a bug in Tcl mode

New Message Reply Date view Thread view Subject view Author view

From: Vince Darley (vince@santafe.edu)
Date: 13 Mar 01, 06:31 EST


From: Vince Darley <vince@santafe.edu>
Subject: Re: Option-click title bar has a bug in Tcl mode

Ok, that code is purposefully ignoring the current window.  Perhaps the
best fix is to replace 'proc ::OptionTitlebarSelect' with:

proc ::OptionTitlebarSelect {item} {
    set obviousChoice [file join [file dirname [win::Current]] $item]
    if {[file exists $obviousChoice]} {
	# This is whether it is a file or directory.
	file::showInFinder $obviousChoice
    } else {
	file::tryToOpen $item
    }
}

cheers,

-- Vince

<http://www.santafe.edu/~vince>


On Fri, 9 Mar 2001, Vince Darley wrote:

> I actually have it on.  Could you perform a trace of the option click proc
> showing what is happening?
> 
> -- Vince
> 
> <http://www.santafe.edu/~vince>
> 
> 
> On Fri, 9 Mar 2001, Bernard Desgraupes wrote:
> 
> > Vince Darley wrote:
> > > 
> > > I don't see this in Alphatk, which shares most of the same code.
> > > 
> > 
> > Vince,
> > 
> > in fact I found out that it occurs only when searchPaths is ON. Probably
> > you don't see it because you turned it off.
> > So I suppose it is related to the redefinition of 'file::tryToOpen' in
> > modeSearchPaths.tcl when filename is win::Current
> > 
> > Bernard
> > 
> > _______________________________________________
> > AlphaTcl-developers mailing list
> > AlphaTcl-developers@lists.sourceforge.net
> > http://lists.sourceforge.net/lists/listinfo/alphatcl-developers
> > 
> 
> 
> _______________________________________________
> AlphaTcl-developers mailing list
> AlphaTcl-developers@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/alphatcl-developers
> 


_______________________________________________
AlphaTcl-developers mailing list
AlphaTcl-developers@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/alphatcl-developers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:51 EST