Results for "Author: cptnvic"
Update: Ver 1.0.1 29 Feb. 2008 Drop modTVpropbag.bas into your project and you can save and restore treeviews with 2 simple calls. This is as close to "plug-n-play" as it gets... even a very new newbie can make this work in minutes. I include a demo project for your perusal. Supports multiple treeviews (easily modified to work with other controls). Saves and restores: Nodes/child nodes, Node.Key, Node.Tag, Icons, Expanded state, sorted state, checked state. What else could you want for nothin'? Version 1.0.1 implements the .tag property (per request) and is considerably cleaner/optimized code. Appreciate your comments most.
This is a major (and I mean major) re-build of my previous drop in form replacement of the windows input box/message box without using MS ocx. Now the drop-in form has only one control (text box) and only ONE function to call! But you can still choose several styles of boxes: Input box, Message Box, Nag screen, Timed message box (splash screen?) and Combine them as you like! No graphics controls at all but has improved gradients, owner drawn buttons, dock/drag control, pick the display location, show all, some, or no buttons, and more! It is very customizable... you control color schemes, gradients, fonts, font color and (bold/italic...etc). --------- 12/02/05... Forgot to put the .frx for the msgbox in the zip (actually forgot the mouse pointer for the mouse over was stored there). So now zip has the .frx file. modified the readme.txt file
This small very fast code demonstrates the use of EM_LINESCROLL (sendmessage api)to to automatically, instantly, precisely, and simultaneously scroll 1 or several RichText, Text box, or List boxes. If you build chat interfaces, or are building a code editor... this code is for you! Even the rankest beginner will be able to understand and use this code in minutes. There's more comments than code! I got the idea while using KRYO_11's external scroll bar code (found here on PSC). His code uses the EM_SCROLL message and a for/next loop that works fine for small text boxes... but goes a little nutty when the text box is tall and there are many lines to scroll. The EM_LINESCROLL message does not "Scroll" to the new position... it jumps there similar to the GoTo statement in VB. It is VERY FAST! I needed this yesterday... but couldn't find it anywhere... even a text search of PSC's code returned only one instance of a chat bot that didn't appear to really use the EM_LINESCROLL message... so if there is ANY similar code on PSC, it is well hidden indeed! The project contains 2 demos: 1) Compares the EM_SCROLL and EM_LINESCROLL messages and speed of their use. 2) This demo simultaneously scrolls several RTBs, a text box and a list box from 1 regular old VB scrollbar. It will also teach you how to sync up the objects so they not only scroll together... but scroll the right lines together... and quickly. Hope You Enjoy The Code! CptnVic
Update 15 June 2006: (Thanks to Robert Rayment and Cobein for ideas/code!) This final (as far as I'm concerned) version now uses the GetDIBits API color stream to count the unique colors in a picture Very Quickly. Tested in XP and Me... Not 95/98/NT yet (but should work). Masking colors returned in the GetDIBits array should resolve the OS problems that would otherwise occur. In XP tests, three of these functions will counts a 1024x768 pic with 145,350 colors in +-.125 seconds and the 4th in +- .203 seconds... and that's not bad (Tests were compiled)! This version includes 4 different functions for quickly counting unique colors. 2 are my work and 2 are modified from Rayment's code.
I was looking for a method for dragging selected text from a regular vb text box to a list box (easily done with a RTB) but couldn't find one on PSC... so here's my simple (but effective) solution.
Updated 18 May 2010: The IBindStatusCallback events for URLDownloadToFile are in a class module for easier use/portability. The class now supports download progress bar(s) AND CANCEL with 5 extra events exposed. Now you can add progress bars to your downloads... and free your app from waiting while the file(s) download. I have included an easily modifiable download window to show the progress of your downloads while your app does something else (see the screen shot). It will do multiple downloads with progress. I give you my personal guarantee that you'll find nothing like this on PSC! I did not write this code for this purpose, but you could easily use this code to download a list of updated files (from the internet), then parse the file list and 'auto-update' the files on the local computer. I have also included a DeleteUrlCacheEntry routine from the Wininet api to force a 'fresh copy' download from the internet. Otherwise, URLDownloadToFile will often download a local copy of the requested file that is cached in IE. The project DOES need a type library (freely downloaded) and complete instructions are in the zip. The type lib. is NOT distributed with your app... needed parts are compiled into your project by VB. As is my want, there are more comments than code. If you just started writing VB code this morning, you can download this dude and have it running in 5 minutes AND you'll understand the whole process in 10 minutes! Semi-Guaranteed as usual! BE SURE TO READ THE READ_ME_FIRST.TXT File for instructions on how to get and install the FREE type library needed! Your most ardent admirer, CptnVic
Update: Ver 1.0.1 29 Feb. 2008 Drop modTVpropbag.bas into your project and you can save and restore treeviews with 2 simple calls. This is as close to "plug-n-play" as it gets... even a very new newbie can make this work in minutes. I include a demo project for your perusal. Supports multiple treeviews (easily modified to work with other controls). Saves and restores: Nodes/child nodes, Node.Key, Node.Tag, Icons, Expanded state, sorted state, checked state. What else could you want for nothin'? Version 1.0.1 implements the .tag property (per request) and is considerably cleaner/optimized code. Appreciate your comments most.
This is a major (and I mean major) re-build of my previous drop in form replacement of the windows input box/message box without using MS ocx. Now the drop-in form has only one control (text box) and only ONE function to call! But you can still choose several styles of boxes: Input box, Message Box, Nag screen, Timed message box (splash screen?) and Combine them as you like! No graphics controls at all but has improved gradients, owner drawn buttons, dock/drag control, pick the display location, show all, some, or no buttons, and more! It is very customizable... you control color schemes, gradients, fonts, font color and (bold/italic...etc). --------- 12/02/05... Forgot to put the .frx for the msgbox in the zip (actually forgot the mouse pointer for the mouse over was stored there). So now zip has the .frx file. modified the readme.txt file
This small very fast code demonstrates the use of EM_LINESCROLL (sendmessage api)to to automatically, instantly, precisely, and simultaneously scroll 1 or several RichText, Text box, or List boxes. If you build chat interfaces, or are building a code editor... this code is for you! Even the rankest beginner will be able to understand and use this code in minutes. There's more comments than code! I got the idea while using KRYO_11's external scroll bar code (found here on PSC). His code uses the EM_SCROLL message and a for/next loop that works fine for small text boxes... but goes a little nutty when the text box is tall and there are many lines to scroll. The EM_LINESCROLL message does not "Scroll" to the new position... it jumps there similar to the GoTo statement in VB. It is VERY FAST! I needed this yesterday... but couldn't find it anywhere... even a text search of PSC's code returned only one instance of a chat bot that didn't appear to really use the EM_LINESCROLL message... so if there is ANY similar code on PSC, it is well hidden indeed! The project contains 2 demos: 1) Compares the EM_SCROLL and EM_LINESCROLL messages and speed of their use. 2) This demo simultaneously scrolls several RTBs, a text box and a list box from 1 regular old VB scrollbar. It will also teach you how to sync up the objects so they not only scroll together... but scroll the right lines together... and quickly. Hope You Enjoy The Code! CptnVic
Update 15 June 2006: (Thanks to Robert Rayment and Cobein for ideas/code!) This final (as far as I'm concerned) version now uses the GetDIBits API color stream to count the unique colors in a picture Very Quickly. Tested in XP and Me... Not 95/98/NT yet (but should work). Masking colors returned in the GetDIBits array should resolve the OS problems that would otherwise occur. In XP tests, three of these functions will counts a 1024x768 pic with 145,350 colors in +-.125 seconds and the 4th in +- .203 seconds... and that's not bad (Tests were compiled)! This version includes 4 different functions for quickly counting unique colors. 2 are my work and 2 are modified from Rayment's code.
I was looking for a method for dragging selected text from a regular vb text box to a list box (easily done with a RTB) but couldn't find one on PSC... so here's my simple (but effective) solution.
Updated 18 May 2010: The IBindStatusCallback events for URLDownloadToFile are in a class module for easier use/portability. The class now supports download progress bar(s) AND CANCEL with 5 extra events exposed. Now you can add progress bars to your downloads... and free your app from waiting while the file(s) download. I have included an easily modifiable download window to show the progress of your downloads while your app does something else (see the screen shot). It will do multiple downloads with progress. I give you my personal guarantee that you'll find nothing like this on PSC! I did not write this code for this purpose, but you could easily use this code to download a list of updated files (from the internet), then parse the file list and 'auto-update' the files on the local computer. I have also included a DeleteUrlCacheEntry routine from the Wininet api to force a 'fresh copy' download from the internet. Otherwise, URLDownloadToFile will often download a local copy of the requested file that is cached in IE. The project DOES need a type library (freely downloaded) and complete instructions are in the zip. The type lib. is NOT distributed with your app... needed parts are compiled into your project by VB. As is my want, there are more comments than code. If you just started writing VB code this morning, you can download this dude and have it running in 5 minutes AND you'll understand the whole process in 10 minutes! Semi-Guaranteed as usual! BE SURE TO READ THE READ_ME_FIRST.TXT File for instructions on how to get and install the FREE type library needed! Your most ardent admirer, CptnVic
Update: Ver 1.0.1 29 Feb. 2008 Drop modTVpropbag.bas into your project and you can save and restore treeviews with 2 simple calls. This is as close to "plug-n-play" as it gets... even a very new newbie can make this work in minutes. I include a demo project for your perusal. Supports multiple treeviews (easily modified to work with other controls). Saves and restores: Nodes/child nodes, Node.Key, Node.Tag, Icons, Expanded state, sorted state, checked state. What else could you want for nothin'? Version 1.0.1 implements the .tag property (per request) and is considerably cleaner/optimized code. Appreciate your comments most.
This is a major (and I mean major) re-build of my previous drop in form replacement of the windows input box/message box without using MS ocx. Now the drop-in form has only one control (text box) and only ONE function to call! But you can still choose several styles of boxes: Input box, Message Box, Nag screen, Timed message box (splash screen?) and Combine them as you like! No graphics controls at all but has improved gradients, owner drawn buttons, dock/drag control, pick the display location, show all, some, or no buttons, and more! It is very customizable... you control color schemes, gradients, fonts, font color and (bold/italic...etc). --------- 12/02/05... Forgot to put the .frx for the msgbox in the zip (actually forgot the mouse pointer for the mouse over was stored there). So now zip has the .frx file. modified the readme.txt file
This small very fast code demonstrates the use of EM_LINESCROLL (sendmessage api)to to automatically, instantly, precisely, and simultaneously scroll 1 or several RichText, Text box, or List boxes. If you build chat interfaces, or are building a code editor... this code is for you! Even the rankest beginner will be able to understand and use this code in minutes. There's more comments than code! I got the idea while using KRYO_11's external scroll bar code (found here on PSC). His code uses the EM_SCROLL message and a for/next loop that works fine for small text boxes... but goes a little nutty when the text box is tall and there are many lines to scroll. The EM_LINESCROLL message does not "Scroll" to the new position... it jumps there similar to the GoTo statement in VB. It is VERY FAST! I needed this yesterday... but couldn't find it anywhere... even a text search of PSC's code returned only one instance of a chat bot that didn't appear to really use the EM_LINESCROLL message... so if there is ANY similar code on PSC, it is well hidden indeed! The project contains 2 demos: 1) Compares the EM_SCROLL and EM_LINESCROLL messages and speed of their use. 2) This demo simultaneously scrolls several RTBs, a text box and a list box from 1 regular old VB scrollbar. It will also teach you how to sync up the objects so they not only scroll together... but scroll the right lines together... and quickly. Hope You Enjoy The Code! CptnVic
Update 15 June 2006: (Thanks to Robert Rayment and Cobein for ideas/code!) This final (as far as I'm concerned) version now uses the GetDIBits API color stream to count the unique colors in a picture Very Quickly. Tested in XP and Me... Not 95/98/NT yet (but should work). Masking colors returned in the GetDIBits array should resolve the OS problems that would otherwise occur. In XP tests, three of these functions will counts a 1024x768 pic with 145,350 colors in +-.125 seconds and the 4th in +- .203 seconds... and that's not bad (Tests were compiled)! This version includes 4 different functions for quickly counting unique colors. 2 are my work and 2 are modified from Rayment's code.
I was looking for a method for dragging selected text from a regular vb text box to a list box (easily done with a RTB) but couldn't find one on PSC... so here's my simple (but effective) solution.
Updated 18 May 2010: The IBindStatusCallback events for URLDownloadToFile are in a class module for easier use/portability. The class now supports download progress bar(s) AND CANCEL with 5 extra events exposed. Now you can add progress bars to your downloads... and free your app from waiting while the file(s) download. I have included an easily modifiable download window to show the progress of your downloads while your app does something else (see the screen shot). It will do multiple downloads with progress. I give you my personal guarantee that you'll find nothing like this on PSC! I did not write this code for this purpose, but you could easily use this code to download a list of updated files (from the internet), then parse the file list and 'auto-update' the files on the local computer. I have also included a DeleteUrlCacheEntry routine from the Wininet api to force a 'fresh copy' download from the internet. Otherwise, URLDownloadToFile will often download a local copy of the requested file that is cached in IE. The project DOES need a type library (freely downloaded) and complete instructions are in the zip. The type lib. is NOT distributed with your app... needed parts are compiled into your project by VB. As is my want, there are more comments than code. If you just started writing VB code this morning, you can download this dude and have it running in 5 minutes AND you'll understand the whole process in 10 minutes! Semi-Guaranteed as usual! BE SURE TO READ THE READ_ME_FIRST.TXT File for instructions on how to get and install the FREE type library needed! Your most ardent admirer, CptnVic
Update: Ver 1.0.1 29 Feb. 2008 Drop modTVpropbag.bas into your project and you can save and restore treeviews with 2 simple calls. This is as close to "plug-n-play" as it gets... even a very new newbie can make this work in minutes. I include a demo project for your perusal. Supports multiple treeviews (easily modified to work with other controls). Saves and restores: Nodes/child nodes, Node.Key, Node.Tag, Icons, Expanded state, sorted state, checked state. What else could you want for nothin'? Version 1.0.1 implements the .tag property (per request) and is considerably cleaner/optimized code. Appreciate your comments most.
This is a major (and I mean major) re-build of my previous drop in form replacement of the windows input box/message box without using MS ocx. Now the drop-in form has only one control (text box) and only ONE function to call! But you can still choose several styles of boxes: Input box, Message Box, Nag screen, Timed message box (splash screen?) and Combine them as you like! No graphics controls at all but has improved gradients, owner drawn buttons, dock/drag control, pick the display location, show all, some, or no buttons, and more! It is very customizable... you control color schemes, gradients, fonts, font color and (bold/italic...etc). --------- 12/02/05... Forgot to put the .frx for the msgbox in the zip (actually forgot the mouse pointer for the mouse over was stored there). So now zip has the .frx file. modified the readme.txt file