John Rouillard (rouilj@dstar.iddis.com) wrote:
John R.> There is no way to remove a torn off menu (created by
John R.> selecting the ------- item). You should add a menu item to the
John R.> bottom of the menu to allow the torn off menu to be closed.
I (schoenw@ibr.cs.tu-bs.de) answered:
Juergen> Tell John Ousterhout to fix this. :-)
wieckows@cs.umn.edu (Zbigniew Wieckowski) said:
Zbigniew> With fvwm as a window manager I am able to just close
Zbigniew> the menu, but I understand there might be problems
Zbigniew> with twm.
Well, you can even do this with *twm, but the default setup does not. And
I think it is not a good idea to rely on the window manager to be able to
close a torn-off menu, especially since Tk3.6 had a much simpler and IMHO
better mechanism for tear-off menus. I heard rumors that Motif defines
some key bindings <ESC>? to close torn-off menus, but I have neither a
Motif book that describes this nor do I have any Motif applications. :-)
I think a mechanism to close a torn-off menu should be in Tk as I do
not want to mess up with Tk internal scripts. BTW, there are even more
serious problems. It is not possible for a Tk application to get hold
of the torn-off menus (other than doing hacks on internal Tk
variables). Thats why Tkined can not remove torn-off menus when the
original menu is removed. This leads to torn-off menus that will
create error messages as soon as you try to use them. :-(
Juergen