-
谷 歌 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
-
树型控件
这是一个有关树型空间的远代码,对于初学着有一定的帮住...
树型控件
这是一个有关树型空间的远代码,对于初学着有一定的帮住-Tree Controls This is a space far from the code tree for the beginner with a certain degree of help to live
- 2022-08-18 10:23:57下载
- 积分:1
-
audible button will be the original code, the more interesting, Oh
会发声的按钮的原代码, 比较有趣, -audible button will be the original code, the more interesting, Oh
- 2022-02-01 13:50:28下载
- 积分:1
-
类似tab控件的一个按钮做的group控件
类似tab控件的一个按钮做的group控件- Similar tab controls group which a button does to control
- 2022-02-05 18:21:40下载
- 积分:1
-
通讯录管理系统,Visual C++开发,已测试成功。
通讯录管理系统,Visual C++开发,已测试成功。-Address manage
- 2022-08-22 18:52:43下载
- 积分:1
-
按键播放声音、停止、循环等功能,可以有效实现多首播放功能。...
按键播放声音、停止、循环等功能,可以有效实现多首播放功能。-keys to play a sound, stop, recycling and other functions, can be more effectively achieved the first player.
- 2022-01-26 07:44:22下载
- 积分:1
-
EXCEL加载宏(ExcelAddin)是一套用于开发Excel 加载宏( 插件) 的免费开发框架...
EXCEL加载宏(ExcelAddin)是一套用于开发Excel 加载宏( 插件) 的免费开发框架-EXCEL Add-in (ExcelAddin) is a set for the development of Excel add-in (plug-in) of free development framework
- 2022-05-05 14:16:33下载
- 积分:1
-
By pressing the buttons, for example, dynamically generated control and to achie...
以按钮为例,动态生成控件并实现控件拉伸,可以生成多个控件-By pressing the buttons, for example, dynamically generated control and to achieve the control stretch
- 2022-08-07 02:14:20下载
- 积分:1
-
介绍一个CButton的派生类CLinkButton,用此派生类制作的按钮具有以下特点:
1、按钮的外观类似静态控件类CStatic 产生的对象。
2、...
介绍一个CButton的派生类CLinkButton,用此派生类制作的按钮具有以下特点:
1、按钮的外观类似静态控件类CStatic 产生的对象。
2、当鼠标的光标移到按钮上,但并未按下时,光标改变形状,字体改变形状;按钮类似应用在工具条和菜单上的扁平钮效果。
3、当按钮按下时有立体感(凹凸)。-The introduction of a CButton derived class CLinkButton, use this button to create derived class has the following characteristics: 1, buttons, the appearance of similar types of static control CStatic object created. 2, when the mouse cursor over the button, but did not press when the cursor to change shape, change the font shape button similar applications in the toolbar and menu buttons on the effect of the flat. 3, when the button is pushed in a sense has a three-dimensional (convex).
- 2022-09-27 06:55:02下载
- 积分:1
-
six different styles of XP style button, the button with characteristics that ca...
六种不同样式的XP风格按钮,按钮各具特点,可以美化界面-six different styles of XP style button, the button with characteristics that can be beautified interface
- 2022-09-18 02:35:04下载
- 积分:1