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 28388BC75 for ; Tue, 22 Feb 2005 15:03:53 +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 j1ME3qcT023798 for ; Tue, 22 Feb 2005 15:03:52 +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 PAA13556 for ; Tue, 22 Feb 2005 15:03:52 +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 j1ME3nQ4025941 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 22 Feb 2005 15:03:52 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1D3adS-0004XM-00; Tue, 22 Feb 2005 14:03:34 +0000 Date: Tue, 22 Feb 2005 14:03:34 +0000 To: Vincenzo Ciancia Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Cross-platform "Hello, World" graphical application in OCaml Message-ID: <20050222140333.GA4603@furbychan.cocan.org> References: <20050222120308.GA2975@furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at concorde with ID 421B3BC8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 421B3BC5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 wrote:01 wrote:01 gtk:01 sourceforge:01 gtk:01 gimp:01 ocaml:01 notepad:01 2003,:98 installer:01 unix:01 widgets:01 widgets: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 02:36:23PM +0100, Vincenzo Ciancia wrote: > Richard Jones wrote: > > > On?Windows,?it?comes?with?an?installer,?an?uninstaller,?a > > desktop icon and menu entries.??It?has?the?native?Windows?look?and > > feel on Windows. > > > Do you mean that gtk has the native look and feel on windows, including > e.g. font selection or file open dialog? Good question. Answer is unfortunately no. The native look and feel is provided by the Gtk-Wimp theme (http://gtk-wimp.sourceforge.net/) which was recently intergrated into Gtk itself. However the theming only applies to widgets, and not to such things as the file->open dialog. Note that even Microsoft isn't consistent in this area. Office XP, for example, uses its own widgets and dialogs. Printing is another area where things are complicated. Under Unix it's relatively straightforward: generate a PS or PPM file and pipe it into 'lpr'. On Windows things are much more complex. For the app I wrote in 2003, I managed a primitive form of graphic-only printing by hacking out a standalone printing program from the guts of the GIMP Windows printer driver (written in C, not OCaml). I can let anyone have this if they're interested. 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