Important alert: (current site time 7/16/2013 2:39:53 AM EDT)
 

winzip icon

cCoolScrollbars (Update: support for 'drop-down' windows)

Email
Submitted on: 12/23/2005 2:19:28 PM
By: Carles P.V. 
Level: Intermediate
User Rating: By 24 Users
Compatibility: VB 6.0
Views: 21542
 
     cCoolScrollbars is a little class which will let you customize (in fact, "overpaint") built-in scrollbars appearance. Two modes: Flat and Custom-Draw. For more information read class' comments and have a look at given URL to know how this SHOULD be achieved. // Need to register SubclassingSink.tlb __________________________________________________ Update Dec 14th: Support for 'drop-down' windows. Added basic demo classes: cFlatCombo and cFlatImageCombo.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 53 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/5/2005 8:21:54 PMDave

Simply excellent work as always Carles. I really hope you return to to your GIF work :)
(If this comment was disrespectful, please report it.)

 
12/6/2005 2:32:32 AMLight Templer

looool, Carles! ;-)))) Self starting a competition with Vlad and having the project nearly ready in the pocket ;-)))
btw: Code is great again and the 5 ***** more than earned. This was really one of the last open points and I hope it will be often used in ucs to have state of the art scrollbars. Many thanks and regards - LiTe
(If this comment was disrespectful, please report it.)

 
12/6/2005 3:21:15 AMLight Templer

After a closer look: UPS! This was MUCH more than a two nights session ... ! I hate this metrics calculations, too. And my grats to your ShiftColor() function: Improvement is simple. But I waste lot of time thinking about to make it better and didn't get the trick... Shame on me ;-) (The Kolumbus-egg effect) ____ The Catch22 article is impressive. We should have a VB6 forum with this design possibilities and quality articles...
(If this comment was disrespectful, please report it.)

 
12/6/2005 6:36:00 AMCarles P.V.

Self starting a competition with Vlad? Never! His lives in another world :-) I started this months ago as part of a bigger project (ucSkin). But it has become too large to offer it as a usercontrol (currently more than 4500 lines). It would be better to pack it in a dll.
Also, this project does not support form not-client area (caption + menu bar) nor menus. It's simply a basic 3D-soft skin for almost all VB6 controls... And one of the problems is (precisely) what Vlad has solved in his last post: 'rendering' of VB static (windowless) controls, and this involves hooking API functions. This is the reason I've talked about scrollbars skinning: do it in the right way would require that technique.

(If this comment was disrespectful, please report it.)

 
12/6/2005 8:32:34 AMHeriberto Mantilla Santamaria

To Light Templer: It would be genial to see a forum moderated by you.
(If this comment was disrespectful, please report it.)

 
12/6/2005 10:43:08 AMDave

Carles, i am really looking forward to this ucSkin library. Can you give more information on this? How will resizing work for forms? You should consider getting a website of your own to keep better control of version updates and such like (articles, forums, etc).

I will happily design and host a website for you. Please get back to me :)
(If this comment was disrespectful, please report it.)

 
12/6/2005 10:10:58 PMHeriberto Mantilla Santamaria

How PSC doesn´t accept me spanish comment, I translate my first comment:

Leave Me to be the first one in congratulating yourself, you always achieve me to surprise. Congratulations.

(If this comment was disrespectful, please report it.)

 
12/7/2005 7:51:15 AMenmity

what's next?
(If this comment was disrespectful, please report it.)

 
12/8/2005 10:54:31 AMRichard Mewett

Brilliant as always. Full of useful code snippets as well as the wonderful scrollbar. 5*
(If this comment was disrespectful, please report it.)

 
12/11/2005 11:56:08 AMBugzy

Very nice Carles, obviously a lot of effort. Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
12/21/2005 3:55:52 PMRiccardo Cohen

Nide work Carles, as always! 5 globes from me. May I report one bug with Test2 (w/ Comboboxes)?
When ListBox is droped down and we are using mouse scroll button,(scroll down without using the scrollbar) the scrollbar doesn't refresh/move with action. Also the ImageCombo.
Thx for sharing!
(If this comment was disrespectful, please report it.)

 
12/25/2005 9:45:06 PMStewart

Clean consise code and does what it says efficiently. I really like your coding style. Thanks for the great code. 5 from me
(If this comment was disrespectful, please report it.)

 
12/26/2005 6:17:21 PMJim K

Just excellent.
(If this comment was disrespectful, please report it.)

 
12/30/2005 9:01:47 PMRiccardo Cohen

Did you already find a solution to the bug /w comboboxes Carles?? I hope you found it... Thx!
(If this comment was disrespectful, please report it.)

 
9/5/2006 3:39:42 PMMArio Flores G

I just had a chance to look it and I was amazed , excellent!.
Some time ago I tried the same but never achieved the same results because of the d@mn size calculations, and always have been asking my self if scrollbars can be repainted (instead of overlap another window, has I was doing it too) and how windows xp does to skin static windows (ScrollBars, Labels, Etc) for themed windows, has it paint pictures (themes) over them ? any idea Carles.
Cheers

(If this comment was disrespectful, please report it.)

 
9/5/2006 5:26:25 PMCarles P.V.

Answer here?: 'Theming tabstrip panes and contained controls' by Vlad Vissoultchev (ID=63469)
(If this comment was disrespectful, please report it.)

 
1/7/2007 6:29:15 AMLiam

Is it possible to paste pictures, rather than draw lines, arrows and rectangles?

thanx
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.