-
谷 歌 Chrome进度条
翻译 maninwest@Codeforge 作者:VallarasuS@CodeProject这里展示如何从头开始创建一个 Go ogle Chrome 主题的 进度条。任何进度条控件都依赖于一个值及表示进度值的图形。 Goo gle Chrome 下载程序有个圆圈表示进度。使用代码ChromeProgressBaris 跟 Chrome ProgressBar 的工作原理一样。将进度值转化为一个圆圈图形来表示.private void PaintProgress(PaintEventArgs e)
{ using( SolidBrush progressBrush = new SolidBrush(this.ProgressColor))
{
Rectangle rect = LayoutInternal.ProgressRectangle;
rect.Inflate(-2, -2);
rect.Height -= 2; rect.Width -= 2; float startAngle = -90; float sweepAngle = Progress / 100 * 360;
e.Graphics.FillPie(progressBrush, rect, startAngle, sweepAngle);
}
}这里是如何使用图形路径和4条线绘制圆圈和细分部分。对 Graphics 对象的剪切部分进行调整来剪切圆圈外的线。private void PaintBorder(PaintEventArgs e)
{
GraphicsPath borderPath = new GraphicsPath();
Rectangle progressRect = LayoutInternal.Prog
- 2022-08-08 07:55:37下载
- 积分:1
-
编写自己的按钮
编写自己的按钮-Write your own button
- 2022-02-16 06:37:50下载
- 积分:1
-
不规则的按钮显示
不规则的按钮显示-irregular button shows
- 2022-01-25 18:21:07下载
- 积分:1
-
vb.net打印,并帮你完成VB打印
VB.NET的打印,帮助你在VB下完成打印-VB.NET print, and help you complete the VB Print
- 2022-01-21 05:39:28下载
- 积分:1
-
很不错的自绘按钮类,不仅是圆形还,可以粘贴图片。
很不错的自绘按钮类,不仅是圆形还,可以粘贴图片。-Very good self-drawn button class, not only round also, you can paste the picture.
- 2022-04-24 22:34:20下载
- 积分:1
-
A class that turns rectangular buttons into elliptic buttons 圆形按钮
A class that turns rectangular buttons into elliptic buttons 圆形按钮-A class that turns into rectangular buttons elliptic buttons circular button
- 2022-02-11 17:06:30下载
- 积分:1
-
TC 开发内存驻留程序
TC 开发内存驻留程序-TC presence memory development procedures
- 2022-07-17 13:47:36下载
- 积分:1
-
图形按钮控件,旋转按钮,在按钮上的绿色旋钮旋转…
图形按钮控件,旋转按钮,在其按钮上的绿色旋钮会跟着转动。-graphics button controls, rotating button, in his green button on the knob rotation will follow.
- 2022-03-04 18:58:58下载
- 积分:1
-
一段很好的三态树代码,有需要的朋友可以下载看看哦
一段很好的三态树代码,有需要的朋友可以下载看看哦 -For some good tri-state tree code, there is a need to see if friends can download Oh
- 2022-01-26 19:44:49下载
- 积分:1
-
扩展CButton类制作风格独特的按钮
扩展CButton类制作风格独特的按钮-expansion CButton category produced a unique style button
- 2022-03-18 01:49:52下载
- 积分:1