English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Does LablTk have a future?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-09-02 (08:59)
From: Nathaniel Gray <n8gray@g...>
Subject: Re: Feeding the OCaml GUI troll (was: Re: [Caml-list] Does LablTk have a future?)
On 8/31/05, David MENTRE <david.mentre@gmail.com> wrote:
>  1. improve Labgtk2 documentation and use Gtk2 on all patforms. As our
> try on Win32 have shown, compiling Gtk2 on Windows seems pretty
> complicated and a moving target, albeit not impossible to do. I don't
> know for MacOS X. And Gtk2 behaviour is different on Win32 than native
> Win32 applications;

There is no native Gtk2 port for OS X.  Gtk requires the user to run
an X server under OS X and doesn't provide native look or feel.  For
OS X there's Qt, XUL, wxwidgets, tk, and probably some others I'm not

>  3. (Jon option) write a pure GUI from scratch, in pure OCaml. A
> project similar to Qt or WxWidgets for C++. It seems doable to have a
> basic GUI but handling all i18n and desktop interoperability issues
> seems pretty complicated;

I'm starting to think this is the most promising direction.  Build it
on top of a cross-platform graphics toolkit like Cairo or SDL, then
handle all the logic in ocaml.  It gives developers a single target to
write for at the expense of (probably) never getting native look and

> Personnally, I don't know what decision to take. My current GUI code
> is in Lablgtk2 but, as stated in other emails, use of Gtk2 is too
> difficult for me. And I don't want to go into another reinvent the
> wheel syndrom. (sigh)

Alas, the cross-language cross-platform gui toolkit with native
look-and-feel is a wheel that has yet to be invented.

>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->