caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Florent Monnier <monnier.florent@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Open Graphics on Windows
Date: Fri, 26 Mar 2010 20:55:34 +0100	[thread overview]
Message-ID: <201003262055.34847.monnier.florent@gmail.com> (raw)
In-Reply-To: <005001cacce5$4cf32260$e6d96720$@ufrn.br>

Le vendredi 26 mars 2010 14:07:34, Marcel @ DIMAp a écrit :
> 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?

Hello Marcel,

maybe this is a typo in your post, or maybe not, but did you notice that in 
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 
should know that the module Graphics is just for minimal purposes, for example 
for short example when you just need a quick/minimal plotting solution.

For more advanced usage you should use the SDL bindings:
http://ocamlsdl.sourceforge.net/

-- 
Cheers
Florent


  reply	other threads:[~2010-03-26 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 13:07 Marcel @ DIMAp
2010-03-26 19:55 ` Florent Monnier [this message]
2010-03-26 21:30 ` [Caml-list] " ygrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201003262055.34847.monnier.florent@gmail.com \
    --to=monnier.florent@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).