Click here to Skip to main content
Licence CPOL
First Posted 24 Mar 2006
Views 139,013
Bookmarked 114 times

AlphaGradientPanel, an extended panel

By | 24 Mar 2006 | Article
A panel that has rounded borders, gradients, and transparency.

Introduction

This is a panel, first of all. Therefore, it has all the advantages of a panel, plus some nice little features.

Using the code

You'll just have to include the component in your toolbox and use it.

The only property that is a bit special is the Colors() property. It is a collection of items and has design-time visibility in the property grid. I'm still trying to achieve transforming the color name that appears in the property grid in a nice drawing... If anybody knows how that can be achieved, please, please, please, let me know ;)

Features

  • Rounded corners (any one of them or all at the same time).
  • Gradients (from 2 to n colors, with some special effects).
  • Transparency (any color can be made transparent with an "Alpha" value between 0 and 255).
  • Borders, even with rounded corners, have a nice little border.
  • Image inclusion (position, opacity, size, grayscale, and padding).
  • Padding of the content, of the back, and of the docking.

History

  • Version 1.0.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Nicolas Wälti

Software Developer (Senior)

Switzerland Switzerland

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 2 PinmemberBrad Barnhill16:49 6 Jan '12  
GeneralMy vote of 2 PinmvpDave Kreskowiak6:37 8 Apr '10  
QuestionIssue removing control from form(s) PinmemberDavid Minder5:09 22 Dec '09  
QuestionOver controls??? PinmemberMember 24728489:53 13 Oct '09  
Generalfrustrating Pinmemberjoe destefano11:45 8 May '09  
GeneralRe: frustrating Pinmemberjoe destefano11:59 8 May '09  
GeneralRe: frustrating PinmemberDavid Minder4:16 22 Dec '09  
QuestionAdding an AlphaGradientPanel at runtime? PinmemberSMothes4:38 29 Sep '08  
AnswerRe: Adding an AlphaGradientPanel at runtime? PinmemberNick Waelti1:10 1 Oct '08  
Questiontransparency over controls PinmemberFallakka23:06 13 Aug '08  
GeneralTransparency problem Pinmemberzuraw4:06 13 Mar '08  
GeneralRe: Transparency problem Pinmembercdebel9:49 26 Feb '09  
QuestionException PinmemberBBWicked23:46 31 Jul '07  
Generalsorry but :) Pinmemberdeltadirac8:05 29 Jul '07  
QuestionRemoving a color Pinmemberthe-rpd5:20 1 Jul '07  
GeneralNice control Pinmemberthe-rpd9:38 26 Jun '07  
GeneralRe: Nice control Pinmember(Nick Waelti)0:11 28 Jun '07  
GeneralRe: Nice control Pinmemberthe-rpd6:40 28 Jun '07  
GeneralUse in applications PinmemberBryanTKinkel3:40 12 Jun '07  
AnswerRe: Use in applications PinmemberNick Waelti3:55 12 Jun '07  
GeneralRe: Use in applications PinmemberBryanTKinkel4:29 13 Jun '07  
GeneralRe: Use Commercial in applications PinmemberMatt Lowrance6:39 26 Sep '07  
GeneralRe: Use Commercial in applications PinmemberNick Waelti20:19 26 Sep '07  
GeneralPanel behind not visible PinmemberJonnyNordin2:17 9 Jun '07  
Questionmodify color( ) with code ? PinmemberHqrts0:56 30 May '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 24 Mar 2006
Article Copyright 2006 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid