From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA08828; Wed, 8 Jan 2003 22:55:47 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA08809 for caml-list@pauillac.inria.fr; Wed, 8 Jan 2003 22:55:46 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA06937 for ; Wed, 8 Jan 2003 21:28:07 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from salgos.ailleret.com ([193.253.33.27]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h08KS6523523 for ; Wed, 8 Jan 2003 21:28:07 +0100 (MET) Received: by salgos.ailleret.com (Postfix, from userid 500) id DBF963F64D; Wed, 8 Jan 2003 21:27:59 +0100 (CET) From: Sebastien Ailleret MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15900.35279.570966.373949@salgos.ailleret.com> Date: Wed, 8 Jan 2003 21:27:59 +0100 To: caml-list@inria.fr Subject: [Caml-list] Problems using graphics X-Mailer: VM 7.01 under Emacs 20.7.1 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I'm writing a small problem using Graphics and encountered the following problems : - Unix.sleep does not work in conjunction with Graphics. I found the solution in the archive of the Caml List ( http://caml.inria.fr/archives/200011/msg00096.html ), but i think this point deserves a note in the documentation or in the FAQ. - The name of a window can be changed only after a window is opened. This is a trouble because some window managers use the name of the window when it opens to decide its position, type of frame... This means it is impossible to differentiate the behavior of two different "Caml Graphics" windows. - "fill_rect x y w h" and "draw_rect x y w h" do not draw the same rect. draw_rect is bigger and lower. In my opinion, fill_rect does the right thing. In order to see the problem, try : set_color black; draw_rect 5 5 10 10; set_color green; fill_rect 5 5 10 10; and optionnally : set_color red; plot 5 5; plot 15 15; Sincerely Sebastien ------------------- 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