> > Why? Why should mouse events "be always raised"? >
Because it is useful. A "disabled" control means that it must not be used by the user. That should not mean that it won't receive basic input events. > >>> Regards, > >> > >> Ok understand now. > >> > >> I have to change my code a bit to not run into trouble then when a user > >> clicks the disabled control... > >> > >> Regards, > >> Ron_2nd. > > > > Apparently having the same behaviour in gb.gtk than in gb.qt is > > impossible. You cannot catch events in gb.gtk before they are processed. > > I am not really sure, but it seems to me that it is possible. > Documentation is very poor (disgusting, I could say), but it seems you > can connect to events at several stages, and even do the event cycle > yourself. Complicated matter, anyway. I may have found a way, by reading the GTK+ source code. I will see if it works... Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user