-
谷 歌 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
-
BUTTON按钮的美化,具有XP按钮风格
BUTTON按钮的美化,具有XP按钮风格-BUTTON button landscaping with XP button style
- 2022-12-04 14:10:03下载
- 积分:1
-
此代码可以实现对任意颜色的按钮的添加
此代码可以实现对任意颜色的按钮的添加-This code can be any color of the add button. . .
- 2022-09-14 05:05:03下载
- 积分:1
-
CButtonST_Demo.rar
按钮类,很牛
CButtonST_Demo.rar
按钮类,很牛-CButtonST_Demo.rar button type, I am cow
- 2022-07-12 05:29:29下载
- 积分:1
-
该小软件利用vb的基本控件,实现了三维图象的显示,只要按规定的格式输入数据,3D图就立马显示了!...
该小软件利用vb的基本控件,实现了三维图象的显示,只要按规定的格式输入数据,3D图就立马显示了!-vb use the basic controls, achieved a 3D image, as long as the required input data format, 3D map display on quickly!
- 2022-03-03 21:27:17下载
- 积分:1
-
这是一个关于在按钮上加载图片的动态连接库,他封装了很多函数,我只做了其中的一部分,很实用的。...
这是一个关于在按钮上加载图片的动态连接库,他封装了很多函数,我只做了其中的一部分,很实用的。-This is a button on the loading pictures on the dynamic link library, he Packaging, a lot of functions, I only had one part, very practical.
- 2022-04-23 12:18:40下载
- 积分:1
-
CButtonST_demo
CButtonST的源代码,漂亮(CButtonST the source code, beautiful)
- 2007-12-21 10:19:50下载
- 积分:1
-
MFC框架设计
资源描述MFC详细的代码,适合提高自己的MFC编程能力
- 2022-01-22 04:15:51下载
- 积分:1
-
DOS 下Borlandc 里立体Button的实现,
包括按钮label,
DOS 下Borlandc 里立体Button的实现,
包括按钮label,-DOS under Borlandc in the realization of three-dimensional Button, including the button label,
- 2022-01-26 05:52:36下载
- 积分:1
-
这个程序中包含多种位图按钮,适合学习界面按钮的设计,程序也并不复杂,相信很容易看懂的...
这个程序中包含多种位图按钮,适合学习界面按钮的设计,程序也并不复杂,相信很容易看懂的-The program includes a variety of bitmap button, the button interface is suitable to study the design, the procedures are not complicated, I believe that is easy to understand the
- 2022-12-29 00:55:04下载
- 积分:1