Important alert: (current site time 7/16/2013 2:25:34 AM EDT)
 

winzip icon

ucStatusBar - Theme-Aware Owner Drawn StatusBar Control

Email
Submitted on: 8/11/2007 6:25:03 PM
By: TerriTop 
Level: Advanced
User Rating: By 14 Users
Compatibility: VB 6.0
Views: 20885
author picture
 
     ucStatusBar is a single file, self-subclassed StatusBar replacement control which supports complete customization per individual panel. Each panel supports the following independent properties: Text, Text Alignment (Left, Center, and Right), Auto/Manual Sizing, Editable (Dynamic Text Editing), Icons, Icon States (Enabled, Disabled), UseMaskColor, MaskColor, ForeColor, Font, ToolTipText, and Width. In addition the ucStatusBar as a whole supports BackColor, GripShapes (None, Classic Bars, XP Squares), Sizeable, and Theme Detection (Auto, Classic, Blue, HomeStead, and Metallic). ucStatusBar also provides dynamic runtime Control Binding to allow external controls (Progressbar, Droplist, etc) to be bound to individual panels. As a bonus, this submission also includes ucProgressbar, which is a self-subclassed Theme-Aware progress bar (modified from Mario Flores - Cool XP ProgressBar). So, If your project needs a modern lightweight StatusBar with dynamic runtime functionality without the overhead of dependencies, then this control might be just what the doctor ordered. Enjoy!! TerriTop…

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :ucStatusBar - Theme-Aware Owner Drawn StatusBar Control
'**************************************
See ucStatusBar.ctl Header
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 17 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 Advanced 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

8/12/2007 3:42:00 AMenmity

120k status bar is not so light weight;)
(If this comment was disrespectful, please report it.)

 
8/12/2007 5:08:48 AM_Merlin_

Looks great! Five bars for you.

Merlin is the name, and logic is my game...
(If this comment was disrespectful, please report it.)

 
8/13/2007 9:19:14 AMTerriTop

Enmity thanks for the note....

Well, I would have to respectfully disagree with you, the ucStatusBar by comparison is ~9X smaller than the alternative of using MS Common Controls (MSCOMCTL.OCX) which is 1.03 MB. The other plus is that one does not have compatability issues imposed by out of date MSCOMCTL.OCX on PC's oen might be deploying to. In short the trade offs are worth the gains...but only you can decide if this is right for your packages ;-)

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

 
8/13/2007 1:22:36 PMHeriberto Mantilla Santamaria

Hi TerriTop you say the Truth, the MSCOMCTL.OCX is extreme height with if you only need to use a StatusBar control, I prefer put the UC StatusBar in my programs.

This UC is great 5/5
(If this comment was disrespectful, please report it.)

 
8/16/2007 6:09:11 AMRuturaaj

ability to resize panels in Runtime will make it unique. Thanks for making the issue of hosting a control in Panel so easy! Please see if you can add "Resizable" property to the Panel of Status bar which will change the mouse cursor to horizontal arrow cursor and user will be able to resize panels.

For those, who are just interested in eliminating OCX overhead may consider drawing status bar using CreateWindow and other related API. This code link may help:
http://vbnet.mvps.org/code/comctl/statbaroverview.htm

Thanks for sharing your quality code with us!
(If this comment was disrespectful, please report it.)

 
8/16/2007 6:10:33 AMRuturaaj

Sorry, in my last comment I mentioned CreateWindow API; actually I wanted to say CreateStatusWindow.
(If this comment was disrespectful, please report it.)

 
8/17/2007 10:52:46 AMenmity

@TerriTop, yes, we should all not mentioning that huge common controls ocx;)

what I mean light weight, first comes in my mind is Carles P.V.'s uc series :D

btw. excellent uc contribution ;)

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

 
4/23/2009 2:39:48 AMSting-Ray

Very nice! I may very well use this in my commercial software as long as it can handle 32-bit icons.
(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.