> This mod has two effects: > 1) prevents the inadvertent transition of the help page when the user > clicks somewhere in the help tree *other than on a specific item*. > 2) if the click is on recognizable row in the treeview, it is acted on > (this saves the frustration when the cursor is only a few pixels off an > item) > > Rationale : This arose because I have a nervous tick in my right hand that > manifests itself in right button clicks when I don't mean them. In order > to cope I move the cursor down to the bottom of the treeview to a blank > spot, so with this mod the help browser no longer jumps to the last > visible item in the treeview list. (This nervous tick drives me mad > everywhere by the way - at least in this case I can make a difference! ) > > regards > Bruce > > Index: FHelpBrowser.class > =================================================================== > --- FHelpBrowser.class (revision 4126) > +++ FHelpBrowser.class (working copy) > @@ -233,7 +233,13 @@ > Dim ars As String[] > Dim iType As Integer > Dim sKey As String > - > + > + If Not tvwClasses.FindAt(0, Mouse.Y) > + tvwClasses.Item.Selected = True > + Else > + Return ' just ignore any clicks below the visible items > + Endif > + > sKey = tvwClasses.Current.Key > If sKey = "$" Then Return
I don't understand the problem. If you click outside the treeview, the current page is just refreshed. It is not moved to the last item. -- Benoît Minisini ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user