4 Attachment(s)
[VB6] AddIn IDE Codefolding
Please download a newer version here: https://www.vbforums.com/showthread....test-versions)
This post is old and will not be updated
***************************************************************************************************
This is an add-in to Add Codefolding like capabilities to VB6 IDE
Unfortunately VB6 doesnt support codefolding so I came with an idea to mimic its functionality
by relocating part of the code (Functions/Sub or Regions) towards the bottom of the file and
leaving a placeholder that can be expanded (It can be used with subclasing. The fold storage can be moved up without problems)
I divide foldable content into two types:
-Function/Sub:They can be Folded without any problem. The project can be opened by anyone without the AddIn and
be 100% compatible.
-Regions:This are the user defined area (they can be created by selecting the lines and opening the context
menu with the right mouse). Regions can be of three types:
-Outer regions:
Regions that have several Functions/Sub inside. Like before this leave a 100% compatible project.
-Outer region with declares/enums/type:
This ones (usually at the top of the module) are automatically marked to unfold on run/compile.
-Inner region:
This are the regions inside functions.There is no limit on the number of sublevels that can be
created. If folded they are automatically unfolded on run/compile and refolded after.
IMPORTANT!!!: Inner regions need to be padded and every region inside another need another extra level
of padding. Not respecting this rule may break your code.
The last two groups needs the AddIn to be enabled only if they are Folded.
An Unfolded project is still 100% compatible with any VB6 IDE not using the AddIn.
NOTES:-Sub/Function/Props need scope to be explicit ("Public Sub","Private Sub","Public Func...)
-May fail on FULL COMPILE (CTRL+F5) when Regions are folded and VB6 is configured with
"General->Compile on demand" (This is a bug on VB6 IDE. It dont raise the addIn event)
DOWNLOAD: Attachment 181582
Re: [VB6] AddIn IDE Codefolding
Re: [VB6] AddIn IDE Codefolding
Great functionality, looks a bit scary though.
Re: [VB6] AddIn IDE Codefolding
Quote:
Originally Posted by
yereverluvinuncleber
Great functionality, looks a bit scary though.
Scary why? I'm using it with no problems so far. Also got a few betatesters using it for an extended period before publishing it. Just test it and tell me :)
Re: [VB6] AddIn IDE Codefolding
Excelent shagratt, thanks for this tool, It will be very useful to us
Re: [VB6] AddIn IDE Codefolding
Quote:
Originally Posted by
LeandroA
Excelent shagratt, thanks for this tool, It will be very useful to us
x 2 :)
What is scary about this is I have been using this feature in Excel since it became avail. eons ago !!!
But I never though to have it in VB6 which I have been using for 20+ years.
Re: [VB6] AddIn IDE Codefolding
Great AddIn Shagratt, very usefull...
who need pay for Codesmart with this kind of free Addins... :D :D
Re: [VB6] AddIn IDE Codefolding
Hello...I got some draw problems with your Codefolding add-in when scrolling the bar.:(
Attachment 191555
Re: [VB6] AddIn IDE Codefolding
Quote:
Originally Posted by
Flowesans
Hello...I got some draw problems with your Codefolding add-in when scrolling the bar.:(
Attachment 191555
Your attachment is invalid, as is the one you tried to post later. If you're trying to attach an image, DO NOT use the 'Insert Image' tool on the basic editor toolbar. It is faulty at the moment. Click the 'Go Advanced' button under your post and then the 'Manage Attachments' button. When attaching an image, you may want to specify to attach inline and put the attachment code in the appropriate place within your post to make the image appear within the text. In that case, make sure to provide appropriate line breaks.
1 Attachment(s)
Re: [VB6] AddIn IDE Codefolding