Important alert: (current site time 5/18/2013 10:29:17 PM EDT)
 

winzip icon

API-ucToolbar 3.1

Email
Submitted on: 10/16/2004 2:20:21 PM
By: Carles P.V. 
Level: Intermediate
User Rating: By 19 Users
Compatibility: VB 6.0
Views: 11857
 
     ucToolbar version 3.1 (API). // Update 10/17: AddBitmap() and AddIcon() methods. // Fixed shutdown-crash when using manifest for themes (thanks to Abhishek.NET for report this). Also fixed ToolbarEnter() and ButtonEnter() events when button disabled.

 
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
10/16/2004 2:36:40 PMenmity

Fantastic! I am waiting for your Treeview control:)
(If this comment was disrespectful, please report it.)

 
10/16/2004 3:24:31 PM

Excellent submission!

Did you recieve my email regarding GIF resizing?
(If this comment was disrespectful, please report it.)

 
10/16/2004 11:19:36 PMRuturaj

Looks good. Downloading it ... I'm sure , as this is your code , must be great & must be having a lot of things to learn for me ...
(If this comment was disrespectful, please report it.)

 
10/17/2004 4:56:07 AMPhantom Man

Nice Update Carles.

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

 
10/17/2004 6:41:45 AMLight Templer

Hi Carles,
looks fine, is small, self-contained and (as usual ;) ) a professional code style.
Personly I prefer an icon image solution without an resource file to have visual feedback during development without compiling the app, but thats not important.
My ***** from me and regards - LiTe

btw:One question: I cannot get this fine drop shaddow seen on your screenshot with Win98 ... On W2K and higher only ?
(If this comment was disrespectful, please report it.)

 
10/17/2004 6:53:19 AMenmity

I think it is winxp & win2k3
(If this comment was disrespectful, please report it.)

 
10/17/2004 11:18:35 AMCarles P.V.

Thank you all :-)

To Light T.: Yes, you are right: it's a little annoying. I've added AddBitmap() and AddIcon() methods. Now, images are directly managed through toolbar imagelist, avoiding to compile. I've not tested it, but imagelist is initialized for supporting alpha. // About shadow... yes, I'm running XP :-)
(If this comment was disrespectful, please report it.)

 
10/17/2004 3:15:11 PMAbhishek.NET

when using the usercontrol dicrectly in exe and using manifest for themes, it will crash on unload. solutuion to this problem is available at vbaccelerator.

5 Globes for Me!
(If this comment was disrespectful, please report it.)

 
10/17/2004 4:02:31 PMCarles P.V.

Thanks for report. I've updated zip.
(If this comment was disrespectful, please report it.)

 
10/17/2004 4:02:55 PMCarles P.V.

... and thanks for vote :-)
(If this comment was disrespectful, please report it.)

 
10/17/2004 4:09:25 PMCarles P.V.

One note about alpha: correct rendering of alpha icons is not done by default. I've tested it adding 32-bit icons, but rendering is far to finish with desired results. So, I suppose that custom drawn is necessary (respond to NM_CUSTOMDRAW notification, etc, etc.)
(If this comment was disrespectful, please report it.)

 
10/17/2004 4:10:39 PMCarles P.V.

So, sorry: alpha not supported.
(If this comment was disrespectful, please report it.)

 
10/19/2004 1:36:47 PM

This toolbar is great, but if u resize the form (less large), a real toolbar don't hide buttons like this, a real toolbar split for going at line(s) (all buttons are always visibles). Hope my English is enough lol, i am not really sure.
;-)
(If this comment was disrespectful, please report it.)

 
10/24/2004 4:01:36 PMThorben Linneweber

xp-style plz...
(If this comment was disrespectful, please report it.)

 
10/24/2004 4:02:24 PMThorben Linneweber

wow its really good!!!
(If this comment was disrespectful, please report it.)

 
11/28/2004 10:46:35 PMShiJIZe

The TipText always show 'T" in Windows 2000.
(If this comment was disrespectful, please report it.)

 
11/29/2004 1:30:18 AMCarles P.V.

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

 
12/16/2004 4:45:51 PMAbhishek.NET

i was trying your toolbar on Windows ME (clean version, IE5.5) on Microsft Virtual PC 2004, the toolbar does not even appears. no toolbar and neither any errors. but works fine on XP
(If this comment was disrespectful, please report it.)

 
12/18/2004 10:43:30 AMPetko Petkov

Great code.
One small problem. Aligns Left and Right not work how I expect – put buttons from top to bottom . For this 4. For the rest 6.

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

 
1/26/2006 10:41:51 PMJim Jones

Excellent toolbar control. Nice and lightweight. Will you be adding XP style? If not how could I go about doing so?
(If this comment was disrespectful, please report it.)

 
7/28/2006 3:15:07 AMxiaohai

The tooltips has bug!!!
(If this comment was disrespectful, please report it.)

 
8/1/2006 7:41:29 AMxiaohai

THX,but the tooltips has bug!!!
(If this comment was disrespectful, please report it.)

 
4/2/2009 7:50:36 PMEren Okka

To fix the tooltip bug: Create a new public string variable in a module, for example sTooltipBuffer. Open ucToolbar's zSubclass_Proc sub, and look for TTN_GETDISPINFO notification. Add "sTooltipBuffer = StrConv(m_sTipText(uNMHDR.idfrom), vbFromUnicode)" before the first CopyMemory call, and change the line between two CopyMemory calls to "uNMTTDI.lpszText = StrPtr(sTooltipBuffer)".
(If this comment was disrespectful, please report it.)

 
8/14/2009 12:25:46 AMBagus

Thx, clear direction make the tooltip working now. 5globe from me.
(If this comment was disrespectful, please report it.)

 
7/28/2010 8:06:55 AMRob C

I am running XP Pro SP3
It runs ok from IDE (and looks great)
IF I make Test.exe and run it, it gives the crash sound, and nothing appears.
(If this comment was disrespectful, please report it.)

 
2/8/2011 7:25:54 PMUFO

Rob C
accompaniment mod_XPStyle_Resource.bas

and

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
'Call ManifestWrite(False)
Call EndApp(Me)
Set fTest = Nothing
End Sub
(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.