-
谷 歌 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
-
做出正确的翻转
make correct rollover
- 2022-07-11 06:40:17下载
- 积分:1
-
表单上的按钮增加程序使用VB柱的制备…
一个基于VB编写的在窗体栏上加按钮的程序,用到trayform.ocx控件-a preparation for the VB column on the Form button increases the procedures used trayform.ocx Controls
- 2022-09-29 05:30:03下载
- 积分:1
-
利用modem收发DTMF码,稳定可靠,通过测试
利用modem收发DTMF码,稳定可靠,通过测试-MSComm DTMF
- 2022-02-01 01:48:01下载
- 积分:1
-
. net2003 environment, C# realize, and picture buttons.
.net2003环境下,C#实现的,图片按钮。-. net2003 environment, C# realize, and picture buttons.
- 2023-04-13 11:45:03下载
- 积分:1
-
在mfc下制作一个gif按钮,有源码,已经在VC调试通过
在mfc下制作一个gif按钮,有源码,已经在VC调试通过-The mfc produced under a gif button, there is source code, has been adopted in the VC debugger
- 2022-03-02 01:29:53下载
- 积分:1
-
很好的时间控件,只需要在vb中加载就可以用
很好的时间控件,只需要在vb中加载就可以用-good time controls in vb only need to load it may
- 2022-05-30 12:57:48下载
- 积分:1
-
一个用于测试Struct结构体的程序,入门级!
一个用于测试Struct结构体的程序,入门级!-Struct a structure for testing procedures, entry-level!
- 2023-04-17 05:10:03下载
- 积分:1
-
增强版ComboBox,可以像窗口一样来拉伸。
增强版ComboBox,可以像窗口一样来拉伸。-Enhanced ComboBox, can be the same as the window to stretch.
- 2022-04-24 16:00:42下载
- 积分:1
-
GDI函数绘制的高效,非常漂亮的自绘按扭.
GDI函数绘制的高效,非常漂亮的自绘按扭.-GDI drawing functions efficient, very beautiful painting from the buttons.
- 2023-08-05 13:15:04下载
- 积分:1