Important alert: (current site time 7/16/2013 3:05:11 AM EDT)
 

winzip icon

CHAMELEON BUTTON 2.0.6 B - the best command button ever strikes back! (UPDATED, BRANCH)

Email
Submitted on: 8/1/2002 12:18:34 AM
By: gonchuki_  
Level: Advanced
User Rating: By 145 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 85488
(About the author)
 
     THE GREAT CHAMELEON BUTTON STRIKES BACK!!! THIS TIME WITH LOADS OF NEW FEATURES ADDED! IT NOW HAS 13 DIFFERENT BUTTON STYLES, SUPPORTS PICTURES, FONT EFFECTS AND MUCH MORE! SEVERAL BUGS HAVE BEEN CORRECTED AND A LOT OF FIXES WERE DONE TO THE CODE. ONCE YOU TRY IT, YOU WILL NEVER WANT ANYTHING ELSE THAN THIS! ADD STYLE TO YOUR APPLICATIONS, ADD VALUE TO THEM, BUILD MARVELOUS USER INTERFACES AND IMPRESS THE USERS OF YOUR PROGRAM. HAVE FUN!!! UPDATE: Some bugs/flaws fixed in ver 2.0.5 & 2.0.6 JUNE 08, 2003 >> A BRANCHED VERSION HAS BEEN POSTED TO FIX SOME CRITICAL BUGS, THIS IS STILL FOR NO COMMERCIAL USE. MORE INFO AT http://gonchuki.8m.com

 
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 5 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/1/2002 2:56:18 AMAl

Loved your last submission and this makes it even better.
GREAT work mate! 5 Stars
(If this comment was disrespectful, please report it.)

 
8/1/2002 3:24:57 AMThushan Fernando

awesome work... please read teh email I sent you regarding some 'legal' matters;)
(If this comment was disrespectful, please report it.)

 
8/1/2002 4:31:59 AMSteve

5 globes from me... However, you might improve this:

When you set a button's CheckBoxBehaviour to 'True' and change the value of the button by code, the button does not reflect the changed state - you must move to mouse over the button in order to refresh its value:

Example:

Create a button (TestButton1) with CheckBoxBehaviour=True

Create another button (TestButton2) and include this code to the button's click event:

if TestButton1.Value=true then TestButton1.Value=false else TestButton1.Value=true

You'll see that TestButton1 does not update to show the changed value ...

You should improve the code in order to use 2 or more 'CheckBox' buttons which are linked to each other's value ...

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

 
8/1/2002 4:33:28 AMJoe

Excellent button, keep up the good work!!
(If this comment was disrespectful, please report it.)

 
8/1/2002 4:38:34 AMCarles P.V.

Qué podría decir sino excelente?

Por supuesto puedes decir con toda seguridad y tranquilidad que se trata del mejor 'command button'.

Great work.

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

 
8/1/2002 5:01:54 AMShaDoWsToRmEr

Contact me at shadowstormer@hotmail.com
(If this comment was disrespectful, please report it.)

 
8/1/2002 7:40:58 AMclaude

Excellent work. Can I use your work in my application ? and how ? In my project vb, how I can do to apply the files included in the zip ? thanks.
(If this comment was disrespectful, please report it.)

 
8/1/2002 11:07:16 AMuZiGuLa

hi everyone
i tried with the test of steve (two check box buttons)and i made this change in your control Gonchuki, the property Value:

Public Property Let Value(ByVal newValue As Boolean)
cValue = newValue
Call Redraw(0, True) 'lastStat here is te change
UserControl.Refresh
PropertyChanged "VALUE"
RaiseEvent Click

well, finally trigger the click event, to simulate a complete command button behavior

anyway great piece of code, five from me

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

 
8/1/2002 12:45:43 PMSteve

@uZiGuLa:

perfect - now it works as it should ...

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

 
8/1/2002 12:59:42 PMSteve

@uZiGuLa:

one additional note: remove the

RaiseEvent Click

from the "Public Property Let Value" otherwise the code might get into an endless loop ...

Steve


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

 
8/1/2002 1:27:15 PMgonchuki_r

Thanks everyone!

Specially Steve for discovering this bug that slipped out in the control... well this feature is since 2.0.2 so it's a new introduced bug.

ZIP file was updated with this and other fix.

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

 
8/1/2002 1:34:30 PMgonchuki_

Steve: i noted this problem in uZiGula's code and not included it in the patch. thx again.
(If this comment was disrespectful, please report it.)

 
8/1/2002 5:20:59 PMSteve

gonchuki:

One minor thing I do not like: when you set a button to be disabled, the picture looks really ugly ... I did not check the code, so I do not know what you actually do with the image when it's disabled, but it does not look like it's converted to greyscale ...

actually it looks like it is reduced to 2 colors, which makes it look very ugly ...

Can't you change the code to convert the image to a 'real' grayscale?

Just an idea ... that would make your control almost PERFECT!

:-)

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

 
8/1/2002 6:50:56 PMgonchuki_

Steve: i don't know what you mean with this, the disabled pictures are created on the fly using the same algorithm windows uses internally, but the way i use is faster since i do not depend upon several BitBlt calls... please specify better your problem.

The image is not greyscaled, it's monochromed and painted using a mask color to make that emboss effect.

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

 
8/2/2002 3:49:29 AMSteve

gonchuki:

you'll find a screenshot of what I mean here:

http://home.wtal.de/rlinke/example.gif

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

 
8/2/2002 10:45:50 AMPaul Caton

Seems functional, you get a *****

I only looked at the xp button as that's what interests me and I noticed that you're doing a fair bit of overdraw on the gradient you'd save a bit with...

For i = 3 To (He - 4)
DrawLine 3, i, Wi - 3, i, ...
Next

Also, unless you've a good reason not to.. I would've Set Autoredraw = False, done all my drawing into a memDC and blitted the memDC to the control hDC on the Paint event.
(If this comment was disrespectful, please report it.)

 
8/2/2002 10:48:52 AMuZiGuLa

Steve:
your right, about my bug, today i note this mistake.
thank's
Gonchuki: I think that the problem is the MaskColor Property, because if I Change the Window Color Configuration and I use maskcolor property, the efect whe the control is show enabled or disabled is ugly... i guess that steve talin about it too
(If this comment was disrespectful, please report it.)

 
8/2/2002 1:10:27 PMRoss

Great stuff: Thanks for sharing!!
(If this comment was disrespectful, please report it.)

 
8/2/2002 4:35:48 PMSteve

uZiGuLa:

Gonchuki will work on the disabled picture thingie ... he said that he will make the code grayscale pictures when a button is disabled. Currently the code just 'monochromes' them, which makes them look so ugly ...

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

 
8/2/2002 6:15:27 PMPopescu Constantin

no thing to say
5 from me
(If this comment was disrespectful, please report it.)

 
8/2/2002 7:45:52 PMEl CZAR

Buen trabajo amigo.. soy de cruzando el charco.. lastima q los contagiamos .. jeje--
salu2
amigo... uruguayo..
viva argentina
(If this comment was disrespectful, please report it.)

 
8/2/2002 10:33:55 PMgonchuki_

el problema es que les copiamos lo malo...
(If this comment was disrespectful, please report it.)

 
8/2/2002 10:41:46 PMgonchuki_

NEW UPDATE!!! TWO BUGS FIXED, THANKS AGAIN TO STEVE. XP BUTTON SHOULD NOW SHOW CORRECTLY THE DISABLED PICTURE...
(If this comment was disrespectful, please report it.)

 
8/3/2002 3:57:20 AMThushan Fernando

thanks for the update via email man! I think all developers love this control(that includes me)!

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

 
8/3/2002 3:58:12 AMSteve

gonchuki_:

YES - you did it. Now the disabled buttons look nice. Thanks for such a wonderfull control.

You're right when you say "the best command button ever" - if I could give you another 5 globes, I would ...

:-)

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

 
8/3/2002 9:01:57 AMChristopher Rouse

no thing to say
5 from me
(If this comment was disrespectful, please report it.)

 
8/3/2002 2:43:21 PMScott

What style is best for a flat hover toggle that DOES NOT have the lame dotted line from VB?

I suppose I will figure it out soon enough

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

 
8/3/2002 2:48:42 PMScott

Your not kidding....this is the best...

I would give you another 5 globes if I could

Best Button Bar None

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

 
8/3/2002 7:13:17 PMBobby A.

Sup gonchuki_

Your code is the best man keep this up yo... im lovin it and ill maybe add some new stuff too!!!
(If this comment was disrespectful, please report it.)

 
8/3/2002 11:36:49 PMDerris

Could you please send me the ocx at
ajderris@hotmail.com
I am very interested in the KDE 2 button because I run the system more than I do Windows. I have heard that KDE 3 is out.
Thanks
(If this comment was disrespectful, please report it.)

 
8/4/2002 1:55:25 AMSum1 Cool

Unquestionably out of this world!!!
I'd give it a 6 if I could.
Keep up the good work.
(If this comment was disrespectful, please report it.)

 
8/4/2002 10:31:04 AMgonchuki_

XasanSoft: you seem to be the only person that dislikes the name... and the aim of this site is not to rate names, is to rate codes... pls be polite next time or i will strike you with my chameleon fury...
(If this comment was disrespectful, please report it.)

 
8/6/2002 9:32:56 PMFred.Cpp

HAAAAAAAAAAA
Ya no voy a seguir con mi propio Command Button ( ISButton ), ya que este tiene todo lo que había pensado incluir :'( , pero felicidades está excelente por supuesto: *****
(If this comment was disrespectful, please report it.)

 
8/6/2002 10:01:43 PMFred.Cpp

I think votes like these:
* XasanSoft
* Mummy
* David Fritts
Should be deleted. Obviously they don't have Idea what is to make an ActiveX Control or Can't read what a * means: "poor". this kind of users should donwnload and test the code before vote.
(If this comment was disrespectful, please report it.)

 
8/8/2002 6:33:44 PMSebastian

Great code!! Thank you very much.
5 stars for me.
(If this comment was disrespectful, please report it.)

 
8/9/2002 7:39:36 AMOzan Yasin Dogan

Gonchuki, you did a very good job my friend, i liked your style.. Many thanks..
(If this comment was disrespectful, please report it.)

 
8/10/2002 12:14:02 PMVinchenzo

Again a quality control! Impressive! Keep up good work! 5 globes
(If this comment was disrespectful, please report it.)

 
8/11/2002 10:07:45 PMThe New iSoftware Company!

I want to help port to VB.NET. Email me.
(If this comment was disrespectful, please report it.)

 
8/11/2002 10:07:58 PMThe New iSoftware Company!

I want to help port to VB.NET. Email me, please.
(If this comment was disrespectful, please report it.)

 
8/13/2002 11:07:46 AMRonnie

Very Cool! My current favorite code example! I've been turning on all my friends to this one. I especially like the checkbox behavior 5 Stars
(If this comment was disrespectful, please report it.)

 
8/13/2002 1:21:55 PMThe New iSoftware Company!

Please tell me how you do that spec. shadow on the office xp button. Is there any api? Email.
(If this comment was disrespectful, please report it.)

 
8/13/2002 1:26:27 PMThe New iSoftware Company!

I mean the drop shadow thing. I need this badly.
(If this comment was disrespectful, please report it.)

 
8/13/2002 1:39:22 PMThe New iSoftware Company!

Sorry, but may I have the secrect color formula for the office xp?
(If this comment was disrespectful, please report it.)

 
8/13/2002 3:15:52 PMFred.Cpp

everything Is in the code ;)
(If this comment was disrespectful, please report it.)

 
8/13/2002 7:47:45 PMThe New iSoftware Company!

Its one big long chunk. I cant place it.
(If this comment was disrespectful, please report it.)

 
8/13/2002 11:24:18 PMSebastian

Ahora vi el código y está muy bueno. Felicitaciones desde Córdoba, Argentina. Tengo algunas preguntas para hacerte sobre él, legales y técnicas. Tenés algun problema de contestarlas??
Saludos y gracias
(If this comment was disrespectful, please report it.)

 
8/15/2002 3:10:35 PMMichael Aragon

awesome work , great code and syntax. 5 globes!
(If this comment was disrespectful, please report it.)

 
8/16/2002 1:04:21 AMpaul muaratua

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

 
8/19/2002 12:42:31 PMPhantom Man

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

 
8/21/2002 3:35:24 AMTuk

Nice code gonchuki, thanks for posting it here.

Saludos desde buenos aires.
(If this comment was disrespectful, please report it.)

 
8/21/2002 9:33:42 AMNeal

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

 
8/26/2002 8:35:18 AMtibisan

wow! how did i missed this? 5G's.
(If this comment was disrespectful, please report it.)

 
8/27/2002 5:10:21 PMTodd Fabacher

Great control. I gave it 5*. But, if the picture is an icon, it is changing the color a bit around the image. Thus the icon is not transparent. Is it that I have not set a mask color? I should not have to, correct? Also you use the timer on mouse move, I might have a better idea for you - Timers use big resources. Email me and I will sent the code to you.
(If this comment was disrespectful, please report it.)

 
9/2/2002 10:27:56 AMThe New iSoftware Company!

I got my office xp toolbar shadow to work in GDI+!
(If this comment was disrespectful, please report it.)

 
9/30/2002 11:52:53 AM

Gonchuki :
Congratulations for your code.
It's very beatiful and functional.
But I have a problem : I use VB 5 with Win 98 Second Edition and in my projects, the transparent button does not work correctly. What I do wrong ?
A america do sul é soberana, viva o Uruguai, viva o Brasil.
Saludos,
Heilan Percio
PS : Sorry for my poor english.
(If this comment was disrespectful, please report it.)

 
10/15/2002 8:38:28 PMJC Ford

I simply LOVE this control!

Is there a way to turn off the border that shows up when I hover over an XP Style button?
(If this comment was disrespectful, please report it.)

 
10/15/2002 8:44:03 PMJC Ford

Bah. Ignore my last message. I just disabled the code that draws the border and all's well.

One nit to pick though. When the 'Default' property is changed at runtime, the button does not redraw to show the focus rectangle. This is inconsistent with standard buttons.

Thanks for all your hard work on this control! It really is excellent!
(If this comment was disrespectful, please report it.)

 
10/16/2002 4:52:09 PMJC Ford

Clarification of my last post.

These steps should allow you to recreate the problem:

1) Place multiple buttons on a form with a custom color scheme
2) Set one of those buttons Default = True
3) put another control (a textbox for instance) on the form
4) set the tab order so that the textbox has focus when the form loads and the next button in the tab order is NOT the one with Default = True

Run the form and use the tab key to navigate. You'll notice that the focus rectangle on the Default button DOES NOT go away when one of the other buttons gets focus, but if you mouse over the Default button it will reset.

I fixed this by making a change in the UserControl_AmbientChanged event. Simply move the call to the Redraw subroutine outside the if statement so that it executes even if the button has a custom color scheme (the colors still only get reset if ColorScheme <> Custom)
(If this comment was disrespectful, please report it.)

 
10/16/2002 4:54:00 PMJC Ford

One more tip!

Set the 'Procedure ID' for the Caption property so that the button's caption automatically updates when you change the property in the property pallette...a rather trivial feature, but a nice one nonetheless.

1) When viewing the code for the control, click Tools/Procedure Attributes.

2) Choose the 'Caption' property in the list at the top of the dialog.

3) Click 'Advanced >>' to display more settings

4) Choose 'Caption' from the Procedure ID dropdown box and click Ok

Now the Caption updates automatically as you type it!
(If this comment was disrespectful, please report it.)

 
10/18/2002 11:39:11 AMgonchuki

wow! thanks for the tips, you solved a problem i had for a long time... i had the 2.0.7 version ready to be launched, but this tips make it deserve a new 2.0.8 version.
If anyone wants to know, version 2.0.8 has a lot of code optimizations and it is now smaller and faster than ever!
(If this comment was disrespectful, please report it.)

 
10/19/2002 2:29:17 AM

Hi There are two problems over here one is when we disable the 11- Transaparent button it changes the color of the button to black color and it is very horrible, can u provide the same facility which u have provided to Windows XP button it is looking good when it is disabled.

Secondly Major thing you are using timer to track the mouse out events and as i using near about 40 button in problem and as your timer is set to 3 milliseconds refresh, it is a heavy load on the program refreshing all the 40 buttons, Is it possible for you to provide mouse out properties so that we can avoid this timer which drastically increases the performance.

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

 
10/20/2002 4:08:39 PMgonchuki

I havent faced this problem with the transparent button... may be it is a refresh problem???

Second thing, the timer is enabled ONLY when you are over the button, so at most there will be ONE timer enabled at a time. There is no performance impact on this, and the only better approach for MouseOver/MouseOut is to use subclassing... and this could easily lead you into an instant crash if by mistake you press the End button...
(If this comment was disrespectful, please report it.)

 
10/24/2002 1:31:08 PMJC Ford

gonchuki, I have a solution to the mouseover/mouseout that does not involve a timer, but it's a bit too large to post here.

Drop me an email and I'll be happy to share:

johncford (at) myrealbox.com
(If this comment was disrespectful, please report it.)

 
10/30/2002 1:30:44 PMThraka

Great Job.. 5 *!!

Where can I get the 2.0.8 Version? Thanks!
(If this comment was disrespectful, please report it.)

 
11/3/2002 1:40:36 AMDarkMercenary44

This button is everything I've ever wanted, great great job. You are the ONLY person I have ever seen that made the OfficeXP style buttons that acted like a checkbox and would keep the blue border around it when selected...I'm very impressed thank you for this great control
(If this comment was disrespectful, please report it.)

 
11/4/2002 8:07:27 AM

Nice code. I have learned a lot from it.
Thanks and 5 globes from me!
(If this comment was disrespectful, please report it.)

 
11/4/2002 8:14:49 AMPio

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

 
11/4/2002 10:47:59 AMtibisan

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

 
11/4/2002 12:09:53 PM

Great code! However, I am just a beginner and would like to know if you could please direct me to some good VB books to learn from or perhaps, a website with a lot of tutorials. Thanks
(If this comment was disrespectful, please report it.)

 
11/4/2002 2:28:18 PMFatbob

Awesome code!

Can someone please tell me how to compile this into an ocx?

Thanks!

gonchuki, keep up the good work. Looking forward to 2.0.8!

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

 
11/4/2002 3:00:03 PMFatbob

Never mind. I simply added the user control to my project.

Simply awesome control!
(If this comment was disrespectful, please report it.)

 
11/4/2002 11:42:50 PM

5 from me !!! wish I could give you 50... developers like you are pride for us... keep up the good work.
(If this comment was disrespectful, please report it.)

 
11/5/2002 6:45:18 AMtibisan

i forgot to vote. i'll do it now. u might wanna check the kde model in the toolbar control. when i hover over the buttons, it eats all my system resources. i think u got a memory leak in there, coz windowz flashes the white window telling me that the system is "dangerously low on resources" and urging me to close window after window.
it happens only in the kde model. i also have a nice button model, easy to make by programatic means. do u want me to sent it to u? nice work anyway.
(If this comment was disrespectful, please report it.)

 
11/5/2002 3:31:17 PMgonchuki

GOOD NEWS!

You can get the compiled OCX version of Chameleon Button 2.0.8 from: http://usuarios.lycos.es/gonchuki/chameleonButtonOCX.zip

Source code will not be released for now, but the same license rules apply for this OCX version... ask if you are in doubt of what you can do with it.
(If this comment was disrespectful, please report it.)

 
11/6/2002 6:05:45 PM

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

 
11/9/2002 9:21:47 PMDazz

Do i have permission to post updates?? on this awesome control???
(If this comment was disrespectful, please report it.)

 
11/30/2002 6:17:54 PMVlad Vissoultchev

do you knwo about this http://www.freevbcode.com/ShowCode.Asp?ID=4623 :-))) thought you might like to NOT stay anonymous anymore

HTH,

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

 
12/1/2002 10:35:58 AMgonchuki

i knew about that... it was me the one who posted it there... but seems they changed the entry since it had the same title and description as in PSC...
(If this comment was disrespectful, please report it.)

 
12/19/2002 9:27:06 AMThe New iSoftware Company!

When are you providing an update?
(If this comment was disrespectful, please report it.)

 
12/20/2002 6:30:10 AM

I've followed this code from the start and it just gets better and better. Will you be posting any more updates ?? P.s. what are your copyright rules regaring this code ..
(If this comment was disrespectful, please report it.)

 
12/26/2002 4:17:04 AM

Great code!
cbJava.PictureNormal = "template.ico"

Err:
Invalid use of property
(If this comment was disrespectful, please report it.)

 
12/31/2002 12:10:03 PMJC Ford

try this:

set cbJava.PictureNormal = LoadPicture("template.ico")
(If this comment was disrespectful, please report it.)

 
1/2/2003 9:51:34 AMEightySoftware

I Hate to beg.. but here goes

Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, Please, can you release the source for the latest incarnation.. you have fixed bugs etc from 2.06 and its nearly a whole year now..

So please release the code
(If this comment was disrespectful, please report it.)

 
1/4/2003 12:30:02 AM

hi gonchuki
I'm Chinese and I'm using your chameleonButton. It's the best button control i've used.
But i found that chameleon button not support chinese good. If use chinese characters on "Caption" property, i must add several space at the end of "Caption" string. I think the key of this problem is the "DrawText" API. So
I tried to modify the sourcecode like this:

......
......
DrawText .hdc, elTex, LenB(StrConv(elTex, vbFromUnicode)), rc2, DT_CENTER
......
......

So, it's work well.

Please update your sourcecode if you notice that.

I think you should update your OCX version to 2.0.9 :-)

fang.
2003-01-04 at HangZhou, China.

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

 
1/4/2003 5:40:25 PMsuncoast

Great idea! I did run into a wierd situation though. I have a form with a lot of controls on it and a lot of buttons. I created one button and shaped it the way I want then copied it and pasted it, changing the name, caption and index accordingly. I saved the project and all the buttons got hash marks across it. No problem. When I ran the program, some of the buttons reverted to Windows 32-bit and the captions changed on some of them. I fixed the buttons, saved the project and it happened again.

I fixed them again and ran the program again, this time without saving it and it was fine. I then saved the project and ran it and it was fine after that.

Anybody else come across this?
(If this comment was disrespectful, please report it.)

 
1/4/2003 5:51:10 PMsuncoast

A couple of other things I noticed. If I changed the button to disabled and save the project then run it, the buttons are enabled again. If I disable them again, run the project without saving they remain disabled. I stop the application and save the project and they stay disabled.

Why is this happening? It seems to me I have to run the project first without saving it. Then stop the application and then save it. If I don't do this, the buttons change to Windows 32-bit, the captions change, and they become enabled again. There may be other quirks I haven't uncovered yet because I haven't used it much.

Can you shed some light on this?
Thanks!
Steve
(If this comment was disrespectful, please report it.)

 
1/6/2003 9:02:51 AM

Steve,

I was having problems myself (buttons reverting to Win32 style), but not when running within the IDE, which is probably what you're talking about. I couldn't duplicate your problems there. BUT, if you happen to mean trying to run the *compiled* exe, and you let PDWizard do the compile, then yes, I was seeing the same sort of weird behavior. When I tred a similar control I had downloaded and ran across the same sort of thing, I finally figured out it was PDWizard. As long as you make the exe (i.e. "File->Make Project1.exe") THEN run PDWizard (don't let PDWizard do the compile), the buttons work as they should when you run the exe. I think this is a bug in PDWizard since I had the same problem with the other control. Don't know if this will help you, but just in case. Wouldn't want anyone else banging their head over this like I did!
(If this comment was disrespectful, please report it.)

 
1/15/2003 10:08:44 PM

Thank you very much , i very like this program. but i am not an expert programmer, any one who can help me to confile this to OCX. when i confile i always encouter "No public usercontrol detected". please help thanks.
(If this comment was disrespectful, please report it.)

 
1/19/2003 11:21:29 PM

Great job man! Well done. Keep it up.
(If this comment was disrespectful, please report it.)

 
1/22/2003 7:53:04 AM

Great Control!
But when I'm programming I can't
use LEFT(text,x) anymore.
RIGHT(text,x) does work !!!
Anyone familiar with this ???
Please Help !!!
(If this comment was disrespectful, please report it.)

 
3/5/2003 2:39:02 PM

Genial!, pero sigue apareciendo problemas con el refresco (2.0.6) El boton vuelve al formato windows normal y se borra el Caption. ¿sabes porque?
(If this comment was disrespectful, please report it.)

 
3/24/2003 5:51:19 PM

I luv ur work man, u earned the eXcellent grade...keep up the good work... ;-)
(If this comment was disrespectful, please report it.)

 
4/24/2003 12:13:10 AM

*** I M P R E S I O N A N T E ***
Un trabajo muy bien logrado.
Felicitaciones de otro MADE IN URUGUAY. =)

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

 
4/29/2003 12:11:07 PM

Great Job :)

what about a .net port?
(If this comment was disrespectful, please report it.)

 
6/12/2003 10:01:40 AMJoakim Stai

que bonito este chameleon button.. es muy útil y todo, hace miraculos en cualquier programa. a tip for all who want real xp style buttons: the official size of the xp button is 1125*345 twips. if you want to know more about windows xp styles, see here: http://www.cs.virginia.edu/~horton/cs305/info/wxp/default.htm
(If this comment was disrespectful, please report it.)

 
9/9/2003 12:06:18 AMAriel825010106

i have to say that i like this control, and u looks cool too :) i hope we can meet each other in person :) [actually i admire your work :)]
(If this comment was disrespectful, please report it.)

 
9/19/2003 7:47:45 PMPatrick Weber

Very Very nice. 5 from me. Just a word to the wise. It would make it alot easier if you could submit the zip file as .zip instead of .0 thanks. Patrick
(If this comment was disrespectful, please report it.)

 
10/11/2003 12:37:31 AM

Hi! I used your control in my vb application. I must appriciate you to develop such a wonderful button. It looks nice. I found one bug while i'm using this button,memory leak problem. If i create control in run time, i'm getting out of memeory,cannot create auto redraw image,automation errors. So, you need to fix this bug.
(If this comment was disrespectful, please report it.)

 
10/11/2003 5:31:01 AM

hi!
how to add image to chemeleon button in runtime. I tried picturenormal property, but i couldn't. is there any work around
(If this comment was disrespectful, please report it.)

 
10/26/2003 10:07:04 PMgonchuki_

thanks for all the long feedback list...

to change pictures you have to use the SET statement before the property you want to change.

About the memory leaks... you have been warned, this code is no more being updated so i know there should be bugs inside... but if i put that for free then it wouldn't be fair for my actual customers.
(If this comment was disrespectful, please report it.)

 
12/14/2003 11:53:21 PM

Excelente! O melhor Command Button que tem por aqui.

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

 
3/3/2004 6:20:20 PM

The download dont work!!
but it looks excelent, and im gutted now coz i cant get it =@
(If this comment was disrespectful, please report it.)

 
4/2/2005 8:01:48 PMMatthew R. Usner

LaVolpe's button is better, is free, and doesn't leak.
(If this comment was disrespectful, please report it.)

 
11/12/2005 4:33:55 AMHyper

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

 
12/16/2005 9:55:52 PMSdLvX

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

 
1/5/2006 8:49:52 AMHardStream Software Development

Great control, absolutely perfect... Another 5 globes commin your way :D
(If this comment was disrespectful, please report it.)

 
11/5/2006 5:54:04 AMMoroco

Great Work . 5 globes and 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.