Important alert: (current site time 7/16/2013 2:41:10 AM EDT)
 

winzip icon

SOptionButton 1.0 (Update 16-11-2005)

Email
Submitted on: 11/22/2005 7:03:34 PM
By: Heriberto Mantilla Santamaria  
Level: Beginner
User Rating: By 25 Users
Compatibility: VB 5.0, VB 6.0
Views: 16818
author picture
(About the author)
 
     I decided to publish this small control that has developed for one year behind for that I want to share it with all those of PSC. It's a small simple control but attractiveness (at least for my), I wait they like it. Support Unicode and Align.

 
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 36 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

11/2/2005 7:02:45 PMOption Explicit

You know I can't resist a nice little usercontrol... I'm glad to see you finally submitted it! Thanks Heriberto.
(If this comment was disrespectful, please report it.)

 
11/2/2005 7:12:03 PMOption Explicit

By the way Heriberto, your English is not perfect... be prepared for a 1-globe vote from Andrew M. Goncharov! :-) Lol.
(If this comment was disrespectful, please report it.)

 
11/2/2005 7:30:50 PMHeriberto Mantilla Santamaria

Thanks for the vote Matt.
(If this comment was disrespectful, please report it.)

 
11/3/2005 4:59:26 AMPhantom Man

Excellent Control Heriberto, Nice, Neat And Readable Code.

Thanks, Gary.

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

 
11/3/2005 8:35:24 AMHeriberto Mantilla Santamaria

If friend Matt is right (although for that reason I didn't almost put him comments) but for me the votes aren't important already, I only wanted to share it with all the people of PSC.

Thanks Gary for the comment and vote.
(If this comment was disrespectful, please report it.)

 
11/3/2005 8:46:35 AMHeriberto Mantilla Santamaria

Thanks YKC for your vote.
(If this comment was disrespectful, please report it.)

 
11/3/2005 3:34:14 PMRichard Mewett

Great work Heriberto. Its good to see another tidy & visually smart control from you. 5*
(If this comment was disrespectful, please report it.)

 
11/3/2005 6:42:06 PMCodeFester

It is really well done. Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
11/4/2005 6:24:14 AMPeter Wilson

Hmmm... they look good... but I have no idea why you think you need sub-classing in a project like this. The code is much more complex than it needs to be.
(If this comment was disrespectful, please report it.)

 
11/4/2005 8:21:59 AMRichard Mewett

Peter, the subclassing is required IMHO. For this control to function as it does it must process WM_MOUSEMOVE & WM_MOUSELEAVE messages. Pure VB methods of detecting this are unreliable at best.
(If this comment was disrespectful, please report it.)

 
11/4/2005 8:58:11 AMHeriberto Mantilla Santamaria

Hi Peter Wilson, my friend Richard explains to you the reason of the suclassing, I didn't want to use the TIMER control.

Thanks JhonGalt, tibisan, Marco Scalcione for the vote.

CodeFester and Richard thank you for their incentives comments and their votes.

Paul Turcksin thanks for the vote.
(If this comment was disrespectful, please report it.)

 
11/4/2005 1:31:44 PMCarles P.V.

Hi Heriberto. Nice little control! Only a minor suggestion regarding to font size: don't assign a fixed size (height) to control. Take the minimum height as the one given by the 'option graphic', then resize control depending on font height. Finaly, when drawing, center the graphic verticaly.
(If this comment was disrespectful, please report it.)

 
11/4/2005 7:13:01 PMHeriberto Mantilla Santamaria

Thanks Carles, nice idea I try to implement.

Again thanks for the comment and vote.
(If this comment was disrespectful, please report it.)

 
11/4/2005 9:37:43 PMPaul Turcksin

Probably the most beatiful option button I've seen on PSC and elsewhere. The complete lack of code comments makes it however a very difficult learning tool. Voted 4.
(If this comment was disrespectful, please report it.)

 
11/5/2005 4:36:25 AMHeriberto Mantilla Santamaria

There isn't problem with the vote friend Paul, don't add him comments for that my English isn't very good.

If you will notice, the code has very few comments in English as in Spanish, but the important sub is the DrawAppearance, since the control this drawn entirely with lines (Including the circles).
(If this comment was disrespectful, please report it.)

 
11/6/2005 11:25:46 PMKENCD

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

 
11/7/2005 1:32:29 AMHabin(China)

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

 
11/7/2005 1:34:02 AMHabin(China)

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

 
11/7/2005 12:04:24 PMHeriberto Mantilla Santamaria

Thanks Habin for your support and vote.
(If this comment was disrespectful, please report it.)

 
11/7/2005 1:37:05 PMHeriberto Mantilla Santamaria

Thanks KENCD for your vote and comment.
(If this comment was disrespectful, please report it.)

 
11/10/2005 8:58:28 AMKelvin C. Perez - Valentin

Hi Heriberto:

As Phantom Man said "Nice, Neat And Readable Code."
:-)

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

 
11/10/2005 12:12:28 PMHeriberto Mantilla Santamaria

Thanks so much for the comment and vote, my friend Kelvin.

Hermano gracias por tu apoyo.
(If this comment was disrespectful, please report it.)

 
11/10/2005 4:57:17 PMKuldeep D Padhiar (Binary Intellect)

It's a really good piece of code!!!!
keep it up !!!!!!
(If this comment was disrespectful, please report it.)

 
11/10/2005 11:32:58 PMHeriberto Mantilla Santamaria

Thanks Kuldeep D Padhiar for the comment.
(If this comment was disrespectful, please report it.)

 
11/17/2005 6:13:27 PMHeriberto Mantilla Santamaria

Thanks Robert for your vote.
(If this comment was disrespectful, please report it.)

 
11/17/2005 10:46:29 PMHabin(China)

I downloaded again,thanks for Heriberto Mantilla Santamaria's proffer.
(If this comment was disrespectful, please report it.)

 
11/18/2005 9:34:17 AMHeriberto Mantilla Santamaria

Gracias amigo Ignacio por tu apoyo y voto, saludos a México, Puerto Rico y Argentina.
(If this comment was disrespectful, please report it.)

 
11/18/2005 9:34:44 AMHeriberto Mantilla Santamaria

Gracias amigo Dr. Ignacio por tu apoyo y voto, saludos a México, Puerto Rico y Argentina.
(If this comment was disrespectful, please report it.)

 
11/18/2005 9:38:22 AMHeriberto Mantilla Santamaria

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

 
11/23/2005 1:25:00 AMTuanHai

Why not check box? Do you have plan to make checkbox with the same style?
(If this comment was disrespectful, please report it.)

 
11/23/2005 8:28:59 PMHeriberto Mantilla Santamaria

I don't really believe it possible, but if I make it, you'll be the first one in knowing it.

Thanks for the suggestion.
(If this comment was disrespectful, please report it.)

 
11/26/2005 1:02:27 AMTAU

Man, that's wonderful. Thanks.
(If this comment was disrespectful, please report it.)

 
11/28/2005 11:49:33 PMHeriberto Mantilla Santamaria

Thanks for the comment TAU.
(If this comment was disrespectful, please report it.)

 
12/6/2005 7:24:36 PMOption Explicit

Congratulations Heriberto! A well-deserved win.
(If this comment was disrespectful, please report it.)

 
12/8/2005 12:00:59 PMRichard Mewett

Well done on COTM Heriberto! :)
(If this comment was disrespectful, please report it.)

 
12/8/2005 1:24:05 PMHeriberto Mantilla Santamaria

Thanks so much Matt and Richard.
(If this comment was disrespectful, please report it.)

 
12/27/2005 7:05:49 AMHussain Al-Omran

very nice ,
I have one suggestion though
in right allignment , I think the text should also be right alligned , not only the little colorful thing ;-)
(If this comment was disrespectful, please report it.)

 
12/27/2005 11:24:06 PMHeriberto Mantilla Santamaria

Hi Hussain Al-Omran

Is good idea, I try to implement too.
(If this comment was disrespectful, please report it.)

 
2/10/2006 1:23:51 PMHeriberto Mantilla Santamaria

Thx so much friend fred.cpp, usted siempre ha sabido valorar mi trabajo, no sabe lo agradecido que estoy con usted.

Un saludo.

Evilgenious thx for the vote.
(If this comment was disrespectful, please report it.)

 
5/16/2006 12:21:59 AMkbhrx

it's sooooo cute
thanks for sharing

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

 
6/20/2006 4:37:03 PMHeriberto Mantilla Santamaria

Thx for all comments and votes.
(If this comment was disrespectful, please report it.)

 
8/18/2006 6:20:09 PMproeffective

Very nice control indeed, very easy to replace the existing optionbutton, easy to extend and well structured! 5 Globes!
(If this comment was disrespectful, please report it.)

 
8/29/2007 10:16:02 AMkerplunk_boy

No te olvides de Brasil!! Muy bueno controle
(If this comment was disrespectful, please report it.)

 
1/17/2009 9:12:44 AMJuned Chhipa

Thanks Heriberto,
I have used your codes in my button for the option button mode.
Thanks again.
Your CIT:
"but for me the votes aren't important already, I only wanted to share it with all the people of PSC.
".
Wow, i like your attitude of helping others...Keep it up!
***** :o)
Regards, Juned.
(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.