Version française
Home     About     Download     Resources     Contact us    
Browse thread
Cross-platform "Hello, World" graphical application in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Cross-platform "Hello, World" graphical application in OCaml
On Tue, Feb 22, 2005 at 09:05:57AM -0800, Blair Zajac wrote:
> What would it take to have a native Mac OS X interface that doesn't use X11?

The code uses lablgtk2 for the interface.  If you look in the source
you'll see a ~10 line program called "hello.ml" which uses the
lablgtk2 API.  On Windows, widgets are rendered using Gtk with a
Windows theme applied, so they're not native widgets, although they
look like it.

To get true native widgets across all three major platforms you'd have
to use a different API completely.  WxWidgets is the obvious choice
(http://www.wxwindows.org/).  You'd probably want to start with
SooHyoung Oh's wxcaml
(http://pllab.kaist.ac.kr/~shoh/ocaml/wxcaml/doc/) which was built
using CamlIDL from the WxWidgets headers.

WxWindows isn't really suitable for what I want to do because it
doesn't support a rich canvas widget, nor a good rich text editor.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com