|
-
Dec 22nd, 2007, 04:22 PM
#1
Thread Starter
Member
Custom command button for media player
Hi i would like to know if there is anyway to make a custom command button using activex. i would like the command button to be a circle so it would have to be a shape. Does anyone have any ideas on how i could start to create a circle command button? (like the ones in wmp 11)
please help
cheers
-
Jan 29th, 2008, 06:08 PM
#2
Thread Starter
Member
Re: Custom command button for media player
surely sum1 knows there are ones to buy on the web but i want to make one
-
Feb 1st, 2008, 08:39 AM
#3
Re: Custom command button for media player
What programming language would you be using?
-
Feb 15th, 2009, 10:00 AM
#4
Junior Member
Re: Custom command button for media player
< advertising link removed by moderator >
-
Feb 16th, 2009, 01:24 PM
#5
Re: Custom command button for media player
There are several examples/postings on this site and others like PSC.com of custom buttons. I don't know your experience level, but custom buttons are not exactly easy.
To create a cricle shape, you can....
1. Use the MaskPicture and/or MaskColor properties of the usercontrol
2. Use APIs (CreateEllipticRgn & SetWindowRgn) to apply a circular shape
Another option is to use a picturebox, borderless, and use the aforementioned APIs to create the circular shape. Pictureboxes, unlike shape controls, have most of the needed events (i.e., click, gotfocus, etc, etc).
If you want to go the usercontrol route, this might help and at very least give you some ideas.
Here is a "template" I wrote for custom buttons. The template does not draw the button and it does not apply shapes to it, those will be your responsibility. What the template does is handle all the typical button events a normal button will, so it is pre-coded in that aspect. It does have a routine that will be called when the button needs to be redrawn. Not saying the template will be suitable for you, but it will give you an idea of some of the complexity involved.
A great link regarding usercontrols
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
|