Click here to Skip to main content
15,883,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to make a round status strip button. I have the images for the various states (normal, mouse hovering (highlighted) and clicked (a bit darker). How do I do this?

Thanks,
Rahul
Posted

The easiest way is to use an image format that supports transparency: PNG is a good one. Use your favourite graphics program to make the area outside the circle transparent, and you are done.

There are alternatives, like setting the Region property for the button to the required circle, but they are a lot more complex, and can give bad results if you do not keep the code in step with the images.

I use the transparent method myself.
 
Share this answer
 
I have the images ready in PNG. All I need to do now is to implement them. Should I add a normal button and change some properties or something?

Thanks
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900