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 EAA13650; Fri, 22 Feb 2002 04:11:50 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 EAA13774 for ; Fri, 22 Feb 2002 04:11:48 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1M3BkL21269 for ; Fri, 22 Feb 2002 04:11:47 +0100 (MET) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3/3.7W) with ESMTP id MAA12926; Fri, 22 Feb 2002 12:11:40 +0900 (JST) To: nicolas.francois@free.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] LablGtk In-Reply-To: <20020222034141.3f712b75.nicolas.francois@free.fr> References: <20020221231045.1b6a6988.nicolas.francois@free.fr> <20020222083437T.garrigue@kurims.kyoto-u.ac.jp> <20020222034141.3f712b75.nicolas.francois@free.fr> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020222121139J.garrigue@kurims.kyoto-u.ac.jp> Date: Fri, 22 Feb 2002 12:11:39 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Nicolas FRANCOIS (AKA El Bofo) > > There are plenty of small examples in the (strangely named) examples > > directory of the distribution. For instance, you can see menus in > > editor.ml, mouse clicks in fixed_editor.ml, and drawing in drawing.ml. > > Yes. I know this. What I am looking for is REAL documentation. For > example, I was not able to find out how to send a signal (just to let my > drawing area know that it has to redraw itself, for example). OK, I thought you were talking about receiving signals. The more precise the question, the better the answer. Actually, there is very little support for explicitly sending signals. You have to go directly for GtkSignal.emit_unit and its friends. The signals themselves are in the Gtk*.*.Signals submodules. However, in your case here, you should rather call #misc#draw w#misc#draw (Some (Gdk.Rectangle.create 10 10 20 20)) or w#misc#draw None As for documentation, the only formal documentation is the README file, which tries to tell you where is what, but not really how to use it. One problem is that I have no idea what a real documentation should include, without ducplicating GTK's own documentation, which is huge. Probably more details about signals ? Some people where working on a tutorial. Is there some progress? > I noticed some sarcasm in your "(strangely named)". Beware, Klingons don't > share Human's sense of humour. Grrr. I was just pointing that, in the absence of documentation, examples can help a lot. But they could be better organized, and it appears that what you were looking for was not there. > > We have also some small applications, but they were not released until > > now out of laziness to package them. > > NOthing about signals in the apps dir, I already checked this. The above sentence means that it is _not_ there. I've actually written such a paint application in the past, and was thinking of including it if it can help anybody. The trouble is that it is entangled with other code, as part of a bigger project. > Really, you can't imagine the number of lines of code I read before > asking. And I intensively used OCamlBrowser on LablGtk installation, but > this is simply too much for me. I know GUI programming in Qt (and some > others), I hate Gtk for overfeeding casting, so I thought LablGtk would be > the solution. But I failed. Bouhou ! I know, GTK is far from ideal. But it's still the easiest thing to interface with, after Tcl/Tk. Qt is so tightly bound to C++. Cheers, Jacques Garrigue ------------------- 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