[Gambas-user] Slider problem?

Benoît Minisini gambas at ...1...
Sat Sep 12 15:37:50 CEST 2009


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




More information about the User mailing list