Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] LablGtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas FRANCOIS <nicolas.francois@f...>
Subject: Re: [Caml-list] LablGtk : found the solution :-P
On Fri, 22 Feb 2002 15:45:59 +0100
Nicolas FRANCOIS (AKA El Bofo) <nicolas.francois@free.fr> wrote:

> I know this is bad habit, but it's so small that I don't think you'll
> bother. I send you the beginning of my project : just edit the INCLUDE
> variable for Lablgtk location, and type make.
> 
> Everything is working, but the mouse events don't work AT ALL. I can't
> figure out why.
> 
> May you help me ?

I finally found the trick : by default, a drawing area doesn't treat
button events. All I had to do was to add 

    self#fenetre#area#event#add [`BUTTON_PRESS];

somewhere to let it accept button events. I found it not in Gtk doc, but
in a serie of articles about Gtk in a french revue called GNU/Linux Mag.
Great revue, I can assure you.

See you later for other stupid questions... and usefull answers ;-)

\bye

-- 

                   Nicolas FRANCOIS
            http://nicolas.francois.free.fr
 A TRUE Klingon programmer does NOT comment his code
-------------------
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