Anyway, my thought was that it might be more logical to leverage the
existing toplevel -use option to enable 'tear-off' toplevels.
i.e. for toolbars (for example), create a dock container:
frame .dock -container 1
now create a toolbar using that dock:
toplevel .toolbar -use [winfo id .dock]
to 'tear-off' a docked toolbar into a transient window, you could do:
.toolbar configure -use ""
wm transient .toolbar .
and then back again:
wm transient .toolbar ""
.toolbar configure -use [winfo id .dock]
(maybe followed by a withdraw/deiconify cycle to activate changes)
This would make creating tear-off toolbars very easy (among other
things), and I'd really like to see this TIP implemented in some form or
another.
Comments?
--
Mark G. Saye
markgsaye @ yahoo.com
Did you try the [Edit] link?
--
| Don Porter Mathematical and Computational Sciences Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
Just out of curiosity - how can one do tearoff/docking toolbars before
this TIP is implemented?
--
WK
BLT's tabnotebook allows you to tear out panes into toplevels. So I
guess you could write some C code. :-)
Bob
--
Bob Techentin techenti...@NOSPAMmayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/
Well, I saw it, but I thought that was either for the original author,
or for TCT action. It looked rather official just for regular comments
:-) If that's the right place to add notes, I'll do that. Should I add
notes to the main "Body:" section, or the "Log:" section? Thanks.
I think Mark's idea sounds good, but previously you would have to
reparent somehow. BLT has some facilities for this, but the other way
was to just recreate the buttons on the fly in a new toplevel and/or
frame (whichever way you were going). This works surprisingly well and
is a very quick operation.
Someone will have to look into the issues of event passing because IIRC
there are some quirks with embedded toplevels in some situations.
--
Jeff Hobbs The Tcl Guy
Senior Developer http://www.ActiveState.com/
Tcl Support and Productivity Solutions
George
"Wojciech Kocjan" <wojc...@n0spam-kocjan.org> wrote in message
news:bh8k3a$86o$1...@atlantis.news.tpi.pl...