[Gambas-user] Small suggestion re help browser
Benoît Minisini
gambas at ...1...
Thu Sep 15 12:13:20 CEST 2011
> 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
More information about the User
mailing list