dcsimg
Results 1 to 5 of 5

Thread: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2019
    Posts
    382

    CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    If you are switching back and forth between VB6 and another language, one thing that the VB6 IDE lacks is multi-tabs for the code windows that you open. CodeSmart does this and more, but it's not free. This Addin is free and open source, and it has its own plugins. I didn't write this Addin, but thank you to however made it, it improved my productivity tremendously, especially the Multi-tab feature. You can find the Addin here along with screenshots:

    http://www.Planet-Source-Code.com/vb...62468&lngWId=1

    Plugins(Can be enabled or disabled individually):

    • Multi-Tab: Adds tabs when you have multiple windows open(including form designers), and you can press Ctrl+0 to 9 to quickly switch between windows. It supports more than 10 tabs.
    • Mousewheel support.
    • Auto complete: You press Space to auto complete after typing certain keywords that you configure.
    • Full screen: Press Shift+Enter to go full screen.
    • Tab Index: Allows you to fix tab order by easy clicking on controls in the order you want.

    I started this thread because it wasn't easy to compile as it consisted of several DLL's. There is a Readme.txt file in CHCore folder that illustrates how to compile the Addins, but I put more details here as it took me sometime to figure it out. Someone posted a link to a setup file in the comments section, I uploaded it to VirusTotal, which didn't find anything, but I couldn't unpack it to test the DLL's inside. Anyway, I prefer to compile it myself.

    How to compile:

    1. Start a new copy of VB6, then register CHCore\Interfaces\CHLib.tlb and CHCore\WinAPIForVB.tlb by using "Browse" to browse to the two files. This will register these type libraries. I made the mistake of opening CHCore project, and finding that these libraries were checked in the References dialog as if they were already registered, and the end result was empty list of plugins in the UI. Apparently they weren't registered, so you have to browse to them to register them.
    2. Delete Connect.DCA file in CHCore folder. It's a cached file that might interfere with the compilation. There are also .tmp files that you need to delete as well.
    3. Check for any missing references before you compile. In particular, CHCore and all the Plugins would list "CodeHelp Global Object" as missing because the GUID changed. In this case, uncheck the missing, then close the References dialog, then open it again and add it. This updates the GUID to the correct one.
    4. You might get an error about not being able to set a version compatible component. Ignore it for now, it will be fixed in step 7.
    5. Check for any missing references as explained in step 3, then compile CHGlobal.vbp(in CHGlobal subfolder).
    6. Check for any missing references as explained in step 3, then compile CHCore.vbp(in CHCore folder). However, make sure that you browse to "CHCore"(Not to be confused with CHCoder) folder itself before compiling the DLL.
    7. Go to Project-->Properties-->Component tab, then select Binary Compatibilty. This insures that when you make modifications and recompile, you don't see multiple entries with the same name in References, and that everything would work smoothly. Save the project when prompted(This saves Binary Compatibility, and paths to DLL files, even though you didn't edit any code).
    8. For each of the plugins(Except BlankTemplate), repeat the process above(Steps 4-7). However, make sure that you browse to the "Plugins" folder itself before compiling the DLL. You can't compile it somewhere else, then copy it there, because the path to the DLL is saved in the registry.


    After the compilation, you should see "CodeHelp" menu item to the right of "Addins" menu, and there should be a list of 6 Plugins. Clicking on a Plugin, then More Info would bring a brief help file in how to use some of the plugins.

    In case you make mistakes, and you want to unregister all DLL's and start over, put the following in a batch file, and fix the path to what you were using. Make sure that you run the Command Prompt as Administrator, otherwise you get error messages.

    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\CHGlobalLib\CHGlobalLib.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\CHCore.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\Plugins\CHCoder.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\Plugins\CHFullScreen.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\Plugins\CHMWheel.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\Plugins\CHTabMDI2.dll
    C:\Windows\SysWOW64\regsvr32 /u C:\VB\Addins\CHCore\Plugins\CHTabIdx.dll
    Last edited by qvb6; Apr 27th, 2019 at 11:14 AM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2019
    Posts
    382

    Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    The Add-in above clears the Clipboard; which is a pain, however; by using the routines here, I was able to save and restore the clipboard. The code that clears the clipboard is all in Connect.Dsr, AddMenuItem(). Just add the following code before and after:

    ClipboardSave 0 ' Before
    ' ... Clipboard routines here
    ClipboardRestore 'After

  3. #3
    Lively Member
    Join Date
    Jun 2016
    Posts
    72

    Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    very good add-in I use it a lot.

    I have the following problem with the ide if I have something saved in the clipboard when I open the ide, all the content is deleted.
    It also happened to me before using your add-in, I only have the resource editor and CodeHelp loaded.

    a greeting and forgiveness for the language

  4. #4
    Addicted Member
    Join Date
    Feb 2014
    Posts
    185

    Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    Just some feedback.

    I have been trying a lot of IDE improvements from various sources and some of them are useful (for a time) then I tend to deactivate them while still keeping them present for when I need them. Some do some incredible stuff but the whole IDE becomes too shaky to use. This codehelp add-on is the best I have encountered so far, FOSS and all. I now have tabs!

    You forget how useful they are until you receive them, like manna from God!

  5. #5
    Addicted Member
    Join Date
    Feb 2014
    Posts
    185

    Re: CodeHelp: Multi-Tab/Mousewheel/FullScreen/TabIndex/AutoComplete Addin for VB6

    Is there a list of mOst favoured IDE extensions?
    Last edited by yereverluvinuncleber; Jun 28th, 2019 at 11:20 AM. Reason: O

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width