-
谷 歌 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
-
一个动画按钮用AVI动画来播放的,一个很小的程序,希望对您有用...
一个动画按钮用AVI动画来播放的,一个很小的程序,希望对您有用-an animation button AVI animation used to broadcast, a small procedures in the hope that useful to you
- 2023-07-04 23:05:04下载
- 积分:1
-
位图选择,不同状态不同位图
位图选择,不同状态不同位图-bitmap choice, different states of different bitmap
- 2022-08-13 12:13:27下载
- 积分:1
-
School in the small Programming
在学院学习的小编程-School in the small Programming
- 2022-01-25 17:14:55下载
- 积分:1
-
generally flat button, but with xp style, usage is still relatively big
一般的扁平按钮,同时具有xp风格,用途还是比较大的
-generally flat button, but with xp style, usage is still relatively big
- 2022-02-13 00:28:15下载
- 积分:1
-
关于为win32窗口编程,创建工具栏,菜单栏等窗口控件
关于为win32窗口编程,创建工具栏,菜单栏等窗口控件-Win32 programming on windows, create toolbars, menu bars, window controls, etc.
- 2022-08-23 21:23:03下载
- 积分:1
-
可以设置EnableWindow(FLASE)图片的BtnST类.
可以设置EnableWindow(FLASE)图片的BtnST类.-can set EnableWindow (FLASE) BtnST picture category.
- 2022-02-02 16:42:07下载
- 积分:1
-
icon contains various buttons
包含各种图标的按钮-icon contains various buttons
- 2022-01-25 22:15:21下载
- 积分: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
-
tree质量越高得到的下载个数越多(一般为200:上载5个,可以下载200个)。...
tree质量越高得到的下载个数越多(一般为200:上载5个,可以下载200个)。 -The higher the quality of the tree has been downloaded more number (normally 200: 5 uploaded, you can download 200).
- 2023-03-24 06:30:04下载
- 积分:1