Important alert: (current site time 7/16/2013 2:43:52 AM EDT)
 

winzip icon

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

Email
Submitted on: 9/17/2005 12:03:06 PM
By: Fred.cpp  
Level: Advanced
User Rating: By 74 Users
Compatibility: VB 6.0
Views: 44663
author picture
(About the author)
 
     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

 
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 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
7/2/2005 9:26:00 PMFred.cpp

Please comment. Also If you did a
Bugfix, or implemented new features to
the 3.0 version, send It to me to add
It to the oficial release.
(If this comment was disrespectful, please report it.)

 
7/2/2005 9:44:31 PMMatthew R. Usner

Hi Fred, it said in the comments you were having some trouble with Default and Cancel properties... I think I ran into issues with those in my MorphButton also so I'll compare the two. In the meantime, 5 from me, I've seen your earlier version and can only assume this is even better. I'll get back to you if I spot anything...
(If this comment was disrespectful, please report it.)

 
7/2/2005 11:18:21 PMHeriberto Mantilla Santamaria

Hi fred.cpp, amo este control, gracias por desarrollarlo.

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

 
7/3/2005 2:46:36 AMPhantom Man

Nothing To Say, The Code Speaks For It's Self.

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

 
7/3/2005 3:47:37 AMKelly S. Ethridge

Good job, Fred. One of the quality controls I keep handy.
(If this comment was disrespectful, please report it.)

 
7/3/2005 4:49:50 AMwhoknows

thanks.. for the update :)))))))))))
(If this comment was disrespectful, please report it.)

 
7/3/2005 6:14:51 AMRiccardo Cohen

Nice control, thanks for sharing. Only two things noticed:
1. MouseDown + Mouse Out = doesn't redraw a 'button up'.
2. Picture: when aligning, the picture turns black. (I used the ComboBox within the code)
(If this comment was disrespectful, please report it.)

 
7/3/2005 6:16:42 AMRiccardo Cohen

Btw... 5 globes from me also!
(If this comment was disrespectful, please report it.)

 
7/3/2005 7:02:24 AMNemanja Miljkovic

I can't download

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

 
7/3/2005 7:03:15 AMNemanja Miljkovic

It Says, "HTTP 500 Internal Server error"
(If this comment was disrespectful, please report it.)

 
7/3/2005 7:17:33 AMTerriTop

Holly cow! Fred, You did it again... Nice update, and thanks for the DIB support, as this will help me a ton!!!

5 Huge Ones from me!!

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

 
7/3/2005 8:59:52 AMDana Seaman_

5 ***** Globes. Add this to Private Function DrawTheme to automatically set region for Themed Buttons with rounded corners:

lResult = GetThemeBackgroundRegion(hTheme, UserControl.hdc, iPart, iState, m_btnRect, hRgn)
SetWindowRgn hwnd, hRgn, True
' free the memory.
DeleteObject hRgn

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

 
7/3/2005 10:23:38 AMCarles P.V.

Hi Fred. 5 globes! // Some suggestions: 1) process WM_SETFOCUS and WM_KILLFOCUS instead of using built-in usercontrol focus events (also set both UC-back-pictureboxes to not-visible or tabstop=false). 2) Cancel-Default: the problem comes from lPrevButton flag initial state. 3) Grey-value: use next formula (integer calcs.) Grey = (299&*R+587&*G+114*B)\1000. 4) Use SetPixelV instead of SetPixel.
(If this comment was disrespectful, please report it.)

 
7/3/2005 11:10:04 AMMatthew R. Usner

OK, so Carles beat me to it... :-)

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

 
7/3/2005 11:58:07 AMFred.cpp

So many thanks for the comments :)
I was waithing for the tips in the problems I haven't solved, I'm working on the bugs and Improvements

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

 
7/3/2005 2:45:18 PMFred.cpp

I found a bug, When using a BMP as icon and set the icon align different from left the image is black. I'm also working on It.
(If this comment was disrespectful, please report it.)

 
7/3/2005 3:19:04 PMRichard Mewett

Fred, a great button control. Well coded & clean in operation. 5*
(If this comment was disrespectful, please report it.)

 
7/3/2005 3:35:41 PM_Merlin_

I used the previous version. I really liked that one. I'm quite sure I will like this one also. But... I'm going to wait a little to download until you solved some of the mentioned bugs ;)
In the mean time I'm going to give you 5 balls for encouraging you in working on the thing.

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

 
7/3/2005 4:32:00 PMJim Jose

Hi Fred,

You did an excellent job here. I realy like ur tooltip generation code. Thats too simple and accurate. You got 5 big stars from me.

Guys, take a look!! on procedures DrawMacOSXButtonHot/Norma/Pressed. A tough and time seeking work there.


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

 
7/3/2005 4:38:42 PMFred.cpp

Thanks Merlin and Jim.
Jim, I wrote a "miniprogram" to Generate the code, It was the easier way I found (Easier to think, of course).
I've been thinking on Build a Image coded In a different way: a array of Bytes and later Use SetDibBits or somethins faster.
For now, I'm workinf on functionality I'll work later on Speed.
Best Regards
(If this comment was disrespectful, please report it.)

 
7/3/2005 4:38:42 PMJim Jose

Fred,

I can't find any use for the structures TRIVERTEX, GRADIENT_RECT, GRADIENT_TRIANGLE... ,Enums GRADIENT_FILL_RECT, GRADIENT_TO_CORNER, CRADIENT_DIRECTION... the dependant constants.

I think everything related to 'Gradient Fill' remains undeleted except the 'GradientFill' API.
(If this comment was disrespectful, please report it.)

 
7/3/2005 4:59:43 PMFred.cpp

Someone told me recently there are too much api call's structures (I mean type definitions) and routines that haven't been used. Some are of previous implementations I've discarded for speed, compatibility or quality. the gradient stuff was discarded to gice Win98 Users the posibility yo use witout any problem. Anyway a Deep Code Clean up Is missing (Also a desktop clean up is missing at home:))
(If this comment was disrespectful, please report it.)

 
7/3/2005 7:10:43 PMAbhishek.NET

i there, how are you, i hope fine!. weel, long time no see. are you still interested in the explorerbar projects we talked about. bye, abhishek
(If this comment was disrespectful, please report it.)

 
7/3/2005 11:52:20 PMBroken Arrow

Fred, thanks for the OCX version release, I was begging for it :)) How many balls do you want (of course not god gifteds :)))?
(If this comment was disrespectful, please report it.)

 
7/4/2005 12:44:19 AMRusman Indradi

thank fred for notice me to email for update new isButton 3.4 great 5 globe for me :-)
(If this comment was disrespectful, please report it.)

 
7/4/2005 12:46:13 AMdvrdsr

Nice addition Fred you have my 5 globes

I really like your button control :)
(If this comment was disrespectful, please report it.)

 
7/4/2005 12:47:03 AMFred.cpp

Abishek, I want to, Also I'm next to finish my so long work (this is a vacation week I was dedicating to isButton again)
I hope (really really hope) go on With isExpBar
Broken Arrow, give one ball for each visitor to this page :) (someting like 750? :) )
(If this comment was disrespectful, please report it.)

 
7/4/2005 12:49:20 AMFred.cpp

Thanks Rusman Indradi;
dvrdsr, Thanks, since your improvements helped me a lot :D
(If this comment was disrespectful, please report it.)

 
7/4/2005 12:51:57 AMFred.cpp

I bet I'll fix the tittle, since It wasn't the final update :) Thanks to all those who have send me improvements to the source, all you will see your name In the credits :)
(If this comment was disrespectful, please report it.)

 
7/4/2005 3:46:57 AMAJ Hill

Beautiful piece of code - I've been wanting to tinker with user controls and between this and LaVolpe's submissions there's a wonderful set of examples to work from. 5* and looking forward to seeing where this grows to :)
(If this comment was disrespectful, please report it.)

 
7/4/2005 4:44:29 AMdung

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

 
7/4/2005 5:38:23 AMbombdrop

Excellent work this is the type of code PSC is about
(If this comment was disrespectful, please report it.)

 
7/4/2005 2:14:10 PMFred.cpp

thanks for the kind comments. Wait for a update the next hours
(If this comment was disrespectful, please report it.)

 
7/4/2005 3:21:38 PMHeriberto Mantilla Santamaria

Hi again fred, I forgot to tell you the screenshot is genial.
(If this comment was disrespectful, please report it.)

 
7/4/2005 6:02:23 PMlvlhed

absolutely fantastic! however, i can only give 5 globes... wish it were more!
(If this comment was disrespectful, please report it.)

 
7/4/2005 9:03:22 PMFred.cpp

Aldo Vargas has been Kind Enough to clean up the code and fix some bugs, I'm updating all the bugFixes I was already made to the code, so The update has been delayed a few hours more, but will fix hopefully all the recently reported Bugs.
(If this comment was disrespectful, please report it.)

 
7/5/2005 2:26:01 AMFred.cpp

Ok, a Update has been released. I'll update the ocx tomorrow, for now I go to Sleep.
Special Thanks to Aldo Vargas, Ana Seaman, teee_eeee and all those who have send me bugfixes, bug reports, and donations (kidding).
(If this comment was disrespectful, please report it.)

 
7/5/2005 4:47:05 AMRiccardo Cohen

Nice Fixes. Thx! But one remains (not a bug, just a suggestion):
Click IsButton and while holding mouse button down + move mouse out of the IsButton Area. This results no IsButton-Up Redraw of the button, like other buttons (f.e. Vb-CommandButton). Because this control rocks, I thought this might be pretty!

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

 
7/5/2005 5:31:59 AMRiccardo Cohen

It could be me, but change cmdArray()'s to style MacOsX and look at the second button "cmdArray(2)". You can see black dots: Upper Right/Left outsite button area and within button right/left of the Caption. Succes! ;)
(If this comment was disrespectful, please report it.)

 
7/5/2005 8:10:12 AMFred.cpp

You Are Right. I made a smal test about the firs problem, and the subclassing doesn't seem to fire a WM_XXX message, so I Bet I'll have to check It out with some extra code.
About the black Dots in MacOSX Style Is Right. you can reproduce the bug setting the style to MSOXP ant then, set the style to Mac OSX. This bug Is because some dots are missing (the white ones). I Still need to rewrite that code, but as I SAid BEfore, first Functionality ;)
(If this comment was disrespectful, please report it.)

 
7/5/2005 11:18:10 AMAnders Lyman

I fixed the Cancel/Default problem, email me (anderslyman@yahoo.com) if you haven't figured it out and I will send you the code to fix it with.
(If this comment was disrespectful, please report it.)

 
7/5/2005 11:36:32 AMFred.cpp

I've updated the screenshot to show some changes. Thanks fo everyone for the support :)
(If this comment was disrespectful, please report it.)

 
7/5/2005 2:09:09 PMAnibal Sarasua

XP Icons support no?, i search for a command button with this support
(If this comment was disrespectful, please report it.)

 
7/5/2005 3:31:01 PMTerriTop

Very Cool! Thanks for providing support for DIB's...in all positions
;-) Have another 5 from me!

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

 
7/5/2005 8:12:39 PMHeriberto Mantilla Santamaria

Wow fred, the comment about of your control are really great.

You have a contents winner again.
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:51:50 AMDana Seaman_

Minor bug. Some XP Themes use a Theme Forecolor when drawing stateHot text so you need to use UxTheme DrawThemeText API to solve this issue.

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

 
7/6/2005 7:24:22 AMFred.cpp

That's right. I'll add a property to tell the control If the text should be drawn with the Theme API or the DrawText API.
Another update Is needed...
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:25:45 PMRoni Sapojnic

Fred!
This is the BEST control I've used!
Good Work!

Some time ago I asked you do add the RightToLeft Property to the Control...
I see it's not in this version...
Can you add it?

Thanks ;-)
And again, Fantastic Work!
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:34:33 PMFred.cpp

Hi Roni!
I was waithing for requests :)
I remember, I wonder If There was a internal version that had the feature? If not, I'll implement It
Best Regards
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:40:43 PMFred.cpp

Roni, I found the e-mails and the specifications about the code, The property will be Included In the next release (tomorrow?)
Regards
(If this comment was disrespectful, please report it.)

 
7/6/2005 4:41:45 PMRichard Mewett

Fred, congratulations on the votes & good work on the updates!
(If this comment was disrespectful, please report it.)

 
7/8/2005 1:52:10 PMFred.cpp

The update has been delayed, but just a few hours. Thanks for the support and contributions:D
(If this comment was disrespectful, please report it.)

 
7/9/2005 12:44:03 AMRuturaaj

Now, this has evolved like a diamond ! I give you 5 diamonds in return though

:-)

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

 
7/9/2005 11:01:15 AMLaVolpe

Looks like you want to continue with this project. If I can help, email me, as I've probably been where you will be going. P.S. Noticed comments about freeing region after call to SetWindowRgn: that is a no-no per MSDN. Once SetWindowRgn is called, Windows owns the region & you should not be deleting it or using it thereafter (without call to GetWindowRgn). Just FYI.
(If this comment was disrespectful, please report it.)

 
7/9/2005 1:37:14 PMFred.cpp

Looks like I've been doing nice things, since The masters have wrote comments:) Thanks LaVolpe, Of course I'm Mailing you:)
(If this comment was disrespectful, please report it.)

 
7/10/2005 2:24:48 PMLibor Blaheta

Hi, does isButton support Unicode?
(If this comment was disrespectful, please report it.)

 
7/10/2005 4:57:50 PMFred.cpp

Libor Blaheta, I've mailed you a screenshot using this feature, But I'm not sure If It's fully supported (It's hard to me to test), but see the screenshot and tell me.
(If this comment was disrespectful, please report it.)

 
7/11/2005 9:03:40 AMLibor Blaheta

Thanks, the screenshot you sent me looks well. To test Unicode set isButtons's font to "Arial Unicode MS" and then set its Caption to some exotic char (like ChrW(50000))
(If this comment was disrespectful, please report it.)

 
7/13/2005 4:00:22 AMArindam Basu

Excellent. Neat and clean. Project runs and demonstrates the functionality smoothly.
(If this comment was disrespectful, please report it.)

 
7/13/2005 9:52:06 PMFred.cpp

My Health has been not so good, sorry for the delay to upload updates. As soon as I can I'll update the small bugs have been reported. Again Thanks for the support.
(If this comment was disrespectful, please report it.)

 
7/28/2005 4:08:38 PMLibor Blaheta

Hi, could you tell me when are you going to release the next version?
(If this comment was disrespectful, please report it.)

 
7/29/2005 2:04:28 AMFred.cpp

Update Date: 2005/7/30 :)
(If this comment was disrespectful, please report it.)

 
7/29/2005 10:50:32 PMFred.cpp

2 hours before I've uploaded the update :)
feedback is wellcome. As you can read in the post, I've fixed almost everything was pending, Including the text align bug and some others (See credits for contributors)
Thanks for the comments and votes :D
(If this comment was disrespectful, please report it.)

 
7/29/2005 11:03:27 PMFred.cpp

updated :) see post to find what's new since version 3.5.0
(If this comment was disrespectful, please report it.)

 
8/1/2005 10:28:26 PMThief_

Top 5 stars to you Fred on another QUALITY release.
(If this comment was disrespectful, please report it.)

 
8/3/2005 11:53:22 AMRichard Mewett

Well done Fred - another COTM!
(If this comment was disrespectful, please report it.)

 
8/3/2005 2:54:27 PMFred.cpp

Thannks Richard :D
One more time for México :D
Also, congratulations for your control:D
(If this comment was disrespectful, please report it.)

 
8/14/2005 4:24:12 PMXeon Productions

I like this button control. It's pretty cool, has alot of styles.
(If this comment was disrespectful, please report it.)

 
8/17/2005 4:32:26 PMSchmendrick

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

 
8/20/2005 7:14:59 PMHardStream Software Development

Once again you have written a cool thing! I can't do anything but giving you 5 more globes (again :P)
(If this comment was disrespectful, please report it.)

 
8/22/2005 11:46:15 AMSchmendrick

What am I doing wrong? When replacing the normal buttons on my forms, everything went great till the 5th form, now, whenever I save the project, the buttons on that form loose all their properties.
(If this comment was disrespectful, please report it.)

 
8/24/2005 8:36:59 AMdrp

FWIW, I created my own V3.6.2 of this button as I needed to specify offsets for the icon and the text. Mail me if you're interested in this very minor update.
(If this comment was disrespectful, please report it.)

 
8/25/2005 12:03:46 AMichirolu

The isButton is a excellent usercontrol!!!But it works wrong when I use isButton 3.6.1 to show chinese word caption!!....However,it works correct when I use isButton 3.0 to show chinese word!!.... Fred~How to use isButton 3.6.1 to show chinese word caption??? Thanks your sharing~~ :)
(If this comment was disrespectful, please report it.)

 
8/28/2005 1:30:13 PMVictor

Muy bueno, muy bueno, muy bueno. Sólamente una cosita: ¿Sería posible disponer del fichero ocx? Gracias de todas formas.
(If this comment was disrespectful, please report it.)

 
8/28/2005 2:51:34 PMFred.cpp

About the Chinese Characters in the newest Version, I don't remember have changed anything, but I'll check out.
About the ocx Version, I'll build It and Upload to my page.
(If this comment was disrespectful, please report it.)

 
9/1/2005 10:46:36 PMPaul Turcksin

Silent admiration, anything else is inappropriate.
(If this comment was disrespectful, please report it.)

 
9/13/2005 5:38:48 PMVictor

He estado probando el control y funciona muy bien, pero he detectado que cuando introduzco algo en la propiedad tooltiptext, al cerrar visual basic y volver a editar el proyecto, la propiedad aparece en blanco. Sin embargo, he editado el fichero .frm con un editor de texto y en la propiedad tooltiptext del control, aparece el textgo bien, pero en visual basic no sale. ¿Es esto normal, estoy haciendo algo no del todo bien? Gracias por adelantado.
(If this comment was disrespectful, please report it.)

 
9/17/2005 11:45:20 AMFred.cpp

victor, no se porque sea ese problema, aveces me ha pasado tambien, pero no he encontrado una razon aparente. si te parece mas sencillo, trata de establecer las propiedades en tiempo de ejecucion.
saludos.
(If this comment was disrespectful, please report it.)

 
9/17/2005 11:46:07 AMFred.cpp

I made a small update. fixing a bug, where fast clicks returned only one and not two clicks.
Also I've buld the ocx, but I can't upload to my page, the hosting service has some problems. I'll update As son as I can.
(If this comment was disrespectful, please report it.)

 
9/18/2005 1:49:03 AMBroken Arrow

DDDEEEFFFAAAUUULLLTTT/CCCAAANNNCCCEEELLL PPPRRROOOPPPEEERRRTTTIIIEEESSS!!!
(If this comment was disrespectful, please report it.)

 
9/18/2005 6:42:13 AMAngelito

great job, my vb enterprise crash when i close it .. 5 for me .. great coding there .. but a few fixes is needed ..
(If this comment was disrespectful, please report it.)

 
9/24/2005 7:42:13 AMAbhishek.NET

i think i have find a bug,
Bug: The Style Reset Bug

1. Create an app with your button on the form under XP Luna theme. and set property (Style = 6 - isbWindowsTheme)
2. Close the Project
3. Switch to Window Classic Theme
4. Open the project, and notice that the button style property is now (6 - isbWindowsTheme) and web can't set the style to (6 - isbWindowsTheme) if we are using the classsic theme

also see this http://img399.imageshack.us/img399/6533/fredbutton0wu.jpg
(If this comment was disrespectful, please report it.)

 
9/26/2005 2:46:12 AMTuanHai

great effort!

Could you pls update with Unicode support feature like this button: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=61530&lngWId=1
And
there is 1 bug: When I use CodeSmart, it always show a window before draw 1 button on the form. The IsButton is not draw yet on the form, and then I close that window, the button not refresh.

See the bug here: http://n.1asphost.com/sksvn/downloads/Bug.JPG
(If this comment was disrespectful, please report it.)

 
9/30/2005 4:15:26 PMN_E_0

Great control!
Can you make it work good in IDE mode too?
Thank you.
(If this comment was disrespectful, please report it.)

 
10/15/2005 2:25:17 PM_Merlin_

Good update Fred. I have a question though. In some projects I use the Lavolpe button, in others I use yours. In some projects I've used both of them. I use the LaVolpe button because it has the ability to make it have diagonal sides (left/right/both).
This is handy for putting two or more buttons next to each other to give it a nice effect.
Can you do the same with your button? If so, how? I would like to use only one button control in my projects. Now I use two of them because they both have other possibilities, but if they are to have the same look, eg Win-XP, they still look different. I would like to eliminate that. So would it be possible to have diagonal sides and how to do so?
Many thanks for a great control.

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

 
12/13/2005 8:01:46 PMOption Explicit

In reference to Merlin's question regarding diagonal sided buttons, check LaVolpe's Shaped Region submission at:

http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=58562&lngWId=1

It
can definitely help.
(If this comment was disrespectful, please report it.)

 
1/17/2006 9:40:44 PMahmed elsheshtawy

Well Done, you got 5A++
(If this comment was disrespectful, please report it.)

 
6/2/2006 3:10:02 AMalbatros

sorry, i'm very late with my voting, and with my issue.
this little programm doesn't work with windows 2003. do you have any ideas?


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

 
7/15/2006 6:37:39 AMDinendra

Greate Control
Noticed one big problem...
Alternate Key not fired
Can someone please help me to solve this problem. I tried but failed
(If this comment was disrespectful, please report it.)

 
8/27/2006 6:11:37 AMRob C

It's a 5

I have one problem.
If I attempt to copy a Form (containing isButtons) into another Project, the buttons do not copy across.
Anyone else noticed this ?
Am I doing something wrong ?

This is some of the lines from the error log file -

Line 34: Class isButtonTest.isButton of control cmdOK was not a loaded control class.
Line 63: Class isButtonTest.isButton of control cmdCancel was not a loaded control class.
Line 35: The property name Default in cmdOK is invalid.
Line 41: The property name _ExtentX in cmdOK is invalid.
Line 42: The property name _ExtentY in cmdOK is invalid.
(If this comment was disrespectful, please report it.)

 
10/20/2006 11:36:52 PMRob C

I would like the ability to detect right mouse button click.
This control does not appear to have a mouse up event.
I tried using the GetKeyState API, but this control appears to ignore any click but a Left click.
Does anyone have a solution ?

(Apart from that, it is a great control)
(If this comment was disrespectful, please report it.)

 
11/26/2006 9:40:23 PMKadRoj

Buen trabajo Fredd, igual el blog esta muy interesante. Saludos desde Panamá.
(If this comment was disrespectful, please report it.)

 
5/5/2007 8:56:16 AMVahid

very good code. I use it many times and its greate. but tooltiptext property is not saved properly.
(If this comment was disrespectful, please report it.)

 
5/29/2007 9:06:42 AMMartin

Great work!!, but I have one problem...How Can I avoid to have those white edges when using Mac Os X Style?
(If this comment was disrespectful, please report it.)

 
2/2/2008 6:37:16 AMGazmend Hoxha

Got my 5 globes dude
(If this comment was disrespectful, please report it.)

 
10/10/2008 11:56:16 AMMr Toledo

Great code, tks for share. Five stars for you.
(If this comment was disrespectful, please report it.)

 
11/16/2008 3:54:48 PMRobert Onutor

Hi

can you make this button an ocx data

thanks a lot
(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.