wm transient on 8.5

View: New views
4 Messages — Rating Filter:   Alert me  

wm transient on 8.5

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to implement a "utility window" in one of my Tk
applications--this is a Mac toplevel that can implement things like a
floating toolbar, and is different in appearance than regular toplevels.
I could have sworn that transient windows mapped to this style under
Aqua--I have a Tk application called Ayam (www.ayam3d.org) installed
that does just this--but this apparently isnt't he case under 8.5.0.
This command:

toplevel .foo

wm transient .foo .

just creates a second toplevel window that is no different in appearance
than the regular toplevel.

When did this feature get removed from Tk-Aqua? Is there anyway to
implement a "floating toolbar"-style window apart from the
MacWindowStyle command? (which I can do!) Please advise.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: wm transient on 8.5

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Kevin,

> toplevel .foo
>
> wm transient .foo .
>
> just creates a second toplevel window that is no different in appearance
> than the regular toplevel.

I was curious about this "wm transient" command, so I tried it on 8.5.1,
8.4.18, 8.4.16, and 8.4.5, and I never saw any change in .foo when I
executed the transient command.

Kevan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: wm transient on 8.5

by Mats Bengtsson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Look at library/ttk/combobox.tcl
http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/library/ttk/combobox.tcl?revision=1.12&view=markup
Joe English has some notes abot this.
You could try wm overrideredirect $w true
or/and
tk::unsupported::MacWindowStyle style $w \
  help {noActivates hideOnSuspend}

But be sure to have any
wm resizable $w 0 0
*after* any tk::unsupported::MacWindowStyle else things go wrong.

Mats

On 2/27/08, Kevan Hashemi <hashemi@...> wrote:

> Dear Kevin,
>
> > toplevel .foo
> >
> > wm transient .foo .
> >
> > just creates a second toplevel window that is no different in appearance
> > than the regular toplevel.
>
> I was curious about this "wm transient" command, so I tried it on 8.5.1,
> 8.4.18, 8.4.16, and 8.4.5, and I never saw any change in .foo when I
> executed the transient command.
>
> Kevan
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Tcl-mac mailing list
> tcl-mac@...
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: wm transient on 8.5

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mats Bengtsson wrote:

> Look at library/ttk/combobox.tcl
> http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/library/ttk/combobox.tcl?revision=1.12&view=markup
> Joe English has some notes abot this.
> You could try wm overrideredirect $w true
> or/and
> tk::unsupported::MacWindowStyle style $w \
>   help {noActivates hideOnSuspend}
>
> But be sure to have any
> wm resizable $w 0 0
> *after* any tk::unsupported::MacWindowStyle else things go wrong.
>
> Mats
>
> On 2/27/08, Kevan Hashemi <hashemi@...> wrote:
>> Dear Kevin,
>>
>>> toplevel .foo
>>>
>>> wm transient .foo .
>>>
>>> just creates a second toplevel window that is no different in appearance
>>> than the regular toplevel.
>> I was curious about this "wm transient" command, so I tried it on 8.5.1,
>> 8.4.18, 8.4.16, and 8.4.5, and I never saw any change in .foo when I
>> executed the transient command.
>>
>> Kevan
>>

Browsing through the source code for Tk Aqua, it appears there have been
a lot of changes with "wm transient" :

http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/macosx/tkMacOSXWm.c?view=log

What has happened and why isn't clear to me, but obviously now transient
windows look like normal toplevels.

The workaround to get a floating "utility" style window is to use the
MacWindowStyle command, e.g:

        ::tk::unsupported::MacWindowStyle style .fileinfo floating closeBox

So I'm all set.

--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac
LightInTheBox - Buy quality products at wholesale price!