Advertisement

Results for "Author: lavolpe"

ASP_Volume3 #54603
FYI: Import/Export ListView [16Feb09]

Updated posted bad example in previous upload. For your personal use. A slightly different method of exporting/importing a ListView. When I said listview, I mean all that pertains to it: This includes listview properties, its column headers & their props, its listitems & their props, the listitems' subitems & their props, the imagelists bound to the listview and its props, each image in the imagelist and its props. Additionally, you can pick and choose portions of what will be exported/imported. Note. The previous upload example for importing the reportview example did not ask to include control formatting, it should have. My mistake. No change to the class.

ASP_Volume3 #54604
FYI: Bits - Manipulation

The attached class contains a lot of bit manipulation routines. Here are some of them 1) Right/Left shifting, both logical & arithmetic logic, both truncation & wrapping, 2) Get/Set any bits or a range of bits, 3) Convert data types and byte arrays to a string of bits, 4) Convert a string of bits to byte,int,long 5) CRC32 calcs on arrays and strings, 6) and many more. Let me know if you see any errors or potential improvements.

ASP_Volume3 #54605
FYI: Self-Balancing Binary Tree

For those that like linked lists, heaps, hash tables, etc, here is a self-balancing binary tree. If you are not familiar with binary trees, I included an RTF document to help understand them. For the rest of us, we know a worse-case binary tree is a linked list, and a best case binary tree is probably a Red-Black or AVL tree. A close runner up is a binary tree that has nodes added randomly, and then a better solution might just be this, a self-balancing binary tree. The tree does not balance perfectly, rather it balances its height on insertions and deletions maintaining a worse-case O(Log n)+1 search time. Not bad at all ;)

ASP_Volume3 #54606
FYI: UserControl Custom DropDowns - PropetySheet

A "fluff" tool for usercontrol developers. With the attached, one can easily supply their own custom dropdown lists for propertysheets. If a property is a VB enumeration (say AlignmentConstants), you normally get values like: vbLeftJustify, vbRightJustify, vbCenter for the property's dropdown and its displayed value. Wouldn't it be cool if it was displayed like this instead: Left, Right, Centered? Easy. Ever want or need a string enumeration, say a list of controls on the form or a list of available drives? Easy. Want to display your own dialog box for a property vs a property sheet? Say a FileName property that opens a commondialog? Easy. The attached has a sample project that shows how this can be done. 18 Dec 08... Found memory related bugs that crash. Thunks & mapped memory file modified as needed. Now tested compiled/uncompiled and in other apps (MSAccess). No more crashing; no errors noticed.

C_Volume2 #66910
LaVolpe Submenus v2

9,000 hits indicates you liked 1st version. Then, you'll absolutely love this new one. Complete rewrite fixing all known issues w/previous version and adding way too much to this iteration. ScreenShot hilites a lot of it. So heavily remarked it makes up 1/3 of the file size; a 250+kb html help file with pics, a fair sample project and something unique -- an optional user control you can add to your project while in IDE to view menus as they would look in run-time. Has its limitations, but works well. I'm looking for honest feedback, especially pertaining to bugs experienced on your system; this has been tested to death on Win98 & Win2K. I have been testing this for several weeks and each bug found, it seems I added a new feature. Figured if I didn't put this out now, I'd never put it out. Gotta stop sometime to smell the roses. Unzip the help file images to a folder named "ReadMe_files" then put the readme.html in the folder above that. P.S. honest feedback and the "pat on the back" votes keep us going. Thank you in advance. Last updated: 12 Mar/4:15PM Eastern.

C_Volume2 #67338
LaVolpe Buttons (Updated)

Updated: Added checkbox/option button modes to include the diagonal buttons (Mode/Value Properties). Also included a custom shaped button that takes shape from its picture property. Some notes to mention: 1) checkbox face color intentionally made to look lighter than normal button face when Value is True. XP, Java, & Mac are best guess as to what it would look like. 2) Option button selections toggle other option buttons, but do not synchronize with VB's option buttons. 3) No change to round buttons; short of using anti-aliasing, could not figure a way for smoother look--experimenting with GDI+. 4) If compiled in app, adds 110k. 5) If compiled as OCX,

C_Volume2 #68075
Game: WHICHword?

Knock-off of MSN's WHATword game. Caution: can be addicting. Enjoy. The multi-thousand word dictionary, sounds & needed graphics will be installed from the included .res file. Updates uploaded 22 Jun/1925 to include Hall of Fame & minor tweaks to random letter generator routine & updated help file.

C_Volume2 #68339
LaVolpe Window Messages

Repost with Search Function> Just a cheat-sheet of sorts. Over 200 windows messages with their values and brief descriptions. Add it to your toolbox for referencing when subclassing forms, hooking, etc. Not much of a project but should be useful. Feel free to use & abuse as desired. :)

C_Volume2 #68421
LaVolpe PathFinder (OverClocked)

AI pathfinder for large maps - 2nd try. This is a unique approach and is fastest version I have to date. Submitted for your suggestions & feedback. Well commented. If anyone has seen an approach like this, please let me know. I would like to compare distance & heuristic calculations. Unlike most pathfinders, this one does not require fixed objects and can be used for quickly plotting paths btwn moving objects. For those of you that have personally requested to be updated on improvements to this code, I have sent you a personal copy. For all others, I have re-posted this project simply because the update produces a significantly faster result & is far more accurate to providing a shorter path. I'm sure this project can be tweaked to provide even faster results, but keep in mind the trade-off between speed and overtasking memory resources. Updated again for to allow user-defined accuracy and speed (use the AccuracyPct variable in routine: CreatePaths) 1 Feb 20:10 CST -- Now can find shortest path 100% of time & quickly.

C_Volume2 #68627
FYI: GDI Font Management

A way to share memory fonts between dozens of DCs without creating duplicate fonts for each DC & without forcing you to track them. Just drop the included module in your project, add 2 lines to your custom controls: 1 to return a font handle & another to delete the font. Sample project included and code is commented. The idea is simple, want to create a font but don't want to duplicate it if one is already created, the module will check fonts it is managing against the properties of the font you want created. If it exists, the handle to the existing font is returned, otherwise a new font is created with the appropriate properties & that handle is passed. Destroying fonts are only performed when all instances of the font have been decremented to zero. Advanced category only due to the unique tracking system I employed.

C_Volume2 #68800
LaVolpe Caption Rotator

Rotating captions are hard but doable. Keeping track of an accelerator key is complicated. This example has portable routines to rotate captions at 90 or 270 degrees & properly display the underscore on the hot key. In addition, you dictate where text is displayed by passing the bounding parameters. This will be used for a soon-2b-released vertical version of my buttons, so if you see errors, please let me know. Thanx.

C_Volume2 #68801
FYI: Rotating Transparent Icons

Example how to rotate transparent icons & keep transparency. This sample project goes further by allowing creation of transparent icons from non-icon resources. My take: Making 1 icon is better than calling transparent bitmap routines 100's of times. Another mini-project for the soon-2b-released vertical version of my buttons.

C_Volume2 #68978
FYI: Fun with Regions

A compilation of region functions & examples. Included is probably the fastest window shaping routine on PSC. Regions used to create shaped windows, regions used for simple animation, rotating & stretching regions, and using regions similar to FloodFill are examples shown. All are heavily commented to assist in learning.

C_Volume2 #69089
PathFinder: Dijkstra Method

Contribution to Julien Lecomte's post. AI path finder now goes diagonally too, less memory intensive. All credit goes to original author; if you wish to comment on the diagonal path routine, please do; otherwise any voting should go to the original author at www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=31654&lngWId=1

C_Volume2 #69132
FYI: Multidimensional Array Sort

Another contribution to existing code. Very quickly sort a two-dimensional array containing any amount of members (ex: vArray(5,1000) by simply identifying the member of the array to sort on. This routine has links to the original authors' posts in the source. My only contribution was to tweak for use in more than a 1-dimensional & 2-dimensional/2-member arrays. Please no voting on this one; 99% of it is the work of other coders. PS. Revised by switching the array elements around properly,i.e, from vArray(1000,5) to vArray(5,1000). Revised once again (21 Nov) to offer fast search on sorted array & to properly handle non-zero based arrays.

C_Volume2 #69376
FYI: A Gradient Strategy

Do you need to draw a large gradient area during window resizing? The slowness! Maybe an answer is to draw faster in poorer quality then when done sizing (i.e., Button Up), redraw in fine quality. The attached sample, if nothing else, is a good routine for drawing gradients between 2 colors. The extra code in the routines allows user-supplied quality values which when used with the example can show a dramatic decrease in the number of loop iterations required to draw in the different qualities/roughness. RePosted: Reworked calcs to account for the uneven left/right edges of thick lines.

C_Volume2 #69431
FYI: Combine Modal/Non-Modal Window Styles

A sneaky way to have your program pause for a window to close (Modal) without disabling your project (non-Modal). Uses subclassing & hooks with 0% cpu usage. So the Do:DoEvents:Loop not used which hogs 95% CPU time. Can be used for all-API windows or standard VB windows. Heavily commented too.

C_Volume2 #69461
LaVolpe Custom Windows: Part I

Part 1. Prequel to a full-blown skinning application. This part does not skin but attempts to completely control the window non-client area. Provided in hopes you will help identify any bugs on different O/Ss. Works well on 98/2K. The other parts of this project will be submitted after bugs fixed in this part and feedback has been addressed. Part 2 will be skinned version compatible with MDIs, Part 3 will include routines for custom-drawn menus. Heavily subclassed and heavily commented; but still a work in progress. Feedback is definitely requested especially pertaining to bugs and suggestions.

C_Volume2 #69585
FYI: Window Border Styles

While back I posted something like: 2 new borders for your picture boxes. Well how about 13 more? Trying to get a handle on the pixel measurement of borders, I was sometimes off by a pixel & couldn't figure out why. You know 1+3 should = 4, but interesting 'nuf thickframe(3)+staticedge(1)=2 and not 4. Anyway, if you wanted to know...

C_Volume2 #69715
LaVolpe TileBlt

A tile blt'er with some added options. Out performs against CreatePatternBrush & may out perform most on PSC. Options include staggered alternating rows, tile over image, & can use transparent gifs, icons & cursors.

Languages
Top Categories
Global Discovery