From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C2026BBAF for ; Fri, 26 Mar 2010 20:50:08 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8CAMasrEvUGyoBkWdsb2JhbACNXIMzihsVAQEBAQkLCgcTAx+vL4cjLohQhH4EigU X-IronPort-AV: E=Sophos;i="4.51,315,1267398000"; d="scan'208";a="56005010" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail1-smtp-roc.national.inria.fr with ESMTP; 26 Mar 2010 20:50:08 +0100 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 8EE769401C1 for ; Fri, 26 Mar 2010 20:50:02 +0100 (CET) Received: from localhost.localnet (88-123-241-250.rev.libertysurf.net [88.123.241.250]) by smtp1-g21.free.fr (Postfix) with ESMTP id A21C29400D4 for ; Fri, 26 Mar 2010 20:50:00 +0100 (CET) From: Florent Monnier To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Open Graphics on Windows Date: Fri, 26 Mar 2010 20:55:34 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-desktop586-3mnb; KDE/4.3.5; i686; ; ) References: <005001cacce5$4cf32260$e6d96720$@ufrn.br> In-Reply-To: <005001cacce5$4cf32260$e6d96720$@ufrn.br> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201003262055.34847.monnier.florent@gmail.com> X-Spam: no; 0.00; ocamlwinplus:01 ocaml:01 bindings:01 ocamlsdl:01 cheers:01 sourceforge:01 graph:01 graph:01 caml-list:01 cma:01 short:01 graphics:02 graphics:02 vendredi:03 module:03 Le vendredi 26 mars 2010 14:07:34, Marcel @ DIMAp a =E9crit : > Hi There, >=20 > I am running Windows XP and I am trying to open a window with dimension 20 > x 20. I have tried many approaches and all of them open a window but not > with the dimension specified. The command I am using to open this window > is >=20 > Graphics.open_graph ":0 10x10+50-0";; >=20 > Just as a way of illustrating the problem: I start OcamlWinPlus v1.9RC4 a= nd > type: >=20 > #load "graphics.cma";; > Graphics.open_graph ":0 10x10+50-0";; >=20 > And the window opens but not a 20x20 window. >=20 > How should I proceed? >=20 > Besides, I have CigWin installed. Is it really necessary to run OCAMl > Graphics? Hello Marcel, maybe this is a typo in your post, or maybe not, but did you notice that in= =20 the code you provide you request a window of size 10x10 and not 20x20 ? Also you don't tell us the kind of application you're working on, but you=20 should know that the module Graphics is just for minimal purposes, for exam= ple=20 for short example when you just need a quick/minimal plotting solution. =46or more advanced usage you should use the SDL bindings: http://ocamlsdl.sourceforge.net/ =2D-=20 Cheers =46lorent