From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA13589; Thu, 16 Sep 2004 22:25:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 WAA13035 for ; Thu, 16 Sep 2004 22:25:12 +0200 (MET DST) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i8GKPBIK016265 for ; Thu, 16 Sep 2004 22:25:12 +0200 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1C82oZ-0006Uk-00 for ; Thu, 16 Sep 2004 21:25:11 +0100 Date: Thu, 16 Sep 2004 21:25:11 +0100 Cc: Caml Mailing List Subject: Re: [Caml-list] WxWidgets? Message-ID: <20040916202511.GA24789@annexia.org> References: <4149F2D0.7040408@ntlworld.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <4149F2D0.7040408@ntlworld.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce with ID 4149F6A7.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 gui:01 toolkit:01 swig:01 swig:01 wxpython:01 observations:01 wxwindows:01 wxwindows:01 dialogs:01 dialogs:01 python:01 python:01 obstacle:01 X-Attachments: type="application/pgp-signature" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 16, 2004 at 09:08:48PM +0100, chris.danx wrote: > Hi, >=20 > Was looking on the web for an alternative to using GTK+ on Windows (no=20 > flames please) and found WxWidgets. It looks like a quite nice GUI=20 > toolkit. There seemed to be some interest in developing a OCaml binding= =20 > via Swig according to the net, but I can't find any such binding. >=20 > Has anyone made such a binding? If not I was thinking about using swig= =20 > and the wxpython interfaces as the starting point for a wxwidgets=20 > binding for ocaml. Has anyone tried to do this in the past? Any=20 > thoughts on the issue? I've looked into this in the past, but we ended up using Gtk + Gtk-Wimp on Windows, which worked quite well. Here are my observations on going the WxWindows route though: (1) WxWindows is pretty good. (Ah, looking at their website, I see they've renamed it to WxWidgets!). WxWIDGETS is pretty good. It's a very complete way to develop cross-platform applications. In particular, it has platform-specific file and print dialogs, which you won't get if you use Gtk. In fact if you use Gtk you won't get print dialogs at all - I had to write my own print dialog for Windows which was no fun at all. (2) There seem to be three decent approaches to using WxWidgets under OCaml: Python, Perl or native. Native is going to be the best, but is going to take a heck of a lot of effort. (3) Python or Perl: it's easiest just to use PyCaml or Perl4Caml to interface with the Wx* libraries under those languages. I don't see why you'd want to go through SWIG for this. (4) Native: definitely the best performance and the cleanest approach, however it's lots of work. (Now of course if you wanted to *hire* Merjis to do the work, contact me off-list ... :-) Rich. --=20 Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFBSfan4le1M6q9pzoRAnWLAKCzamrSO4U/lA0dCcMMxQGsfOWvYgCgqRJs RNzwsD4g6uPUxjeTiAULDzM= =6Mnp -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners