caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <Gerd.Stolpmann@darmstadt.netsurf.de>
To: skaller <skaller@maxtal.com.au>, caml-list@inria.fr
Subject: Re: Preferred GUI Toolkit for O'Caml 3?
Date: Tue, 22 Feb 2000 21:13:10 +0100	[thread overview]
Message-ID: <0002222130340C.30469@ice> (raw)
In-Reply-To: <38B2918F.84D822A0@maxtal.com.au>

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                     
----------------------------------------------------------------------------



  reply	other threads:[~2000-02-24 13:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-18 13:54 Thorsten Ohl
2000-02-21 17:22 ` Benjamin C. Pierce
2000-02-22 11:41   ` William Chesters
2000-02-23  7:36     ` Alan Schmitt
2000-02-23  9:24     ` Sven LUTHER
2000-02-24 10:24       ` Fabrice Le Fessant
2000-02-25 16:22         ` skaller
2000-02-22 13:41   ` skaller
2000-02-22 14:22     ` Benjamin C. Pierce
2000-02-22  1:46 ` Jacques Garrigue
2000-02-22 13:39   ` skaller
2000-02-22 20:13     ` Gerd Stolpmann [this message]
2000-02-22  8:17 ` Sven LUTHER
2000-02-22 11:04 ` jean-marc alliot
2000-02-22 17:05 ` Pascal Cuoq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0002222130340C.30469@ice \
    --to=gerd.stolpmann@darmstadt.netsurf.de \
    --cc=caml-list@inria.fr \
    --cc=skaller@maxtal.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).