Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Fabien Fleutot <fabien.fleutot@i...>
Subject: Re: LablTk
   > - I want to prevent a window from being destroyed by the WM : it's a
   > pretty long to build window, and I'd like to hide it instead of actually
   > destroy it when the user clicks on the delete button of the window
   > manager. It's easy to do in some langages such as Java, but I can't find
   > the way to do it with Labltk.

   I do not see anything to do that in Tcl/Tk. You can iconify a window,
   using Wm.iconify, but not hide it.

One can do it with ``Wm.withdraw''. This function exists in Labltk; the problem
is to say it to use my own function rather than the standard delete function
when the window destruction is requested by the Wm.

   If you really need this kind of power, you may consider switching to
   GTK. soon as it will be included in the standard OCaml distribution: I don't
want people to have to download and install dozens of libs before being able to
compile my soft, esp. on platforms other than linux.