[Gambas-user] Slider problem?

Ron_1st ronstk at ...239...
Sat Sep 12 16:33:34 CEST 2009


On Saturday 12 September 2009, Benoît Minisini wrote:
> > On Saturday 12 September 2009, Doriano Blengino wrote:
> > > >>> I didn't change the behaviour of gb.qt because of gb.gtk. Mouse
> > > >>> events must be always raised, whatever the value of the Enabled
> > > >>> property. 
> > >
> > > Why? Why should mouse events "be always raised"?
> > 
> > What if the rightmouse button has a menu option to enable/disable
> > the control or you want to popup a message to tell the user it is
> > disabled and will not do anything. :)
> > 
> 
> Actually you must never use Mouse events directly unless you know what you do, 
> because then you cannot handle the keyboard events that are associated with.
> 
> For example, if you open a popup menu inside a mouse event, that is actually a 
> bug. The menu won't open if you press the "Menu" keyboard button. You must use 
> the "Menu" event instead.

The "Mennu" event was the one I mean as example.

> 
> In the same way, control that must answer to a double-click have an "Activate"
> event that you must use instead of "DblClick".
> 
> Regards,
> 


Best regards,

Ron_1st

 -- 





More information about the User mailing list