<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/d8417aedf95bf5c2b3a46eab0eafe2d3"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-01-10T13:36:08"
  subject="Re: [Caml-list] Problems using graphics"
  prev="2003/01/40e4b5fc34107a18e4ba444230193749"
  next="2003/01/93b1291528684957aead21b72f0a9544"
  prev-in-thread="2003/01/0e33f04291c4ee802ea2a08485d2b730"
  prev-thread="2003/01/31835993ecc251120654a9c4bc10a0f6"
  next-thread="2003/01/c308ebaf6ce3d25799d84a98b9f6cd0a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Problems using graphics">
<msg 
  url="2003/01/0e33f04291c4ee802ea2a08485d2b730"
  from="Sebastien Ailleret &lt;sebastien@a...&gt;"
  author="Sebastien Ailleret"
  date="2003-01-08T21:55:47"
  subject="[Caml-list] Problems using graphics">
<msg 
  url="2003/01/d8417aedf95bf5c2b3a46eab0eafe2d3"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-01-10T13:36:08"
  subject="Re: [Caml-list] Problems using graphics">
</msg>
</msg>
</thread>

<contents>
Hi Sébastien,

&gt; I'm writing a small problem using Graphics and encountered the
&gt; following problems :
&gt; 
&gt; - Unix.sleep does not work in conjunction with Graphics. I found the
&gt;   solution in the archive of the Caml List (
&gt;   http://caml.inria.fr/archives/200011/msg00096.html ), but i think
&gt;   this point deserves a note in the documentation or in the FAQ.

Fair enough.  Perhaps a function Unix.really_sleep (that ignores
signals) is in order.

&gt; - The name of a window can be changed only after a window is
&gt;   opened. This is a trouble because some window managers use the name
&gt;   of the window when it opens to decide its position, type of
&gt;   frame... This means it is impossible to differentiate the behavior
&gt;   of two different "Caml Graphics" windows.

Good point.  Should be easy to fix.

&gt; - "fill_rect x y w h" and "draw_rect x y w h" do not draw the same
&gt;   rect. draw_rect is bigger and lower. In my opinion, fill_rect does
&gt;   the right thing. In order to see the problem, try :

Well, Caml calls the X Windows drawing primitives XDrawRectangle and
XFillRectangle with exactly the same arguments.  But that seems to run
into an, hmmm, oddity of X Windows, described in colorful language in
the "Unix Haters" handbook:
  http://www.molgen.mpg.de/~wwwutz/Unix_Haters/x-windows.html
Guess we'll have to work around this one.

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

