-
Sep 18th, 2012, 10:36 AM
#1
Rounded Button
This is my second attempt at making a custom control. I've decided to make a rounded button, simply because I haven't seen one posted here on the forums!
Features:
- It's a button that is round
- Has left and right arrows(see picture below)
Drawbacks:
- None as far as I can tell. I've inherited the button control to try to make sure that there are no errors or drawbacks.
Plans:
- I will probolly make a feature where you can arc the text in the control rather than it being left to right.
Custom Properties:
- _Arrow = Gives you the option to add a left or right faced arrow to the button
- _ArrowColor = If you've decided to use the arrow in the button, this gets or sets the arrow's color
Screenshot:
Describing the screenshot:
In this screenshot, I've set the arrow to left, the arrow's color to white, the button's backcolor to highlight blue, and the flatstyle as popup.
I'm up to any suggestions if y'all have any!
File:
Rounded Button.zip
Update!
I use OnPaint instead of Paint so that the changes are reflected in the designer view.
Last edited by dday9; May 31st, 2013 at 01:39 PM.
-
Sep 19th, 2012, 09:16 AM
#2
Re: Rounded Button
I have found something minor with this control. If you leave the flatstyle as default, the very bottom and very right side of the button show a piece of a regular button. It's hard to describe, however if you test it out, you'll see what I mean.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|