winzip icon

isButton 3.6.2 the multi style button Updated 2005-9-16

Email
Submitted on: 2/12/2015 4:36:00 PM
By: Fred.cpp (from psc cd)  
Level: Advanced
User Rating: By 74 Users
Compatibility: VB 6.0
Views: 5349
 
     isButton is an award winner button; is a single file usercontrol with various visual styles and with custom properties like text align, icon align, custom tooltips, and customizable colors. This (hopefully) final update fixes the annoying bugs the version 3.0 had. Uses Paul Caton's self subclassing method. Grayscaled Icons when Disabled were added (thanks to Dennis (dvrdsr)) I Implemented also this feature for BMP Images used as icons, UseMaskColor and Mask color. Comments (and why not? votes) are wellcome. There is a ocx version on my home page ( http://mx.geocities.com/fred_cpp ) at the programming section. ************************************************************** Version 3.4.1 - Changes: Fixed Black BMP's when align <> Right; Removed picturebox pMask for temporal drawing(By teee_eeee); Support for custom Shapes By theme (Thanks to Dana Seaman) ************************************************************** Version 3.4.2 - Changes: Code Clean Up and Now Working Default and Cancel properties, Error Handling in all routines, fixed Keyboard events (All Done by Aldo Vargas) ************************************************************** Version 3.5.0 - Changes: Added Multiline Support For caption,Corrected Java Rects Added Custom Offset for text and Icons for each Style ************************************************************** 2005-7-20 / Version 3.5.1 Added RightToLeft property (Still testing) ************************************************************** 2005-7-28 / Version 3.6.0 Fixed CaptionAlign, Added Space Bar Support (Thanks to Jiri Novotny) Now hover button doesn't bring to front the parent form :) ************************************************************** 2005-7-29 / Version 3.6.1 Code Clean up! RightToLeft fixed? Last Update: 2005-7-39 ************************************************************** 2005-7-29 / Version 3.6.2 A Fast Click detection bug Fixed. Last Update: 2005-9-16

 

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 :isButton 3.6.2 the multi style button Updated 2005-9-16
'**************************************
Tons
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


Other 11 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

12/5/2015 3:27:48 AMRob

I have problems on Windows Server 2008 R2 Standard SP1 (64bit)
Your sample project crashes
Also my project which uses your User Control. My project crashes before the Form_Load sub has a chance to execute)
(If this comment was disrespectful, please report it.)

 
2/3/2017 8:48:33 PMEddie Bole

Could I use this button in the programs that I upload to Planet VB? I have been wanting to display better buttons instead of the standard ones.
(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.