Important alert: (current site time 7/16/2013 2:26:40 AM EDT)
 

winzip icon

GFX Frame Control Release 3.2

Email
Submitted on: 8/20/2007 4:52:23 AM
By: Steven Atkiss  
Level: Intermediate
User Rating: By 18 Users
Compatibility: VB 5.0, VB 6.0
Views: 18149
author picture
(About the author)
 
     *** RELEASE 3 *** A Simple Container Which Allows You To Add Depth To Your Forms. Now Supports Rounded Corners, Shadow On And Off And Border Colour, Caption (On\Off), Alignment, Show Tab, Font + Colour. See Screen Shot, Now All It Takes Is A 'Little' Imagination... BUG FIX:The control interfered with the Left$ and Right$ commands, this has now been rectified (Changed The Alignement Enum Members Names). Sorry if this caused you problems, but it's now 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 22 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

6/24/2007 10:49:54 AMVBtutor

I have not seen the code yet, but you deserve 5 * for the idea. thank you
(If this comment was disrespectful, please report it.)

 
6/24/2007 1:55:12 PMKenneth Foster

I like it. Can't wait to get the rounded corners option.I did add the option to have a border with no shadow selected.Keep going.5 from Texas.
(If this comment was disrespectful, please report it.)

 
6/25/2007 11:25:24 AMSteven Atkiss

-------Release 2-------
Added:
Rounded Corners:
Flat Frame:
Border Colour:
(If this comment was disrespectful, please report it.)

 
6/25/2007 11:37:56 AMLaVolpe

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

 
6/25/2007 3:01:43 PMcaver dave

5/5 good idea well made and done
(If this comment was disrespectful, please report it.)

 
6/25/2007 5:27:00 PMHeriberto Mantilla Santamaria

Is a nice example.
(If this comment was disrespectful, please report it.)

 
6/26/2007 7:34:03 AMKenneth Foster

Steven, I'm getting lines at the corners of the round corner shadow.The lines look like sunrays at the corners only.Anyone else having this problem?Thanks Ken.
(If this comment was disrespectful, please report it.)

 
6/26/2007 11:56:09 AMSteven Atkiss

Tell Me What Settings You Are Using I Will Have A Look. What I Have Done Is Drawn Several Round Rectangles Next To Each Other, As We All Know This Leaves Blank Spots, To Which The Pixel Should Be Filled In With An Average Colour. (Also This Effect Doesn't Work With The VB Colours (Eg Button Highlight etc)

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

 
6/26/2007 1:19:58 PMKenneth Foster

Steven, I have'nt changed anything. I just downloaded and ran the demo.
(If this comment was disrespectful, please report it.)

 
6/26/2007 1:24:02 PMKenneth Foster

Steven,I changed my display settings from 16 bit to 32 and now looks fine.
(If this comment was disrespectful, please report it.)

 
6/26/2007 4:04:14 PMSteven Atkiss

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

 
6/27/2007 4:49:18 PMVBtutor

If I can vote again I will give you another (5*) ... well done steve.

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

 
6/28/2007 5:42:09 AMSteven Atkiss

I'm Glad you guys like this post. Thank you for your votes and happy coding :-) Please feel free to use adapt this control.
(If this comment was disrespectful, please report it.)

 
6/29/2007 4:33:46 AMBrian Ail

even fixes the frame no-dc prob too... surprising
(If this comment was disrespectful, please report it.)

 
7/1/2007 11:04:25 AMSteven Atkiss

I have two further releases for this project, Release 3 Captioned Frame and Release 4 Tabs... Keep 'em peeled ladies and gents.
(If this comment was disrespectful, please report it.)

 
7/2/2007 3:59:37 PMSteven Atkiss

--------Release 3--------
Added:
Caption Functionality
(If this comment was disrespectful, please report it.)

 
7/4/2007 12:22:53 PMHelio Hora Passos

Very cool work thx for share 5 globe
(If this comment was disrespectful, please report it.)

 
7/9/2007 10:15:52 AMJay

Works and looks nice except for one thing. Try adding InitCommonControls and then adding a manifest file so you can run XP style controls. Once you compile and run the EXE version, it will want to enter Debug mode when you exit the program (Never happens in the IDE). Must be something about manifest files that don't like user controls???
(If this comment was disrespectful, please report it.)

 
7/10/2007 3:20:01 PMPaul Turcksin

Simple and excellent. 5 big ones.
Suggestion: The "BackColour" and "BackColourIs" property names are misleading because they do not affect the Backcolor (which is controlled by the "FillColour") but the Shadow colour. A simple rename of these properties would resolve this ambiguity.
(If this comment was disrespectful, please report it.)

 
7/15/2007 4:01:11 AMSteven Atkiss

Hi Paul. The back colour isn't actually the shadow colour, the shadow is always black grey, the back colour is the colour on which the shadow is processed so it can be adapted to match the back colour of the ambient or it's container back colour you see.
(If this comment was disrespectful, please report it.)

 
7/18/2007 5:17:16 AMAlfred Ramos

the shadow adapts to the forms ambient backcolor, if the forms backcolor is a syscolor, shadow become opaque. You might as well translate the color to RGBs.
(If this comment was disrespectful, please report it.)

 
7/19/2007 6:07:06 PMOption Explicit

I don't come to PSC hardly at all anymore but wanted to drop a quick note congratulating you on your first contest win! Good work and nice code.
(If this comment was disrespectful, please report it.)

 
8/19/2007 11:19:09 AMSteven Atkiss

BUG: Noticed a huge bug guys, if you compile the control and use it it knocks out the use of Left$ and right$, this is down to the naming of my caption alignment Enum... I will repost with the required fix. Sorry if you've been having problems and couldn't figure it out.

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

 
8/23/2007 4:01:05 AM

Great Work, thx for share
(If this comment was disrespectful, please report it.)

 
8/26/2007 8:40:39 AMKenneth Foster

Steven, do you have a fix for when the ambient color is a system color ? The shadow is opaque.
(If this comment was disrespectful, please report it.)

 
8/29/2007 4:40:21 AMSteven Atkiss

You know what, I have tiptoed around the system colour problem for long enough, leave it with me Kenneth I will figure it out.

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

 
1/21/2009 5:39:29 AMJuned Chhipa

Just use "OleTranslateColor" API to convert system color to Long Value.
I have modified and it works fyn for me...
Nice work.
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.