English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Open Graphics on Windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-03-26 (19:50)
From: Florent Monnier <monnier.florent@g...>
Subject: Re: [Caml-list] Open Graphics on Windows
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: