Important alert: (current site time 7/16/2013 3:08:18 AM EDT)
 

winzip icon

ColorPicker that resembles Adobe Style ColorPicker ( with New ColorChangeEvent)Update 24-Feb-02

Email
Submitted on: 2/1/2002 11:07:46 PM
By: Saifudheen A A  
Level: Beginner
User Rating: By 53 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 24030
(About the author)
 
     ColorPicker that Resembles Adobe PhotoShop ColorPicker. Replace Windows Old Color Dialog with this new Standard ColorPicker (ColorBox) in your application With More Controll over the ColorPicker. This was firstly written as reusable form, but here I'm presenting it as an Active-X Control so that any one can use it easily. Algorithms are fast and was written from scratch. I have tried as much as possible to make this Controll Bug free. Any suggestions, comments expecially Votes will appreciated. With New ColorChange Event which returns selected color Dynamically. small (Bug..? )Fixed.

 
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 6 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 Beginner 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

2/2/2002 11:53:35 PMTony Neilsen

excellent job ! 5 *****
(If this comment was disrespectful, please report it.)

 
2/3/2002 12:13:37 AMRobert Morris

Haven't downloaded it and tried it yet, but it looks good!
(If this comment was disrespectful, please report it.)

 
2/3/2002 10:49:48 AMSaifudheen A A

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

 
2/3/2002 2:50:11 PMJen

This is surely an excellent post..
may win Code of the Month contest

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

 
2/3/2002 8:08:51 PMJohn Galanopoulos

Mr Saifuhdeen is constantly prooving his skills on graphics.. excellent source. 5g at least. Keep up my friend.
(If this comment was disrespectful, please report it.)

 
2/4/2002 5:10:49 PMCarles P.V.

Excellent work again.

6* if I could.
(If this comment was disrespectful, please report it.)

 
2/5/2002 2:17:46 AMZhu JinYong

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

 
2/5/2002 4:59:17 AMSaifudheen .A. A

Some of the gyes have asked me for the permission about putting this colorpicker in their shareware programms and querrying for any royalties. You may use it in your app
free of charge...if code is intact. and any donations,.Accepted... if you need to change the code please send me an E-mail.. Thanks....Gyes...
(If this comment was disrespectful, please report it.)

 
2/5/2002 5:03:02 AMSaifudheen .A. A

Thanks Jen, John..Carls...Zhu Jinyong..
...
(If this comment was disrespectful, please report it.)

 
2/5/2002 1:38:45 PMPaul

Good work Saifudheen ...hope to see your rest of stuff..
(If this comment was disrespectful, please report it.)

 
2/5/2002 1:53:09 PMFrancy K.

Exellent.! ...You have done a good job ...very Usefull.
(If this comment was disrespectful, please report it.)

 
2/6/2002 6:00:27 AManimale

I have no words! 5 globes.
(If this comment was disrespectful, please report it.)

 
2/6/2002 1:47:18 PMSaifudheen A A

Thanks for the Complements from Paul, Francy, Animale ..
(If this comment was disrespectful, please report it.)

 
2/7/2002 12:44:56 PMKiser

Very Nice..
It found confortable.... at 256 graphics card ! It didn't dither....
atleast 5 from me
(If this comment was disrespectful, please report it.)

 
2/9/2002 4:55:45 AMSaifudheen A A

Hey ..Leave some ..Comments..and Suggestions..
(If this comment was disrespectful, please report it.)

 
2/9/2002 5:03:47 AMReule

The best colorPicker that i have found in the PSC. Keep it up...
(If this comment was disrespectful, please report it.)

 
2/10/2002 6:43:48 PMsabre

WOW...
I was really looking for something like this...
was worried i was gonna have to make it by myself
10 stars (if i could)
(If this comment was disrespectful, please report it.)

 
2/11/2002 1:38:52 AMSaifudheen A A

I was sure all of you will like it..
I appreciate your comments .Reule and Sabre.
(If this comment was disrespectful, please report it.)

 
2/14/2002 12:39:20 PMGunnar

Good work Saifudheen.
Thanks for making it a control too :)
(If this comment was disrespectful, please report it.)

 
2/15/2002 8:18:01 AMSaifudheen.

Thanks for complements Gunnar.
(If this comment was disrespectful, please report it.)

 
2/15/2002 8:19:44 AMSaifudheen A A

I express special thanks to Carls who give me idea of Colorchange Event.
(If this comment was disrespectful, please report it.)

 
2/19/2002 10:14:10 PMYTcodeX

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

 
2/22/2002 1:03:24 AMShawn Bullock

Trying the new 2-21-2002 version. Everytime I use it my windows 2000 sp2 latest security patches installed automatically reboots. I can't debug it because it crashes too soon. A couple of times my hard drive hangs and won't boot (forcing me to make emergency backups). I know it's this source because in over a year, I've never had a problem and I'm up and running 24/7. Plus, it doesn't happen until I run to source... and then click in the client area with either mouse button. The older version works fine. This update crashes. No votes until I can make it work.
(If this comment was disrespectful, please report it.)

 
2/22/2002 3:05:38 PMSaifudheen A A

I think the problem may with the Sample program. Open the control project and make the control as ocx. then test it with a new form.
(If this comment was disrespectful, please report it.)

 
3/17/2002 11:39:43 PMMatheus Moreira

i have the same problem from the post above "2/22/2002 1:03:24 AM:Shawn Bullock", but i did not tried the older version. When I run the source and clicked in client area, I got a blue-screen that machine reseted. So it not boot anymore. I had to restore my backup.

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

 
3/17/2002 11:51:08 PMMatheus Moreira

Now i tried to compile the OCX and start a new project with it. Once again, when i call the Show method, the machine rebooted again. This time no need to restore my backup.
I think you should review the OCX code.
Anyway, I will not try it again.
(If this comment was disrespectful, please report it.)

 
3/18/2002 6:44:46 PMMichael Barnathan

This is very nice. 5 Globes from me.
(If this comment was disrespectful, please report it.)

 
3/19/2002 1:28:50 AMSaifudheen A A

Sorry for the problem you faced, Please tell me about your system such as OS,RAM ,processor,Graphics Card etc and Mail it to me.
I uses both Windows 98 and
Windows 2000 in my computer. I have
tested this control in both operating
systems,I have not found any problems! So you please respond with this so
that may I find the problem
on my OCX.

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

 
4/16/2002 6:13:18 PMVlad Vissoultchev

Saifudheen A A: i gave you credit where it was due, 10x and enjoy: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=33867&lngWId=1
(If this comment was disrespectful, please report it.)

 
8/29/2002 1:15:06 PMKerry B. Rogers

There's a good chance these rebooting problems are because of the type of graphics card these guys are using and associated drivers. I've watched the same kind of comments occur when a new program comes out that does palette manipulation. Might want to start there.
(If this comment was disrespectful, please report it.)

 
10/12/2002 4:34:13 PMAnthony Neilsen

this failed on my machine - windows XP as screen res of 1280 *1024
with an error in load saturation vartiant : KV was -1, which crashed the bitmap byte array
(If this comment was disrespectful, please report it.)

 
12/25/2003 5:21:01 AM

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

 
12/20/2005 7:53:30 PMSGFWxCoder

There are indeed a handful of very critical bugs in this software that can be traced very easily to Byte Array variables being assigned a value of -1 (Bytes have to be 0 to 255). This could definitely caused a system failure on older OSs and graphics cards.

I surely wish that Saifudheen would re-check his code and correct the bounds that cause negative numbers to be assigned to Byte arrays in the loadsaturationvariant, loadbrightnessvariant and loadhuevariant subs. It's very easy to reproduce, but the code is so poorly commented that it's difficult to correct.

Very surprised that no one else caught this and that this color picker has won awards.


(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.