Click here to Skip to main content
12,698,012 members (24,064 online)
Click here to Skip to main content
Add your own
alternative version

Stats

216.1K views
9K downloads
119 bookmarked
Posted

AlphaGradientPanel, an extended panel

, 24 Mar 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Nicolas Wälti
Software Developer (Senior)
Switzerland Switzerland
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralRe: Nice control Pin
the-rpd28-Jun-07 7:40
memberthe-rpd28-Jun-07 7:40 
GeneralUse in applications Pin
BryanTKinkel12-Jun-07 4:40
memberBryanTKinkel12-Jun-07 4:40 
AnswerRe: Use in applications Pin
Nick Waelti12-Jun-07 4:55
memberNick Waelti12-Jun-07 4:55 
GeneralRe: Use in applications Pin
BryanTKinkel13-Jun-07 5:29
memberBryanTKinkel13-Jun-07 5:29 
Nick - I sent you a private email about the application.

Thank you for the permission. More details are in the email.

Is there a way to increase the border width on the panel control?

-- Bryan
GeneralRe: Use Commercial in applications Pin
Matt Lowrance26-Sep-07 7:39
memberMatt Lowrance26-Sep-07 7:39 
GeneralRe: Use Commercial in applications Pin
Nick Waelti26-Sep-07 21:19
memberNick Waelti26-Sep-07 21:19 
GeneralPanel behind not visible Pin
JonnyNordin9-Jun-07 3:17
memberJonnyNordin9-Jun-07 3:17 
Questionmodify color( ) with code ? Pin
Hqrts30-May-07 1:56
memberHqrts30-May-07 1:56 
GeneralTra sparency Pin
spaceboy17-May-07 5:55
memberspaceboy17-May-07 5:55 
QuestionPanel Bugs [modified] Pin
tricos26-Mar-07 9:44
membertricos26-Mar-07 9:44 

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

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

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