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

winzip icon

McToolBar 2.3 - [Advanced multi-style toolbar with Chevrons]

Email
Submitted on: 1/12/2006 7:39:08 AM
By: JJJJJJJJ  
Level: Intermediate
User Rating: By 50 Users
Compatibility: VB 6.0
Views: 32142
(About the author)
 
     Hi guys, The new version of McToolBar-2.3 is released now and it claims itself as the most advanced toolbar writen in VB. It could solve the very big task 'Chevrons' (see Screenshot) and have multi-style appearance. All the drawing routines are completly re-writen and it works very sooth. The features includes... single file'd, ownerdraw with, multi-styles(Flat,Soft,Solid,Win98,WinXP,Plastic and full range of colour options), HoverEffect, Custom ToolTips with balloon style and icons, Unicode support, fully customizable Gradient effects, Tiled background and many more... It is stylish, customizable and easy to use. "The control does not use any property pages for item manipulation! All the opeartions can be done directly from the vb's property window". Thanks for all who helped me in the previous release with there comments and feedbacks. Lets try the new one and make this control more perfect!!! Jim Jose

 
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 43 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
1/11/2006 10:17:14 PMdreamvb

Wow this does look nice. And better then the normal One that looks like it was made by a 3 year old. You sure know your stuff and make some very decent controls.

It's not often you see people make cool stuff like this on Pscode. But you prove that there are still skilled VB people on here. Keep up the good work 5 from me.

O i was just wondering as I seen you now make a

Custom ListBox, Custom ImageList and This Toolbar. Have you any plans to make a Custom Tree View control as that would make a nice controls set then.

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

 
1/12/2006 1:33:02 AMCodeFester

Nice upgrade with this. My only suggestion is to separate it out as a user control project and demo host exe project so as to make ready to go to work. Also, the demo project could be a bit more flexible; for example make one or 2 of the tool bars, then have them change as users change the properties by clicking the many buttons on the demo form. I give it a high 5 though and respect you for sharing your hard work.
(If this comment was disrespectful, please report it.)

 
1/12/2006 7:25:43 AMJim Jose

Thanks guys, yeah there is a real tough work behind this control. I am so happy to share my codes here at PSC, after all I learned everything I have from here. Thanks again for ur support.


You can find the old version and project history here....http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=62769&lngWId =1

Zip
updated with ActiveX project to build Ocx directly.
(If this comment was disrespectful, please report it.)

 
1/12/2006 9:01:40 AMPeter

Fantastic piece of art! Definitely 5*!
Can you make it float?
Thanks for sharing!
(If this comment was disrespectful, please report it.)

 
1/12/2006 11:54:07 AMJim

Excellent work. Nice improvements. One feature that would really round it out would be support for drop down Button Menus, similar to the VB toolbar control.
(If this comment was disrespectful, please report it.)

 
1/12/2006 7:46:38 PMStewart

The code is clean, the effect is nice. It's a very nicely done control. Thanks for the great work :)
(If this comment was disrespectful, please report it.)

 
1/12/2006 8:10:59 PM٭ega

Great Control, as a suggestion can you have a gradient hover color. So that it can have an Office 2003 style. Btw, 5 globes.
(If this comment was disrespectful, please report it.)

 
1/12/2006 8:42:06 PMlvlhed

Some real nice GUI stuff lately... *****
(If this comment was disrespectful, please report it.)

 
1/12/2006 8:56:11 PMzoom

Amazing!!!!!Amazing!!!!!Amazing!!!!!Amazing!!!!!


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

 
1/12/2006 10:24:48 PM

can you make office 2003 style
(If this comment was disrespectful, please report it.)

 
1/14/2006 5:14:17 AMJim Jose

Yeah, my plans for the next version are 1)Different width to each button 2)Autosize 3)Button Drag drop 4)Better themes (including office 2003)

Thanks for ur support. Keep posting ur feedbacks... Bye
(If this comment was disrespectful, please report it.)

 
1/14/2006 6:20:25 AMMark Anthony Dinglasa

Yeah very nice and advance toolbar.... 5 globes for that nice piece of work !
(If this comment was disrespectful, please report it.)

 
1/14/2006 8:57:17 PMHeriberto Mantilla Santamaria

wow, Jim thx so much for this.
(If this comment was disrespectful, please report it.)

 
1/16/2006 1:36:30 PMMirko Kressmann

Wow, absolut fantastic control! Thx so much. ... one thing ... whats about Buttonmenues?
(If this comment was disrespectful, please report it.)

 
1/16/2006 10:51:12 PMTuanHai

Great control! five stars for you. Waiting for your next version.
(If this comment was disrespectful, please report it.)

 
1/17/2006 12:59:03 PMAnibal Sarasua

Excelllllllent work again Jim! 5 globes for you!, i have one more suggestion, XP icons support! please!, and i convert this proyect to stand alone ocx with property pages.
(If this comment was disrespectful, please report it.)

 
1/18/2006 9:36:21 AMPhantom Man

Well Done Jim, Excellent Code, Well Written And Very Readable.

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

 
1/18/2006 10:31:44 PMFred.cpp

Great Work. I can't give you less than 5 Globes.
(If this comment was disrespectful, please report it.)

 
1/19/2006 9:21:17 PMOption Explicit

Jim, this control is fabulous. Not much else I can say except thanks.
(If this comment was disrespectful, please report it.)

 
1/25/2006 1:16:48 AMackid32

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

 
1/25/2006 10:52:54 AMRichard Mewett

Jim, this is a great toolbar! The button appearance and graphical styles are 1st class. Have my *****
(If this comment was disrespectful, please report it.)

 
1/28/2006 12:06:12 PMSteppenwolfe

This is very nice work, gets my 5..
The only thing I would suggest, is that you list the properties/methods in the demonstration form..
(If this comment was disrespectful, please report it.)

 
1/29/2006 8:36:48 AMVBtutor

Master piece ... In general I trust and admire all your posts ... Keep the good art alive ... 5 globes
(If this comment was disrespectful, please report it.)

 
2/12/2006 7:33:35 AMxpert

Excellent replacement (and enhancement, of course) for the standard VB ToolBar control. Thanks for sharing and continously improving it.
I would like to use it in my projects, but I can't because in the IDE when I CLOSE the demo window, VB6 crashes. The same happens with the exe. I have Windows 98 SE. Anyone had that problem too? Jim, if that behaviour is a bug, can you fix it?
Thanks again for making and sharing the best ownerdrawn toolbar I've ever seen...
(If this comment was disrespectful, please report it.)

 
2/12/2006 9:06:07 AMJim Jose

xpert, I am using winXP.... But I started and developed McToolBar on Win98 SE and I never got such an issue. Anyway I will check for it's possibility!!

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

 
2/19/2006 8:51:12 AMxpert

Hi Jim, it is me again.
Can you confirm me if you were able of replicating the crash of VB when closing the demo in Windows 98 SE?
Perhaps the problem is in UserControl_Terminate. I can't help you with that because I don't know subclassing.
(If this comment was disrespectful, please report it.)

 
2/21/2006 6:31:49 PMAndrew M. Goncharov

Still can`t find how to place small pix... And why images can`t be copied/pasted through Clipboard?
(If this comment was disrespectful, please report it.)

 
2/22/2006 8:59:28 AMAndrew M. Goncharov

..... I mean resize 32-pixel ones to 16-pixels
(If this comment was disrespectful, please report it.)

 
2/22/2006 1:58:33 PMJim Jose

1. I will add it for the next version...
2. I have no idea... :) Its all about Property window

Thanks for ur suggessions !!

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

 
2/23/2006 4:03:27 AMThabo

Hi, Jim.
How a nice uc. 5* 2 u
I've problem with ur control that i can't access the button in the chevron area. I used W'XP SP.24 VB'6 SP6. Tx
(If this comment was disrespectful, please report it.)

 
2/23/2006 4:19:11 AMAndrew M. Goncharov

Jim, can you describe what are your Chevrons for? How to use them if they`re hide on MouseMove? In MS Office, they are clickable and full functional ones.
(If this comment was disrespectful, please report it.)

 
2/23/2006 7:53:40 AMJim Jose

Andrew M. Goncharov, Chevrons will only be visible if they are needed !! When the side of uv HC is not sufficient to draw all the buttons, the rest of buttons are marked to be a chevron button(internally) and now we can see the pop button on the right side. Clicking on it will display the chev buttons in a new DC (picturebox)

Thabo: Let me chek that !! There is no problem for me. May be its a width issue. Try changing the width!!

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

 
2/26/2006 7:24:27 AMxpert

Can anyone that has Windows 98 SE tell me if VB6 crashed (or not) when closing the demo? I have that problem.
Apparently the terminating process of the control could be unstable on that OS...
(If this comment was disrespectful, please report it.)

 
2/26/2006 10:18:23 PMThabo

Hi Jim, meet U again.
My problem is same with Andrew M. Goncharov'problem. When we clicked the chevron sign, the button in chevron will appear but unclicklable so not function properly. Tx for ur assist.
(If this comment was disrespectful, please report it.)

 
3/1/2006 4:08:51 AMSikLife

Nice man... I have a few questions if you have the time hit me up also maybe if you would be instrested in a group projects, anyways, Aim via @ iL MyStiCaL / Yahoo via SickMindProductions
(If this comment was disrespectful, please report it.)

 
3/26/2006 5:36:03 PMSnerf

Is it just me, or if you align the toolbar to the left or right, it draws like its still aligned to the top/bottom, it does not go vertical.
(If this comment was disrespectful, please report it.)

 
5/14/2006 4:30:16 AMrudz

Really nice, easy to use and looks very good :) *x5 from me
(If this comment was disrespectful, please report it.)

 
5/15/2006 11:52:36 PMkbhrx

superb work, thanks alot for sharing
(If this comment was disrespectful, please report it.)

 
7/23/2006 3:33:57 PMelan

Excellent,easy to use and looks very good
(If this comment was disrespectful, please report it.)

 
8/17/2006 2:12:04 AMlhc

it is a good toolbar, but i want to know how to change the buttonicon when the program run(just click a command button,and the mctoolbar's buttonicon can be change a other icon)
(If this comment was disrespectful, please report it.)

 
2/15/2007 9:25:56 PMJason Newland

Jim, this control version works a hell of a lot better than your first submitted one. The first one had redraw problems when i added a timer to "flash" the icon on a particular button (to get the users attention) it would flicker. Also, I didn't like the fact that the button had no other option than transparent. Now, you seem to have outdone yourself and fixed what I wanted in the first place. Great control, great coding. 5 globes to you :)
(If this comment was disrespectful, please report it.)

 
2/15/2007 9:33:00 PMJason Newland

snerf: I had the same problem but I found if in the UC resize part if you remark ' out these lines:

If m_BorderStyle = BDR_None Then
Height = m_ButtonsHeight * ((m_Button_Count - 1) \ m_ButtonsPerRow + 1) * Screen.TwipsPerPixelY
Else
Height = (m_ButtonsHeight * ((m_Button_Count - 1) \ m_ButtonsPerRow + 1) + 7) * Screen.TwipsPerPixelY
End If

then it resizes and shows the background area correctly when aligned left or right.

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

 
10/4/2007 7:56:04 AMJason Newland

Also, Jim, another note, you removed the WarpSize property from the control and i liked that property when you set the button width, it auto adjusts the toolbar width to the edge of the button (if buttons per row is 1 and alignment is left or right). I added it from your old version. Maybe add it back in as an option with the default property of False?
(If this comment was disrespectful, please report it.)

 
10/10/2007 11:46:31 AMBrent

Nice toolbar. Could use some tweaking for MDI.
(If this comment was disrespectful, please report it.)

 
4/7/2010 11:16:03 AMThong Nguyen

I dont know use Unicode caption of McToolbar. How? I'm Vietnamese. Can you help me!
(If this comment was disrespectful, please report it.)

 
12/29/2011 8:26:22 PMIt learner

Wow great wonderful excellent control.
5stars from me for this.
But i am getting problem while working with this. When i assign an 16*16 icon for its button. The icon is looking too much big.
How can i solve this?
Plz help me if you know. Thanks
(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.