Important alert: (current site time 7/16/2013 2:30:42 AM EDT)
 

winzip icon

MorphRangeRoamer v1.02 - Hybrid UpDown/Slider Usercontrol

Email
Submitted on: 3/3/2007 11:31:43 AM
By: Option Explicit 
Level: Intermediate
User Rating: By 25 Users
Compatibility: VB 6.0
Views: 16011
author picture
(About the author)
 
     (03 Mar 2007 - Added .UD_SwapDirections property; see code for explanation) MorphRangeRoamer is a different type of VB6 usercontrol that attempts to overcome the range-handling limitations of the UpDown and Slider controls by seamlessly integrating them into one small-footprint control. The idea is to provide the large range-traversing capability of the Slider as well as the precision of the UpDown in one easy-to-use graphical component. That's the theory, anyway. :) If you have any bug reports or other constructive suggestions, feel free to leave feedback, and votes are always appreciated! Enjoy.

 
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 8 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 Intermediate 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

1/1/2007 1:30:28 PMRussell Sanders

great work as always. 5 for ya.
Haven't seen any post for a while, you been on vacation?
nice to see you haven't left PSC as many of the good coders did.
(If this comment was disrespectful, please report it.)

 
1/1/2007 4:40:41 PMSteven Atkiss

Once again, beautiful engineering. Thanks for checking out The LCD Display. Happy New Year, hope this one brings all your desires to light LOL. Steve
(If this comment was disrespectful, please report it.)

 
1/1/2007 6:04:37 PMJames Miller

Great job Matt.
AJ
(If this comment was disrespectful, please report it.)

 
1/2/2007 3:08:07 AMtonyn

too much - all this code just for an updaown - ever heard of line and setpixel to draw the buttons?
(If this comment was disrespectful, please report it.)

 
1/2/2007 7:55:19 AMOption Explicit

Hi tonyn, I appreciate the feedback, but I have to disagree with you. First of all, this control is much more than an updown (it's two controls in one), that much should be obvious just by running it. Secondly, there are only 2250 or so actual lines of VB code, the rest is just commentary. Considering this control is entirely ownerdrawn I don't think that's too excessive. I understand your viewpoint though.
(If this comment was disrespectful, please report it.)

 
1/2/2007 7:58:44 AMOption Explicit

Russell, yeah I haven't been around as much in the last few months. Work and family matters have kept me busier than usual, (and imo PSC is not as fun as it used to be) but I have not abandoned PSC. Thanks for the feedback. James and Steven, thanks for your feedback, and thanks everyone for the votes.
(If this comment was disrespectful, please report it.)

 
1/2/2007 8:50:46 AMKelly S. Ethridge

Excellent code there, OE. You're building up a nice set of controls.
(If this comment was disrespectful, please report it.)

 
1/2/2007 5:27:23 PMHeriberto Mantilla Santamaria

@Gio Bacareza: beginner level?, you're crazy, sure?

Good code Matt, the GUI is good but can be better ^^.

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

 
1/2/2007 7:34:29 PMAlia Iftikhar

Whats Your Name dear? Excellent I would like to vote 1000 times. Thanks to submission. Dear can you help me on some other programes? You can communicate me on my email address

humsafar_ak@yahoo.com
(If this comment was disrespectful, please report it.)

 
1/2/2007 8:18:48 PMAlia Iftikhar

Dear Can you make a Command Button like that but added also Hot Key Color.

E.g For Refernce kEY Color When we press a key to run programms.

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

 
1/2/2007 9:25:56 PMRde

Hi again Matt :)

Very nice control - cleary 5 for this clean and classy submission.

Visually appealing, multi-control, ownerdrawn gui is beginner code? Gio Bacareza - Senior Software Engineer of what?

Happy coding,
Rd :)
(If this comment was disrespectful, please report it.)

 
1/2/2007 9:28:53 PMT Jackson

I reckon Matt & Keith could quite easily swap brains for a day or two and they seriously wouldn't know the difference. (They're about on par with skill level in VB) In any 'sane person's' book, this is a 5 star contest winning submission by any means. Meow...
(If this comment was disrespectful, please report it.)

 
1/2/2007 11:47:30 PMT Jackson

If this is beginner code, what does that make the majority of everyone else’s code? Sub-beginner? I think it’s a joke actually. Keith, Matt, Robert etc.. should be placing their submissions in the Advanced cat, thus allowing another portion of coders to use the intermediate cat without feeling too shameful about it. I have code that I would like to see placed in the intermediate cat, but how can I justify doing it with submissions like this in parallel with it. Over a dozen API’s, 160K worth of code. Get real, this thing’s nothing short nor far form advanced. On the same token, do you really think that someone with (0-6) months could have coded my LED Tree? PSC needs to look at redefining the cats. Suggestion: Beginner (1-2) yrs. Intermediate (2-5) yrs. Advanced (5+) yrs.

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

 
1/2/2007 11:53:23 PMT Jackson

*Beginner (0-2)yrs
(If this comment was disrespectful, please report it.)

 
1/3/2007 7:46:51 AMT Jackson

Also, WHERE's THE GUI? Simple answer is there isn't one! This submission is a User Control. Now, a GUI-Graphical-User-Interface-on the other hand is actually a collection of controls. Typically a compilation of many, many controls. Yeah this guy’s definitely a software engineer.
(If this comment was disrespectful, please report it.)

 
1/3/2007 7:58:25 AMOption Explicit

Thanks guys for the support (I know I can count on Trent to deliver his opinion :) ) First of all LaVolpe is light years ahead of me; half of what VB I know I learned from his submissions, so I appreciate the comment Trent but you're being too generous. Heriberto, I agree with the fact the graphics can be better; I just got in this gradient habit! Liking or disliking a GUI is purely a subjective thing, and I respect that. Thanks for the compliment Rde.
(If this comment was disrespectful, please report it.)

 
1/3/2007 8:01:09 AMOption Explicit

I found a behavioral glitch where scrolling occurs even if mouse has been dragged out of control; will resubmit when enough enhancements justify it. And after 'tonyn's feedback I managed to trim 125-odd lines of code out of the source. Thanks tonyn, that's constructive feedback.
(If this comment was disrespectful, please report it.)

 
1/3/2007 8:06:36 AMOption Explicit

Kelly thank you for the compliment. You're a "top gun coder" in my book so I definitely appreciate it.
(If this comment was disrespectful, please report it.)

 
1/3/2007 4:38:45 PMHeriberto Mantilla Santamaria

Hi again Matt, I think you can create a alphablend updown and put a triangule style gradient or border this's a nice effect ^^, similar as your led digital UC.

I learn so much with your ownerdrawn UC and the Morph style.

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

 
1/3/2007 9:33:04 PMT Jackson

I think overall the look of the control is application specific. It would have suited a lot of the electronics orientated stuff I did a while back. Namely interfaces for acquisition. Possibly, also, it may look on key with some music players. However, I don’t think it would ‘blend’ in entirely with much else. (Unless all the other controls were custom using the same style). It needs an XP style or similar to be teamed up with existing XP counterparts. Excellently coded and works great. Definitely not something that I could have done. Stick with the UC’s Matt, you’re on to something good.

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

 
1/6/2007 11:49:17 AMOption Explicit

Added RW_ShowLED property to allow switching RangeWindow LED display on and off (it may be redundant in some apps). Trimmed code by about 100 lines in response to tonyn's feedback, thanks for the feedback tonyn. Fixed the bug reported in my comment dates 1/03. Unless anyone has any bug reports or enhancement ideas, this will possibly be the last update. Enjoy.
(If this comment was disrespectful, please report it.)

 
1/6/2007 12:04:05 PMOption Explicit

Trent, these controls are meant to be used together. I have some "all-M orphControl" apps for my own personal use that have absolutely gorgeous UI's. I have wanted to post a complete app as a demo of how these controls all work and look together but haven't decided what to do yet.
(If this comment was disrespectful, please report it.)

 
1/6/2007 6:08:29 PMcoderNH

very good and well done, worth a 5!
(If this comment was disrespectful, please report it.)

 
2/16/2007 11:39:13 PMayman metwally

Great to see you posting again matt,
I thought that you left VB6!

Actually I didn't notice this post till today!!

And as usual, very nice looking controls ..

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

 
2/18/2007 12:43:46 PMOption Explicit

Hi Ayman, nice to hear from you. I haven't exactly left VB6 (or PSC) but I am very busy at work, plus VB6 is slowly dying due to .Net, plus I'm running out of ideas (although my next control is almost finished), plus a lot of the regulars here do seem to have left this site for various reasons. The usual reasons ;) Thank you.
(If this comment was disrespectful, please report it.)

 
2/23/2007 10:58:05 AMBob Harmilton

Holy cow!!! Intermediate? are you kidding me ***** five stars, and next time this one's going in advanced :0

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

 
2/24/2007 10:50:38 AMOption Explicit

Thanks for the kind words and vote Bob. I try to rate my code by comparing against some of the truly advanced submissions on this site. On kiddie sites like VBCode.com or FreeVBCode.com I *would* have rated this as advanced, but not here :)
(If this comment was disrespectful, please report it.)

 
4/23/2007 6:09:02 AMMitch Adamou

Excellent, thanks for your comment Explicit. I am just confused at reading the way you created the window.... I always thought that you had to use AddressOf in part of the Initialization. I knew the reason why my CreateWindowEx crashed was because of the address I used, eveytime I tried editing it during runtimem, alot of errors. But yours uses the usercontrol as a parent...My project had no form at all... Regardless I'll see how it works, I hope for the best.

Anyways I went through your code, that is pretty good, I like it how it works with different colors. There is alot to use and comprehend however, but it can be used to make pretty cool graphical apps. Good job mate
(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.