From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA29049 for caml-redistribution@pauillac.inria.fr; Thu, 24 Feb 2000 14:49:45 +0100 (MET) Resent-Message-Id: <200002241349.OAA29049@pauillac.inria.fr> Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA28388 for ; Wed, 23 Feb 2000 20:00:40 +0100 (MET) Received: from beach.frankfurt.netsurf.de (beach.frankfurt.netsurf.de [194.64.181.2]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id UAA26140 for ; Wed, 23 Feb 2000 20:00:39 +0100 (MET) Received: from ice.darmstadt.netsurf.de (board-109.darmstadt.netsurf.de [194.163.86.237]) by beach.frankfurt.netsurf.de (8.8.5/8.8.5) with ESMTP id UAA09088; Wed, 23 Feb 2000 20:00:36 +0100 (MET) Received: from localhost (localhost [[UNIX: localhost]]) by ice.darmstadt.netsurf.de (8.9.3/8.9.3) id VAA15220; Tue, 22 Feb 2000 21:30:34 +0100 From: Gerd Stolpmann Reply-To: Gerd.Stolpmann@darmstadt.netsurf.de Organization: privat To: skaller , caml-list@inria.fr Subject: Re: Preferred GUI Toolkit for O'Caml 3? Date: Tue, 22 Feb 2000 21:13:10 +0100 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <14509.20226.13985.265187@heplix4.ikp.physik.tu-darmstadt.de> <20000222104602Q.garrigue@kurims.kyoto-u.ac.jp> <38B2918F.84D822A0@maxtal.com.au> In-Reply-To: <38B2918F.84D822A0@maxtal.com.au> MIME-Version: 1.0 Message-Id: <0002222130340C.30469@ice> Content-Transfer-Encoding: 8bit Resent-From: weis@pauillac.inria.fr Resent-Date: Thu, 24 Feb 2000 14:49:45 +0100 Resent-To: caml-redistribution@pauillac.inria.fr On Tue, 22 Feb 2000, skaller wrote: >Tk is reasonably stable .. but dead. It is also sssllllloooowwwww under >Windows. It is not only slow under Windows. For example, I had an application with a "canvas" that displayed many lines of text on the canvas (with some graphical ornaments), and that changed the event handlers of the objects to display in the canvas. For only some hundred lines of text, Tk took minutes to set the canvas up, and the process cosumed about 50 MB of memory. The reason was the algorithm by which Tk computes the tables that allow Tk to map coordinates to the sub objects of the canvas. The problem with Tk is that it has very powerful widgets. Often too powerful in the wrong direction. But you must use the powerful widgets, because Tk lacks the possibility to create your own customized widgets by combining several very simple widgets. I solved the problem with my canvas widget by redefining the event handler for the whole widget, and doing the mapping from coordinates to text lines by myself. This is possible, but you still have to use the super-duper-canvas widget of Tk. Tk is fine only for simple GUIs. Gerd -- ---------------------------------------------------------------------------- Gerd Stolpmann Telefon: +49 6151 997705 (privat) Viktoriastr. 100 64293 Darmstadt EMail: Gerd.Stolpmann@darmstadt.netsurf.de (privat) Germany ----------------------------------------------------------------------------