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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CC647BBAF for ; Fri, 26 Mar 2010 14:07:33 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsCAJ9NrEvIE6AVgWdsb2JhbACbQAEBFiQivx6EfgSIRg X-IronPort-AV: E=Sophos;i="4.51,314,1267398000"; d="scan'208,217";a="59753788" Received: from zeus.dimap.ufrn.br (HELO mail.dimap.ufrn.br) ([200.19.160.21]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Mar 2010 14:07:32 +0100 Received: from RECIFE (unknown [10.9.96.63]) by mail.dimap.ufrn.br (Postfix) with ESMTP id A7F8322026F for ; Fri, 26 Mar 2010 10:07:24 -0300 (BRT) From: "Marcel @ DIMAp" To: Subject: Open Graphics on Windows Date: Fri, 26 Mar 2010 10:07:34 -0300 Message-ID: <005001cacce5$4cf32260$e6d96720$@ufrn.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0051_01CACCCC.27A5EA60" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrM5UzdmHf2USZqS9uGAzhC5svWGQ== Content-Language: pt-br X-Spam: no; 0.00; ocamlwinplus:01 ocaml:01 cheers:01 ocamlwinplus:01 ocaml:01 cheers:01 graph:01 graph:01 cma:01 graphics:02 graphics:02 illustrating:03 illustrating:03 problem:05 problem:05 This is a multi-part message in MIME format. ------=_NextPart_000_0051_01CACCCC.27A5EA60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi There, 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 Graphics.open_graph ":0 10x10+50-0";; Just as a way of illustrating the problem: I start OcamlWinPlus v1.9RC4 and type: #load "graphics.cma";; Graphics.open_graph ":0 10x10+50-0";; And the window opens but not a 20x20 window. How should I proceed? Besides, I have CigWin installed. Is it really necessary to run OCAMl Graphics? Cheers, Marcel ------=_NextPart_000_0051_01CACCCC.27A5EA60 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Open Graphics on Windows

Hi = There,

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

Graphics.open_graph ":0 = 10x10+50-0";;

Just as a way = of illustrating the problem: I start OcamlWinPlus v1.9RC4 and = type:

#load "graphics.cma";;

Graphics.open_graph ":0 = 10x10+50-0";;

And the window = opens but not a 20x20 window.

How should I = proceed?

Besides, I have = CigWin installed. Is it really necessary to run OCAMl = Graphics?

Cheers,

Marcel

------=_NextPart_000_0051_01CACCCC.27A5EA60-- 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 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 32079BBAF for ; Fri, 26 Mar 2010 22:31:03 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApABAPrDrEtIDtyekGdsb2JhbACRD4oTCBUBAQEBCQkMBxMDH4ghpxqBaYU4LohLAQEDBQiEcQQ X-IronPort-AV: E=Sophos;i="4.51,316,1267398000"; d="scan'208";a="56007798" Received: from fg-out-1718.google.com ([72.14.220.158]) by mail1-smtp-roc.national.inria.fr with ESMTP; 26 Mar 2010 22:31:02 +0100 Received: by fg-out-1718.google.com with SMTP id e12so2527677fga.3 for ; Fri, 26 Mar 2010 14:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=VIkXCIaOzfjBUSIVSJzuW8gJiExkLavHYK6x/LK7gig=; b=j7VYuOQnt5mHrDOo/suJNwecvR7V2IpnG5zQpwgLFdU0ZS8xALhyfyklzOyOE2jNxf vs3m6rHg4z2nrkr2R/JnHZ+hKg87nDFJHthEpwku8BEFZNCIwAjVN4Wz/gpI/xhpwCHu 7DK2K/mT2f2ygrMf3ByUi7RNc6dLdovhOa6VY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=e5c6FqeyHYwffQnmOdwlywlEoL6STFZM6aw9Df+dNF3SEhvmr5T8rzRur+Gv/lpzmN 5epa74uxrJC2jY7BCFiOBITeBSQ8qyWpf+uQ/mgT6giYN7BMzM2EN/aXqpx+q6ZVVQoJ gjzEbdAkHo45b2rHH+5EyKsWXlOWdrB314lxQ= Received: by 10.87.47.3 with SMTP id z3mr2232782fgj.70.1269639062500; Fri, 26 Mar 2010 14:31:02 -0700 (PDT) Received: from lemon (233-184-132-95.pool.ukrtel.net [95.132.184.233]) by mx.google.com with ESMTPS id 4sm2222651fgg.12.2010.03.26.14.31.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Mar 2010 14:31:01 -0700 (PDT) Date: Fri, 26 Mar 2010 23:30:58 +0200 From: ygrek To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Open Graphics on Windows Message-Id: <20100326233058.bc50bc46.ygrekheretix@gmail.com> In-Reply-To: <005001cacce5$4cf32260$e6d96720$@ufrn.br> References: <005001cacce5$4cf32260$e6d96720$@ufrn.br> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.18.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; otherlibs:01 wrote:01 graph:01 graph:01 caml-list:01 caml:02 defined:02 graphics:02 graphics:02 string:02 fri:05 inria:06 approaches:09 recognized:88 php:87 On Fri, 26 Mar 2010 10:07:34 -0300 "Marcel @ DIMAp" wrote: > 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 > > Graphics.open_graph ":0 10x10+50-0";; The format of this string is implementation defined. On windows the following format is recognized - "%dx%d+%d+%d" See otherlibs/win32graph/open.c And keep in mind http://caml.inria.fr/mantis/view.php?id=4755 -- ygrek http://ygrek.org.ua