Am 15.07.15 um 08:17 schrieb
mahesh.chau...@itbhu.ac.in:
I've seen programs working like this. It can be very annoying for the
user, so make sure that you really want this. For maximize/minimize,
this is fairly standard behaviour of dialog boxes. You can typically
achieve this by "wm transient .child .parent".
For moving, I don't know of a standard method. You could bind to the
<Configure> event of the parent and move the child accordingly. However,
on OSX you only get an event once the window is released, not during the
movement. I'm too lazy to check for other OSes right now. Still I think
this might be unexpected, I have used a program (written in Delphi) that
acted like this, and it was very annoying to distribute the windows on
the screen. A more modern approach might be dockable windows (wm manage
/ wm forget). See
http://stackoverflow.com/questions/17784832/how-to-make-a-dockable-window-in-tcl-tk
(first answer)
Christian