Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: Graphics libraries for Objective Caml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xleroy@p...>
Subject: Re: Graphics libraries for Objective Caml?

> What alternatives are available to implement graphical interfaces on
> Ocaml programs?  If I understand the user manual correctly, the builtin
> graphics library allows only one window open at any time.  Moreover,
> the graphics module under Windows seems to be incompatible with the
> -custom option.

Actually, the graphics windows is only available under the interactive
toplevel application. Batch-compiled programs, with or without the
-custom option, cannot use it.

> Camltk would be an obvious choice for Unix, but what
> about those users who for some reason want run the same programs under
> Windows 95?

Now that Tk is available for Windows, it's conceivable that CamlTk
could be ported to Windows. However, we at INRIA have almost no
manpower to develop for Windows, so we'll have to wait until someone
volunteers to do the Windows port of CamlTk.

>  Obviously I could write a wrapper for C functions in the
> Windows library (or can I?)

Definitely yes. Objective Caml for Windows is a 100% Win32 application
(no MSDOS code inside), so it has full access to the Win32 API through
the C interface.

- Xavier Leroy