[DEVELOPMENT ENVIRONMENT]

* BUG: Clicking with the right mouse button on a toolbox control now 
  correctly raises the help on that control.


git-svn-id: svn://localhost/gambas/trunk@3354 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-12-10 01:57:34 +00:00
parent 22d3945361
commit 98628b539d

View file

@ -147,11 +147,23 @@ End
Public Procedure btnControl_MouseUp()
Dim sComp As String
Dim sClass As String
If $bNoEvent Then Return
If Mouse.Right Then
MHelp.GotoClass(CComponent.Classes[Last.Tag[0]].Component, Last.Tag[0])
'MHelp.GotoClass(CComponent.Classes[Last.Tag[0]].Component, Last.Tag[0])
sClass = Last.Tag[0]
If sClass <> SELECT_TOOL Then
sComp = CComponent.Classes[sClass].Component
If sComp = CComponent.PROJECT_NAME Then
Project.OpenFile(Last.Tag[0])
Else
MHelp.ShowHelpBrowserWith(Null, MHelp.TYPE_CLASS, Last.Tag[0])
Endif
Endif
Else