Click here to Skip to main content
Click here to Skip to main content

Simple Bevel Control

, 26 Jan 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
A simple control for visually grouping controls with edges / bevels
Sample Image - bevelcontrol.jpg


Recently, I ran into the problem of grouping components visually. I wasn't satisfied with panels and groupboxes so I searched for an alternative. After some Googling, I decided to write a simple control by myself.


"Good ol' Delphi" provided a nifty component called TBevel for visually grouping controls. It's not a container and acts only like a "spacer".

Controls like this are often used to divide buttons at the bottom of a form from the others above. Take a look at the "OK" and "Cancel" buttons in the screen shot. They are visually grouped together and divided from the rest.

Using the code

Provided are four additional properties:

BevelStyle Possible values:
public enum BevelStyle
BevelType Possible values:
public enum BevelType 
HighlightColor Possible values:
any Color
ShadowColor Possible values:
any Color

Points of Interest

Well, there are none... It's just a simple graphical control. Nothing special - but definitely a "nice to have".

There is only one thing I could mention here: The value BevelType.Spacer displays a dotted rect around the control only at designtime.


  • 26th January, 2007: Initial release


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


About the Author

Software Developer
Germany Germany
No Biography provided

Comments and Discussions

GeneralArtifacts when resizing PinmemberJustAResearcher6-Nov-09 10:51 
GeneralVery Nice Pinmembersunnyandy27-Sep-08 10:06 
QuestionHow about ControlPaint PinmemberOleg A.Lukin29-Jan-07 23:37 
AnswerRe: How about ControlPaint PinmemberOlliFromTor30-Jan-07 0:07 
GeneralToolbox Pinmemberfraveu29-Jan-07 8:51 
GeneralRe: Toolbox PinmemberOlliFromTor29-Jan-07 22:45 
GeneralRe: Toolbox [modified] Pinmemberfraveu30-Jan-07 3:48 
GeneralExcellent PinmemberPatrick Sears26-Jan-07 10:47 
GeneralNice Pinmemberricmil4226-Jan-07 8:25 
GeneralRe: Nice PinmemberIlíon29-Jan-07 6:18 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 26 Jan 2007
Article Copyright 2007 by OlliFromTor
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid