From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 83CA9BC75 for ; Tue, 22 Feb 2005 18:23:47 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1MHNldc019707 for ; Tue, 22 Feb 2005 18:23:47 +0100 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 SAA25366 for ; Tue, 22 Feb 2005 18:23:46 +0100 (MET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1MHNkKn020568 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 22 Feb 2005 18:23:46 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1D3dl7-0001mv-00; Tue, 22 Feb 2005 17:23:41 +0000 Date: Tue, 22 Feb 2005 17:23:41 +0000 To: Blair Zajac Cc: caml-list@inria.fr Subject: Re: [Caml-list] Cross-platform "Hello, World" graphical application in OCaml Message-ID: <20050222172340.GA2557@furbychan.cocan.org> References: <20050222120308.GA2975@furbychan.cocan.org> <421B6675.20109@orcaware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421B6675.20109@orcaware.com> User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at concorde with ID 421B6AA3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 421B6AA2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 zajac:01 wrote:01 lablgtk:01 lablgtk:01 api:01 gtk:01 api:01 wxwindows:01 ocaml:01 camlidl:01 wxwindows:01 widget:01 notepad:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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