Click here to Skip to main content
Click here to Skip to main content
Go to top

Elongated Buttons, Rounded cornered Groupboxes and Labels of Trapeziums Shaped

, 20 May 2004
Rate this:
Please Sign up or sign in to vote.
This article shows how to create elongated buttons, rounded cornered groupboxes and labels of trapezium shape

Sample screenshot

Introduction

This is a article as to how to create buttons, groupboxes and labels of different shapes using different GDI+ Functions. This example uses GraphicsPath() functions and others. To Create  Elongated buttons, Rounded cornered groupbox and Trapezium labels we are using the a GrahicsPath() object and added a semicircle to the left and right and a rectangle in between for the elongated shape. To Create a trapezium shape for the labels I have used the client rectangle and created a polygon with points to the three corners of the clientrectangle and the top right corner i have reduced the width by 20 pixels. for the drop shadow labels i have got shadow colors by using alpha index of black colors and written the text as many times as the shadow length is specified increasing the left and top position by 1 pixels for each iteration. Also used control's Region Property to specify non regular shaped i.e. non rectangular shape of the control.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Shouvik
Web Developer
India India
My mail ID is shouvik@lycos.com

Comments and Discussions

 
QuestionButton text align Pinmemberdrummers17-Sep-14 9:50 
Questionthank you button super PinmemberHakan Arslantas27-Mar-13 11:01 
Generalthank you Pinmemberzoryz16-Nov-09 4:58 
Generalis it fine is I use ur code Pinmemberhamletj27-Mar-07 2:35 
GeneralIn c# Pinmemberfhunth12-Aug-04 5:16 
GeneralRe: In c# PinmemberShouvik18-Aug-04 20:00 
GeneralRe: In c# Pinmemberspvarapu5-May-05 3:23 
Generalconvert to server sidec ode Pinmemberwebber12345631-Jul-04 13:24 
Questionplop ? PinmemberEpoque5119-Jul-04 4:58 
AnswerRe: plop ? PinmemberShouvik18-Aug-04 19:55 
GeneralThings to add Pinmembermav.northwind5-Dec-03 20:48 
GeneralRe: Things to add PinmemberShehzad Salim6-Dec-03 0:46 

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 | Mobile
Web04 | 2.8.140922.1 | Last Updated 21 May 2004
Article Copyright 2003 by Shouvik
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid