Advertisement

Results for "Author: chad roe"

6_2008-2009 #208861
POS: Cursor & Form Positions & Offsets - Plus many more Subs & Functions!

[www.chadworkz.com] This is an example of how to get the cursor's X & Y positions, the form's X & Y positions, and the X & Y offset between the two. All positions are dynamic and change as you move the cursor and/or the form. The offset values are very valuable, especially for true "mouse-over" functions. The offset is the difference between the cursor's position on the screen and the cursor's position on the form. Trust me, this is something that everyone needs to learn and know...it can be extremely valuable.

7_2009-2012 #231376
Phader Example by Chad

This is a full Text Fader Example allowing you to fade text by three (3) colors. It uses nine (9) scrollbars (3 for each color to fade by) allowing you to set the color of each of three (3) Color Labels. It has a great Fade Preview so you can see what the Faded Text looks like as you type it. It also has Bold, Italic, Underline and Strike Through options that can be changed real time (the Faded Text Preview updates as you change the options). There is also a very cool option that Dynamically updates the Faded Text Preview as you change or scroll any of the color scrollbars. If enabled, it allows you to change the colors dynamically and see what the Faded Text looks like instantly. It does, however, require a fairly fast PC with at least 256MBs of RAM. It doesn't slow down your PC or eat up memory, slower PCs just don't scroll the scrollbars smoothly and the RGB values jump in large increments instead of smoothly by 1 if the Dynamic Option is enabled. This is a perfect start for an AOL Chat Fader or any other type of Chat Fader.

7_2009-2012 #231377
Better Transparent Form/Image

After looking at all of the transparent form examples here on Planet Source Code, I decided to write my own. Every current example either makes everything on the form transparent or uses WAY TOO MUCH code. I wrote a very small example that uses 1 form and 1 line of code. It uses a Function that I believe was written by Robert Gainor. Gainor himself wrote an example that used 4 forms and 4 modules. That was just way too much. I reduced it to 1 form, 1 line of code and just a few Declarations and Constants. My example is extremely fast, extremely clean as well as the most simple on PSCode!

7_2009-2012 #231378
A Better, Faster, Remove Duplicates Function (Kill Dupes, Remove Dupes, Kill Duplicates)

Please check "http://chad.offroadextremes.com/forums" for all my source code and projects. This is a very fast, very efficient RemoveDupes Function. Every single RemoveDupes Sub/Function I have ever seen on PSCode has been very slow and never removes all the duplicate list items. If the List/Combo contained more than one duplicate, only the first duplicate was removed. My Function, however, removes every single duplicate no matter how many there are. It also does it very quickly without going back through the list. It only sweeps through the list once. This is the fastest and most efficient way of removing dupes in VB. Also, I have added the options to remove all matches no matter the Case or if it has spaces or not, remove matches that only match exactly or any combination of matching options. As an added bonus, I wrote it as a Function to return the number of duplicates removed. You can call this Function like you would a sub for simplicity, or use anything to display the number of dupes removed. EXAMPLES: [1] Call RemoveDupes(List1, True, True) [2] Call MsgBox(RemoveDupes(List1, True, True)) [3] lngDupes& = Call RemoveDupes(List1, True, True)

7_2009-2012 #231379
POS: Cursor & Form Positions & Offsets - Plus many more Subs & Functions!

[www.chadworkz.com] This is an example of how to get the cursor's X & Y positions, the form's X & Y positions, and the X & Y offset between the two. All positions are dynamic and change as you move the cursor and/or the form. The offset values are very valuable, especially for true "mouse-over" functions. The offset is the difference between the cursor's position on the screen and the cursor's position on the form. Trust me, this is something that everyone needs to learn and know...it can be extremely valuable.

Languages
Top Categories
Global Discovery