To: lablgtk at math.nagoya-u.ac.jp Subject: Re: How to display and remove a window? References: <87r7enk0me.fsf at linux-france.org> From: David MENTRE Organization: none Date: Fri, 01 Jul 2005 23:24:51 +0200 In-Reply-To: <87r7enk0me.fsf at linux-france.org> (David MENTRE's message of "Mon, 27 Jun 2005 22:26:01 +0200") Message-ID: <878y0q43to.fsf at linux-france.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, David MENTRE writes: > In my application, I would like to display a user window while some > action taking long time is done in the background. > > What is the simplest way to display a window with a message in it > (without close box, without any button) and then remove it (without user > action)? Well, as usual, it should not be that difficult but I'm lost in lablgtk2. I've tried: $ ledit lablgtk2 Objective Caml version 3.08.3 # let window = GWindow.window () ;; val window : GWindow.window = # window#show ();; - : unit = () But I'm unable to find the way to remove the window: # window#destroy ();; - : unit = () does not remove the window from screen. :( Yours, d. -- pub 1024D/A3AD7A2A 2004-10-03 David MENTRE 5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A