Quick Search for:  in language:    
GREAT,BACK,TIME,WITH,LOADS,NEW,NOW,HAS,FONT,A
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic
Tablature Pro
By Michael McMullen on 7/2


Click here to see a screenshot of this code!MSN Password Decryptor
By Muhammad Sufyan Ansari on 7/2

(Screen Shot)

Mp3 Paker
By Michael McMullen on 7/2


Suppress Run Time Script Errors
By Nuclear_1000G on 7/2


Click here to see a screenshot of this code!List Maker
By KBM-00 on 7/1

(Screen Shot)

Web Update Checker
By knormalnight on 7/1


A*Beginners API*
By Michael Nipper on 7/1


source hog v1.1
By Robert Justason on 7/1


Click here to see a screenshot of this code!AdAlert® Spyware/Adware Remover UPDATED
By Intrepid Software on 7/1

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

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

Print
Email
 
winzip icon
Submitted on: 8/1/2002 12:18:34 AM
By: gonchuki_  
Level: Advanced
User Rating: By 121 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 15992 times.
 

(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 Winzipto 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 notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
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 AM:Al
Loved your last submission and this 
makes it even better.
GREAT work mate! 
5 Stars
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 3:24:57 AM:Thushan Fernando
awesome work... please read teh email I 
sent you regarding some 'legal' 
matters;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 4:31:59 AM:Steve
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 4:33:28 AM:Joe
Excellent button, keep up the good 
work!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 4:38:34 AM:Carles 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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 5:01:54 AM:ShaDoWsToRmEr
Contact me at shadowstormer@hotmail.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 7:40:58 AM:claude
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 11:07:16 AM:uZiGuLa
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
PropertyCha
nged "VALUE"
RaiseEvent Click
well, 
finally trigger the click event, to 
simulate a complete command button 
behavior
anyway great piece of code, 
five from me
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 12:45:43 PM:Steve
@uZiGuLa:
perfect - now it works as 
it should ...
Steve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 12:59:42 PM:Steve
@uZiGuLa:
one additional note: 
remove the 
RaiseEvent Click
from 
the "Public Property Let Value" 
otherwise the code might get into an 
endless loop ...
Steve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 1:27:15 PM:gonchuki_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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 1:34:30 PM:gonchuki_
Steve: i noted this problem in 
uZiGula's code and not included it in 
the patch. thx again.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 5:20:59 PM:Steve
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/1/2002 6:50:56 PM:gonchuki_
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 3:49:29 AM:Steve
gonchuki:
you'll find a screenshot 
of what I mean 
here:
http://home.wtal.de/rlinke/exam
ple.gif
Steve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 4:21:24 AM:Asxetos
This name charmeleon makes me sick.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 10:45:50 AM:Paul 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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 10:48:52 AM:uZiGuLa
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 1:10:27 PM:Ross
Great stuff: Thanks for sharing!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 4:35:48 PM:Steve
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 6:15:27 PM:Popescu Constantin
no thing to say 
5 from me
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 7:45:52 PM:El CZAR
Buen trabajo amigo.. soy de cruzando el 
charco.. lastima q los contagiamos .. 
jeje--
salu2
amigo... 
uruguayo..
viva argentina
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 10:33:55 PM:gonchuki_
el problema es que les copiamos lo 
malo... 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/2/2002 10:41:46 PM:gonchuki_
NEW UPDATE!!! TWO BUGS FIXED, THANKS 
AGAIN TO STEVE. XP BUTTON SHOULD NOW 
SHOW CORRECTLY THE DISABLED PICTURE...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 3:57:20 AM:Thushan Fernando
thanks for the update via email man! I 
think all developers love this 
control(that includes me)!
Thanks 
again.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 3:58:12 AM:Steve
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 9:01:57 AM:Christopher Rouse
no thing to say 
5 from me
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 2:43:21 PM:Scott
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 2:48:42 PM:Scott
Your not kidding....this is the 
best...
I would give you another 5 
globes if I could
Best Button Bar 
None
Scott
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 7:13:17 PM:Bobby A.
Sup gonchuki_   
Your code is the 
best man keep this up yo... im lovin it 
and ill maybe add some new stuff too!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2002 11:36:49 PM:Derris
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/4/2002 1:55:25 AM:Sum1 Cool
Unquestionably out of this 
world!!!
I'd give it a 6 if I 
could.
Keep up the good work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/4/2002 10:31:04 AM:gonchuki_
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...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/6/2002 9:32:56 PM:Fred.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: *****
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/6/2002 10:01:43 PM:Fred.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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2002 6:33:44 PM:Sebastian
Great code!! Thank you very much.
5 
stars for me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2002 7:39:36 AM:Ozan Yasin Dogan
Gonchuki, you did a very good job my 
friend, i liked your style.. Many 
thanks..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/10/2002 12:14:02 PM:Vinchenzo
Again a quality control! Impressive! 
Keep up good work! 5 globes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/11/2002 10:07:45 PM:The New iSoftware Company!
I want to help port to VB.NET. Email me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/11/2002 10:07:58 PM:The New iSoftware Company!
I want to help port to VB.NET. Email 
me, please.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 11:07:46 AM:Ronnie
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 1:21:55 PM:The New iSoftware Company!
Please tell me how you do that spec. 
shadow on the office xp button.  Is 
there any api?  Email.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 1:26:27 PM:The New iSoftware Company!
I mean the drop shadow thing.  I need 
this badly.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 1:39:22 PM:The New iSoftware Company!
Sorry, but may I have the secrect color 
formula for the office xp?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 3:15:52 PM:Fred.Cpp
everything Is in the code ;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 7:47:45 PM:The New iSoftware Company!
Its one big long chunk.  I cant place 
it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2002 11:24:18 PM:Sebastian
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/15/2002 3:10:35 PM:Michael Aragon
awesome work , great code and syntax.  
5 globes!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/16/2002 1:04:21 AM:paul muaratua
it is very good
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/19/2002 12:42:31 PM:Phantom Man
Nice Control!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/21/2002 3:35:24 AM:Tuk
Nice code gonchuki, thanks for posting 
it here. 
Saludos desde buenos 
aires. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/21/2002 9:33:42 AM:Neal
Truly wonderful.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/26/2002 8:35:18 AM:tibisan
wow! how did i missed this? 5G's.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/27/2002 5:10:21 PM:Todd 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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/2/2002 10:27:56 AM:The New iSoftware Company!
I got my office xp toolbar shadow to 
work in GDI+!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/15/2002 8:38:28 PM:JC 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?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/15/2002 8:44:03 PM:JC 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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/16/2002 4:52:09 PM:JC 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)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/16/2002 4:54:00 PM:JC 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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/18/2002 11:39:11 AM:gonchuki
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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/20/2002 4:08:39 PM:gonchuki
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...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/24/2002 1:31:08 PM:JC 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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/30/2002 1:30:44 PM:Thraka
Great Job.. 5 *!!
Where can I get 
the 2.0.8 Version? Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/3/2002 1:40:36 AM:DarkMercenary44
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2002 8:07:27 AM:
Nice code. I have learned a lot from 
it.
Thanks and 5 globes from me!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2002 8:14:49 AM:Pio
very nice
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2002 10:47:59 AM:tibisan
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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2002 2:28:18 PM:Fatbob
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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2002 3:00:03 PM:Fatbob
Never mind. I simply added the user 
control to my project.
Simply 
awesome control!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/5/2002 6:45:18 AM:tibisan
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/5/2002 3:31:17 PM:gonchuki
GOOD NEWS! 
You can get the 
compiled OCX version of Chameleon 
Button 2.0.8 from: 
http://usuarios.lycos.es/gonchuki/chamel
eonButtonOCX.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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/6/2002 6:05:45 PM:
very sweet. thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/9/2002 9:21:47 PM:Dazz
Do i have permission to post updates?? 
on this awesome control???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/30/2002 6:17:54 PM:Vlad Vissoultchev
do you knwo about this 
http://www.freevbcode.com/ShowCode.Asp?I
D=4623 :-))) thought you might like to 
NOT stay anonymous 
anymore
HTH,
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/1/2002 10:35:58 AM:gonchuki
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...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/19/2002 9:27:06 AM:The New iSoftware Company!
When are you providing an update?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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 ..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/26/2002 4:17:04 AM:
Great code! 
cbJava.PictureNormal = 
"template.ico"
Err:
Invalid use of 
property
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/31/2002 12:10:03 PM:JC Ford
try this:
set cbJava.PictureNormal = 
LoadPicture("template.ico")
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/2/2003 9:51:34 AM:EightySoftware
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/4/2003 5:40:25 PM:suncoast
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?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/4/2003 5:51:10 PM:suncoast
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/19/2003 11:21:29 PM:
Great job man!  Well done.  Keep it up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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 !!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/24/2003 5:51:19 PM:
I luv ur work man, u earned the 
eXcellent grade...keep up the good 
work... ;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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. =)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/29/2003 12:11:07 PM:
Great Job :)
what about a .net port?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/12/2003 10:01:40 AM:Joakim 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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.