Advertisement

Results for "Author: grigri"

C_Volume2 #69438
Icons4VB *UPDATED* - Display different icons in explorer for VB projects, depending on their type

This is a Shell Extension (Icon Handler) for VB files, written in VB. It allows you to display different icons in explorer for project and form files, depending on their type - very useful for opening the correct project. The code is quite simple, and well-commented. Also included are replacement icons for the relevant VB files, in multiple formats up to 48x48 in 32-bit colour.

Java_Volume1 #85643
Customize the icons in the VB Project Explorer Tree

Purpose: Allows customization of the icons displayed in the VB Project Explorer window. Icons can be customized on a global level (eg all form icons) or on an individual per-component level. I personally use it for visually separating collection classes, interfaces and normal classes. It allows 32-bit colour icons to be used, as opposed to VB's standard 16-colour ones.

Java_Volume1 #86036
A photoshop-like BEVEL EFFECT in VB

This program takes a bitmap image and applies a bevel effect to it, adding hilights and shadows to make it appear 3-D. The direction and elevation of the light can be changed, as can the size of the bevel. Includes a "debug" mode which shows the process step-by-step (see screenshot) Some of the calculations have been converted to integer calculations for speed. Others still use floating-point, this is one future optimization that I might do.

Java_Volume1 #86867
ADDIN -- ComponentProjectLoader

Normally when you open a non-project VB-associated file such as a form (.frm), class module (.cls) or standard module (.bas), VB creates a new project and adds that component to it. I've never found this functionality useful, and on occasion it's annoying. This Add-In detects when components are loaded directly, and tries to find the associated project. If it succeeds, it loads the project and then displays the component you loaded - a much more useful way of doing things!

Java_Volume1 #87143
Howto : Never forget your variables again [my take]

To judge from some recent submissions, some people forget their variables! This is my take on how to avoid this, by making an IDE addin that shows a list of your private variables when you press a hotkey (Ctrl+m). It's not perfect, but it could be a good starting point for other IDE enhancements, if anyone's interested :)

Java_Volume1 #87803
At last! A solution to the Select Case Enum problem! Believe me, you want this code

The VB IDE's intellisense features really are a godsend. However, a few omissions in its conception are a bit annoying. For example, when you are doing a Select Case statement with an enum value, you would expect the intellisense to pop up a list box of all the enum values, like it does if you were in an If statement. That's exactly what this add-in does. It adds this functionality to the IDE. I have seen several ideas of how to get around this limitation, but none that take it this far. It's not really surprising that no one else has done it. The objects add-ins get to play with to query and manipulate the code conveniently ignore the existence of Enums, totally. So you really have to do it the hard way - parsing the strings until you find the right one. If none is found then it falls back on the typelibs the project references, hoping to find it there. I'm not going to delve into a detailed description of how the parsing system works, because it's really not that complicated. It's just long, annoying, and with lots of pitfalls to watch out for. The parsing code itself could be is very useful to anyone wanting to parse VB code, for any reason. Little gems like GetModuleEnums() or GetProcParams() could prove themselves handy in any number of situations. I'm not saying the code is bug-free, because it almost certainly isn't. It does however work in every circumstance I have tested, and has yet to crash the IDE. A lot of improvements could be made to this code. Caching the parsing results would dramatically improve search speed, and the parsing algorithms themselves could be vastly accelerated. Still, it works. Here's a list of exercises left "for the reader" :) * Improve the parsing algorithms, possibly by using array pointers instead of string manipulation * Cache results so they don't have to be repeated every time * Extend the concept to popup a list of labels when the user types "Goto " or "GoSub " * Implement sorting in the list box [as an option, as it's not always appropriate] * In the enum pop-up box, check which values have already been checked for in the Select Case statement, and draw them in grey, or strike through, or something. Anyway, have fun, enjoy the code, and don't forget to send me your comments [and your vote :) ] If you use any of the code, please let me know [I won't mind, honest, but I'd like to be informed, for my ego's sake if nothing else]. grigri

Java_Volume1 #87982
Icons4VB *UPDATED* - Display different icons in explorer for VB projects, depending on their type

This is a Shell Extension (Icon Handler) for VB files, written in VB. It allows you to display different icons in explorer for project and form files, depending on their type - very useful for opening the correct project. The code is quite simple, and well-commented. Also included are replacement icons for the relevant VB files, in multiple formats up to 48x48 in 32-bit colour.

2_2002-2004 #112791
Customize the icons in the VB Project Explorer Tree

Purpose: Allows customization of the icons displayed in the VB Project Explorer window. Icons can be customized on a global level (eg all form icons) or on an individual per-component level. I personally use it for visually separating collection classes, interfaces and normal classes. It allows 32-bit colour icons to be used, as opposed to VB's standard 16-colour ones.

2_2002-2004 #113184
A photoshop-like BEVEL EFFECT in VB

This program takes a bitmap image and applies a bevel effect to it, adding hilights and shadows to make it appear 3-D. The direction and elevation of the light can be changed, as can the size of the bevel. Includes a "debug" mode which shows the process step-by-step (see screenshot) Some of the calculations have been converted to integer calculations for speed. Others still use floating-point, this is one future optimization that I might do.

2_2002-2004 #114014
ADDIN -- ComponentProjectLoader

Normally when you open a non-project VB-associated file such as a form (.frm), class module (.cls) or standard module (.bas), VB creates a new project and adds that component to it. I've never found this functionality useful, and on occasion it's annoying. This Add-In detects when components are loaded directly, and tries to find the associated project. If it succeeds, it loads the project and then displays the component you loaded - a much more useful way of doing things!

2_2002-2004 #114290
Howto : Never forget your variables again [my take]

To judge from some recent submissions, some people forget their variables! This is my take on how to avoid this, by making an IDE addin that shows a list of your private variables when you press a hotkey (Ctrl+m). It's not perfect, but it could be a good starting point for other IDE enhancements, if anyone's interested :)

2_2002-2004 #114950
At last! A solution to the Select Case Enum problem! Believe me, you want this code

The VB IDE's intellisense features really are a godsend. However, a few omissions in its conception are a bit annoying. For example, when you are doing a Select Case statement with an enum value, you would expect the intellisense to pop up a list box of all the enum values, like it does if you were in an If statement. That's exactly what this add-in does. It adds this functionality to the IDE. I have seen several ideas of how to get around this limitation, but none that take it this far. It's not really surprising that no one else has done it. The objects add-ins get to play with to query and manipulate the code conveniently ignore the existence of Enums, totally. So you really have to do it the hard way - parsing the strings until you find the right one. If none is found then it falls back on the typelibs the project references, hoping to find it there. I'm not going to delve into a detailed description of how the parsing system works, because it's really not that complicated. It's just long, annoying, and with lots of pitfalls to watch out for. The parsing code itself could be is very useful to anyone wanting to parse VB code, for any reason. Little gems like GetModuleEnums() or GetProcParams() could prove themselves handy in any number of situations. I'm not saying the code is bug-free, because it almost certainly isn't. It does however work in every circumstance I have tested, and has yet to crash the IDE. A lot of improvements could be made to this code. Caching the parsing results would dramatically improve search speed, and the parsing algorithms themselves could be vastly accelerated. Still, it works. Here's a list of exercises left "for the reader" :) * Improve the parsing algorithms, possibly by using array pointers instead of string manipulation * Cache results so they don't have to be repeated every time * Extend the concept to popup a list of labels when the user types "Goto " or "GoSub " * Implement sorting in the list box [as an option, as it's not always appropriate] * In the enum pop-up box, check which values have already been checked for in the Select Case statement, and draw them in grey, or strike through, or something. Anyway, have fun, enjoy the code, and don't forget to send me your comments [and your vote :) ] If you use any of the code, please let me know [I won't mind, honest, but I'd like to be informed, for my ego's sake if nothing else]. grigri

2_2002-2004 #115129
Icons4VB *UPDATED* - Display different icons in explorer for VB projects, depending on their type

This is a Shell Extension (Icon Handler) for VB files, written in VB. It allows you to display different icons in explorer for project and form files, depending on their type - very useful for opening the correct project. The code is quite simple, and well-commented. Also included are replacement icons for the relevant VB files, in multiple formats up to 48x48 in 32-bit colour.

3_2004-2005 #131334
Customize the icons in the VB Project Explorer Tree

Purpose: Allows customization of the icons displayed in the VB Project Explorer window. Icons can be customized on a global level (eg all form icons) or on an individual per-component level. I personally use it for visually separating collection classes, interfaces and normal classes. It allows 32-bit colour icons to be used, as opposed to VB's standard 16-colour ones.

3_2004-2005 #131727
A photoshop-like BEVEL EFFECT in VB

This program takes a bitmap image and applies a bevel effect to it, adding hilights and shadows to make it appear 3-D. The direction and elevation of the light can be changed, as can the size of the bevel. Includes a "debug" mode which shows the process step-by-step (see screenshot) Some of the calculations have been converted to integer calculations for speed. Others still use floating-point, this is one future optimization that I might do.

3_2004-2005 #132558
ADDIN -- ComponentProjectLoader

Normally when you open a non-project VB-associated file such as a form (.frm), class module (.cls) or standard module (.bas), VB creates a new project and adds that component to it. I've never found this functionality useful, and on occasion it's annoying. This Add-In detects when components are loaded directly, and tries to find the associated project. If it succeeds, it loads the project and then displays the component you loaded - a much more useful way of doing things!

3_2004-2005 #132834
Howto : Never forget your variables again [my take]

To judge from some recent submissions, some people forget their variables! This is my take on how to avoid this, by making an IDE addin that shows a list of your private variables when you press a hotkey (Ctrl+m). It's not perfect, but it could be a good starting point for other IDE enhancements, if anyone's interested :)

3_2004-2005 #133494
At last! A solution to the Select Case Enum problem! Believe me, you want this code

The VB IDE's intellisense features really are a godsend. However, a few omissions in its conception are a bit annoying. For example, when you are doing a Select Case statement with an enum value, you would expect the intellisense to pop up a list box of all the enum values, like it does if you were in an If statement. That's exactly what this add-in does. It adds this functionality to the IDE. I have seen several ideas of how to get around this limitation, but none that take it this far. It's not really surprising that no one else has done it. The objects add-ins get to play with to query and manipulate the code conveniently ignore the existence of Enums, totally. So you really have to do it the hard way - parsing the strings until you find the right one. If none is found then it falls back on the typelibs the project references, hoping to find it there. I'm not going to delve into a detailed description of how the parsing system works, because it's really not that complicated. It's just long, annoying, and with lots of pitfalls to watch out for. The parsing code itself could be is very useful to anyone wanting to parse VB code, for any reason. Little gems like GetModuleEnums() or GetProcParams() could prove themselves handy in any number of situations. I'm not saying the code is bug-free, because it almost certainly isn't. It does however work in every circumstance I have tested, and has yet to crash the IDE. A lot of improvements could be made to this code. Caching the parsing results would dramatically improve search speed, and the parsing algorithms themselves could be vastly accelerated. Still, it works. Here's a list of exercises left "for the reader" :) * Improve the parsing algorithms, possibly by using array pointers instead of string manipulation * Cache results so they don't have to be repeated every time * Extend the concept to popup a list of labels when the user types "Goto " or "GoSub " * Implement sorting in the list box [as an option, as it's not always appropriate] * In the enum pop-up box, check which values have already been checked for in the Select Case statement, and draw them in grey, or strike through, or something. Anyway, have fun, enjoy the code, and don't forget to send me your comments [and your vote :) ] If you use any of the code, please let me know [I won't mind, honest, but I'd like to be informed, for my ego's sake if nothing else]. grigri

3_2004-2005 #133673
Icons4VB *UPDATED* - Display different icons in explorer for VB projects, depending on their type

This is a Shell Extension (Icon Handler) for VB files, written in VB. It allows you to display different icons in explorer for project and form files, depending on their type - very useful for opening the correct project. The code is quite simple, and well-commented. Also included are replacement icons for the relevant VB files, in multiple formats up to 48x48 in 32-bit colour.

4_2005-2006 #165866
Icons4VB *UPDATED* - Display different icons in explorer for VB projects, depending on their type

This is a Shell Extension (Icon Handler) for VB files, written in VB. It allows you to display different icons in explorer for project and form files, depending on their type - very useful for opening the correct project. The code is quite simple, and well-commented. Also included are replacement icons for the relevant VB files, in multiple formats up to 48x48 in 32-bit colour.

Languages
Top Categories
Global Discovery