clayreimann / codehelp Goto Github PK
View Code? Open in Web Editor NEWAn extension framework for Visual Studio 6, initally developed by @luthv
An extension framework for Visual Studio 6, initally developed by @luthv
I'm loving this addin but I see there is a plugin for a CHGroupPanel which tabs the tool windows. I cannot seem to make it work though. How do you put them in tabs?
On German keyboards the Alt Gr key is needed to produce round or curly brackets in combination with the keys 7 to 0. While it technically still works, the current implementation also switches tabs if you have the appropriate number of tabs open. The Alt Gr key is equivalent to pressing both Ctrl and Alt at the same time.
I downloaded the project, changed all the EOL characters from vbLf to vbCrLf, and built all the DLLs. In order to fix the problem I created a new function in MDIMonitor.bas
in the CHTabMDI
project:
'new function to make things easier
Private Function KeyPressed(ByVal Key As Long) As Boolean
KeyPressed = CBool((GetAsyncKeyState(Key) And &H8000) = &H8000)
End Function
Afterwards, I simply enhanced the CtrlDown detection by also querying the state of the Alt key:
' This is where we ctrl-switch tabs
Private Sub ICHPlugin_OnKeyHook(bHandled As Boolean, lReturn As Long, wParam As Long, lParam As Long)
' Call into VBWinApi to get the control key state
' CtrlDown = GetAsyncKeyState(vbKeyControl)
'Fix AltGr-Key on German keyboard layout so that only the ctrl keys enable switching tabs
CtrlDown = KeyPressed(vbKeyControl) And Not KeyPressed(vbKeyMenu)
If m_CtrlPressed Then
Select Case wParam
Case vbKey0 To vbKey9
Call m_tabManager.ShortcutActivate(wParam)
Case vbKeyReturn
Call MaximizeCodePane
End Select
End If
End Sub
Whether you implement the change or not, this way it's documented and easy to fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.