> 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. In the same way, control that must answer to a double-click have an "Activate" event that you must use instead of "DblClick". 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