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