Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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) <> 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 ;-)



                   Nicolas FRANCOIS
 A TRUE Klingon programmer does NOT comment his code
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: