[Gambas-user] Click events and mouse buttons

Rob sourceforge-raindog2 at ...94...
Sun Aug 29 07:27:53 CEST 2004


I noticed tonight that at least in the Treeview's Click event, 
trying to access the Mouse class (e.g. Mouse.Right, to see if 
the right mouse button was used for the click) raises an error 
saying there's no active mouse event.  I can use MouseUp or 
MouseDown except then the event gets thrown if the user clicks 
on the plus sign next to a node to expand or collapse it, which 
makes life more difficult.

Looking at the documentation for QTreeView, its click event does 
return a button/modifier value. This seems to be true for most 
or all widgets' click events. Is this insufficient to enable the 
Mouse class in Click events, or was this just an oversight?

Rob





More information about the User mailing list