Results for "Author: jolyon bloomfield"
This code is all in a simple module, making it fairly easy to draw a spiral at run time. I have commented most lines, but anybody with some understanding of trigonometry should be able to get it. Uses about 9 different input parameters to totally customize your program. I have tested this with VB 6 and 5, so no guarantees for the lower ones, but it should work 'coz all it is is maths. I have also included a nice testing app to show what types of spiral are possible ;) Please vote. Thanks!
This code creates a "ToolTip Addin" that enumerates all objects in a form that have a "Tooltip" property, and allows you to edit them quickly from a listbox, instead of setting them one by one. I wrote this because I couldn't be bothered to use 20,000 tooltips the hard way... Note, this is by no means an easy task, and I still am wrinkling bugs out of it. Read the Readme.txt file inside. It should be able to give you a (flimsy) idea of how to use the addin stuff though. (I still don't really get it...)
Shell sort routine, created for strings, but easily changed for any data type. Pass in an array. Features arguments for the last element of the array to be sotred, and also the first. Fast sorting routine, should be compatible with all versions of VB, because it is straight maths, although the "optional" keyword in the declaration isn't compatible with earlier versions. Enjoy
This submission is split into 2 - A DLL, which holds all routines for handling arcs, and a program, which demonstrates how to use the DLL. The DLL is basically a maths DLL, exposing a Line Intersection Routine, and an Arc Drawing routine. Each arc is defined by a series of three points - three points along the line that is the arc. The arc is drawn to any hDC by API, using specified colours, widths, penstyles, and drawmodes. The DLL also contains data type defining arcs, and routines to suit, to make using this DLL as easy as possible. The program is a mimick of a CAD package, except it only uses arcs. It allows creation of arcs by clicking three points on a picturebox, then the arc, and the centrepoint of its circle, are drawn. From here, the points may be moved to update the arc, by dragging them and dropping them. During a dragdrop operation, the arc can be seen to be moving by using XOr drawmodes. The update includes the following changes: Program: The Arcs may now be moved by dragging the arc where there is no control point. An Arc must be selected before its control points can be moved. Added Arc Selection Routine to Point Selection Routine. About and Help boxes added. Arcs can now be rotated around the centrepoint by rightclicking and dragging. ZOrder for arcs also added, + buttons to manipulate. DLL: Updated routines and handling of data types inside DLL. Numerous routines added to assist external calculations of angles, distances, radii, etc. Overall, this has been a wonderful experience with mathematics for me. I strongly suggest that you download it, even if it is just to see what VB is really capable of, when the maths is applied. My 486 is fast enough to draw the arcs in real time, so I believe that any computer should do justice to the wonder of maths and graphics combined. Hope you enjoy it! Jolyon Bloomfield
Takes in a string and spits out all possible permutations of the inputted characters using a simple recursive routine. Good recursive example.
This code is something that isn't often seen done in VB. Even for C, documentation is poor, examples are shoddy and unintelligible, and everything is HARD. But here it is. This is known in shell extension terms as a context menu handler. When explorer goes to create a right-click menu, it calls this dll because of entries in the registry, and the dll can add entries to the menu, and do some neat stuff, just like winzip. This is a fairly simple version of shell extensions, but by following the same principles, it can be grown upon for all the menu handlers, copy hook handlers, drag drop handlers, etc, and even into the shell namespace extensions. Very rare, and spectacular, you want to download this code! (And vote, too!)
Well, this is an interesting bit of code. Instead of trying to catch the drag drop files, we're trying to initiate them. This is just a simple little bit of code that works just like Winzip or something, by drag dropping a file! Uses those strange OLE event type things. Enjoy! Jolyon Bloomfield Jolyon_B@Hotmail.com ICQ UIN: 11084041
This code is useful for frequency analysis, especially as done by Fast Furier(sp?) transforms, or FFT, and analysis. It takes in a Note from A, Bb, B, C, etc, all the way up to Ab, and an octave, and calculates the frequency that note would be pure at. It also accepts a level of decimal places to generate to. Simple, but very useful. Compiled EXE + Source Code.
This submission is split into 2 - A DLL, which holds all routines for handling arcs, and a program, which demonstrates how to use the DLL. The DLL is basically a maths DLL, exposing a Line Intersection Routine, and an Arc Drawing routine. Each arc is defined by a series of three points - three points along the line that is the arc. The arc is drawn to any hDC by API, using specified colours, widths, penstyles, and drawmodes. The DLL also contains data type defining arcs, and routines to suit, to make using this DLL as easy as possible. The program is a mimick of a CAD package, except it only uses arcs. It allows creation of arcs by clicking three points on a picturebox, then the arc, and the centrepoint of its circle, are drawn. From here, the points may be moved to update the arc, by dragging them and dropping them. During a dragdrop operation, the arc can be seen to be moving by using XOr drawmodes. The update includes the following changes: Program: The Arcs may now be moved by dragging the arc where there is no control point. An Arc must be selected before its control points can be moved. Added Arc Selection Routine to Point Selection Routine. About and Help boxes added. Arcs can now be rotated around the centrepoint by rightclicking and dragging. ZOrder for arcs also added, + buttons to manipulate. DLL: Updated routines and handling of data types inside DLL. Numerous routines added to assist external calculations of angles, distances, radii, etc. Overall, this has been a wonderful experience with mathematics for me. I strongly suggest that you download it, even if it is just to see what VB is really capable of, when the maths is applied. My 486 is fast enough to draw the arcs in real time, so I believe that any computer should do justice to the wonder of maths and graphics combined. Hope you enjoy it! Jolyon Bloomfield
Shell sort routine, created for strings, but easily changed for any data type. Pass in an array. Features arguments for the last element of the array to be sotred, and also the first. Fast sorting routine, should be compatible with all versions of VB, because it is straight maths, although the "optional" keyword in the declaration isn't compatible with earlier versions. Enjoy
This code is all in a simple module, making it fairly easy to draw a spiral at run time. I have commented most lines, but anybody with some understanding of trigonometry should be able to get it. Uses about 9 different input parameters to totally customize your program. I have tested this with VB 6 and 5, so no guarantees for the lower ones, but it should work 'coz all it is is maths. I have also included a nice testing app to show what types of spiral are possible ;) Please vote. Thanks!
This code creates a "ToolTip Addin" that enumerates all objects in a form that have a "Tooltip" property, and allows you to edit them quickly from a listbox, instead of setting them one by one. I wrote this because I couldn't be bothered to use 20,000 tooltips the hard way... Note, this is by no means an easy task, and I still am wrinkling bugs out of it. Read the Readme.txt file inside. It should be able to give you a (flimsy) idea of how to use the addin stuff though. (I still don't really get it...)
Here's a little bit of code that I'm using in one of my apps. I slaved over it for 3 nights, so I thought that others might also like to use it. Basically, it Displays a bounding box around the window that the cursor is over, just like selecting a window in Microsoft SPY++. (I decompiled it and monitored it and used dependancies and all sorts of junk from there too, in hope of imitating it). So here it is. This code snippet uses window regions, hDC's, System Objects, and basically complex drawing API's. It also shows how to clean up after yourself (I.e., Release memory correctly). Although it uses advanced techniques, you should get an idea of how graphics sort of work from here. Highly commented code, so as to maximise the knowledge that you can get from here. Please leave comments, as the feedback makes the program. If you like it, please vote :o) Jolyon Bloomfield February 2000
This code is all in a simple module, making it fairly easy to draw a spiral at run time. I have commented most lines, but anybody with some understanding of trigonometry should be able to get it. Uses about 9 different input parameters to totally customize your program. I have tested this with VB 6 and 5, so no guarantees for the lower ones, but it should work 'coz all it is is maths. I have also included a nice testing app to show what types of spiral are possible ;) Please vote. Thanks!
This code creates a "ToolTip Addin" that enumerates all objects in a form that have a "Tooltip" property, and allows you to edit them quickly from a listbox, instead of setting them one by one. I wrote this because I couldn't be bothered to use 20,000 tooltips the hard way... Note, this is by no means an easy task, and I still am wrinkling bugs out of it. Read the Readme.txt file inside. It should be able to give you a (flimsy) idea of how to use the addin stuff though. (I still don't really get it...)
Here's a little bit of code that I'm using in one of my apps. I slaved over it for 3 nights, so I thought that others might also like to use it. Basically, it Displays a bounding box around the window that the cursor is over, just like selecting a window in Microsoft SPY++. (I decompiled it and monitored it and used dependancies and all sorts of junk from there too, in hope of imitating it). So here it is. This code snippet uses window regions, hDC's, System Objects, and basically complex drawing API's. It also shows how to clean up after yourself (I.e., Release memory correctly). Although it uses advanced techniques, you should get an idea of how graphics sort of work from here. Highly commented code, so as to maximise the knowledge that you can get from here. Please leave comments, as the feedback makes the program. If you like it, please vote :o) Jolyon Bloomfield February 2000
Shell sort routine, created for strings, but easily changed for any data type. Pass in an array. Features arguments for the last element of the array to be sotred, and also the first. Fast sorting routine, should be compatible with all versions of VB, because it is straight maths, although the "optional" keyword in the declaration isn't compatible with earlier versions. Enjoy
This code is useful for frequency analysis, especially as done by Fast Furier(sp?) transforms, or FFT, and analysis. It takes in a Note from A, Bb, B, C, etc, all the way up to Ab, and an octave, and calculates the frequency that note would be pure at. It also accepts a level of decimal places to generate to. Simple, but very useful. Compiled EXE + Source Code.
This submission is split into 2 - A DLL, which holds all routines for handling arcs, and a program, which demonstrates how to use the DLL. The DLL is basically a maths DLL, exposing a Line Intersection Routine, and an Arc Drawing routine. Each arc is defined by a series of three points - three points along the line that is the arc. The arc is drawn to any hDC by API, using specified colours, widths, penstyles, and drawmodes. The DLL also contains data type defining arcs, and routines to suit, to make using this DLL as easy as possible. The program is a mimick of a CAD package, except it only uses arcs. It allows creation of arcs by clicking three points on a picturebox, then the arc, and the centrepoint of its circle, are drawn. From here, the points may be moved to update the arc, by dragging them and dropping them. During a dragdrop operation, the arc can be seen to be moving by using XOr drawmodes. The update includes the following changes: Program: The Arcs may now be moved by dragging the arc where there is no control point. An Arc must be selected before its control points can be moved. Added Arc Selection Routine to Point Selection Routine. About and Help boxes added. Arcs can now be rotated around the centrepoint by rightclicking and dragging. ZOrder for arcs also added, + buttons to manipulate. DLL: Updated routines and handling of data types inside DLL. Numerous routines added to assist external calculations of angles, distances, radii, etc. Overall, this has been a wonderful experience with mathematics for me. I strongly suggest that you download it, even if it is just to see what VB is really capable of, when the maths is applied. My 486 is fast enough to draw the arcs in real time, so I believe that any computer should do justice to the wonder of maths and graphics combined. Hope you enjoy it! Jolyon Bloomfield
This code is something that isn't often seen done in VB. Even for C, documentation is poor, examples are shoddy and unintelligible, and everything is HARD. But here it is. This is known in shell extension terms as a context menu handler. When explorer goes to create a right-click menu, it calls this dll because of entries in the registry, and the dll can add entries to the menu, and do some neat stuff, just like winzip. This is a fairly simple version of shell extensions, but by following the same principles, it can be grown upon for all the menu handlers, copy hook handlers, drag drop handlers, etc, and even into the shell namespace extensions. Very rare, and spectacular, you want to download this code! (And vote, too!)