圆形状态条按钮 [英] round status strip button

查看:119
本文介绍了圆形状态条按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想制作圆形状态条按钮。我有各种状态的图像(正常,鼠标悬停(突出显示)和点击(有点深)。我该怎么做?



谢谢,

Rahul

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

推荐答案

最简单的方法是使用支持透明度的图像格式:PNG是一个很好的方法。使用您喜欢的图形程序制作圆圈外面的区域透明,你就完成了。



还有其他选择,比如将按钮的Region属性设置为所需的圆圈,但它们很多更复杂,如果不将代码与图像保持一致,可能会产生不良结果。



我自己使用透明方法。
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.


我已经准备好了PNG中的图像。现在我需要做的就是实现它们。我应该添加一个普通的按钮并改变一些属性吗?



谢谢
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


这篇关于圆形状态条按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆