-
谷 歌 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
-
USB device to check the program can be used USB device ID and program verificati...
USB设备检查程序可以使用USB设备ID和程序验证设备
- 2023-05-13 09:45:02下载
- 积分:1
-
在按钮上贴上位图,使按钮变得更漂亮。
在按钮上贴上位图,使按钮变得更漂亮。-posted in the upper map button, the button becomes more beautiful.
- 2022-06-14 04:23:22下载
- 积分:1
-
我的开关- Windows 表单控件l
翻译 maninwest@Codeforge 作者:JoelDz@CodeProject该控件是基于 Android 操作系统的 Switch View ,来自 lAPI 级别14。这个控件可以像传统开关一样开和关。背景我不是专业的编程人员。使用这个简单的编程语言我可以创建控件来解决特定需要。 在这里将为你展示使用 Visual Basic .NET 创建用户控件是多么简单。你可以下载项目查看设计和代码。使用代码MySwitch 类有一个重载的构造函数。你可以查看每个负载并初始化需要的属性。首先需要导入命名空间 JDS。 Imports JDS
Dim msSwitch As New MySwitch()这里,我使用默认构造函数,创建一个新的 MySwitch 类实例。这个实例会使用默认的类值。这个控件可以显示每个状态的文本或图像,这是使用ButtonStyle 属性实现的。msSwitch.ButtonStyle = ButtonStyles.Image " To display an image for each state.
msSwitch.ButtonStyle = ButtonStyles.Text " To display text for each state.可以通过属性ActivatedText,DeactivatedText和ActivatedImage,DeactivatedText 确定每个状态的文本和图像。如你所见,根据 ButtonStyle 属性值。每个状态都有伴随的文本或图像。
- 2022-02-03 12:38:42下载
- 积分:1
-
使窗口变透明的方法,可以创建出特殊形状的窗口
使窗口变透明的方法,可以创建出特殊形状的窗口-make changes transparent window, can create special shape of the window
- 2022-04-22 23:37:44下载
- 积分:1
-
Curing Comparator
Instability with
Hysteresis
Curing Comparator
Instability with
Hysteresis
- 2022-04-12 16:19:29下载
- 积分:1
-
三角型按钮,可以改变三角型方向及在按钮上加上标题。
三角型按钮,可以改变三角型方向及在按钮上加上标题。- The triangle button, may change the triangle direction and adds
on the title on the button.
- 2023-02-21 19:45:03下载
- 积分:1
-
MFC 托盘气泡
本程序演示了用vc6.0 MFC 如何创建托盘,并在托盘上显示气泡提示,(xp、win7均可),并提供了最新的shellapi.h(很多mfc编程需要用到该头文件),代码非常简单。
- 2022-06-01 09:47:07下载
- 积分:1
-
一个效果很好的outlookbar控件CXTOutBarCtrl .该控件来源于Xtreme Toolkit,我对其进行了修改,使其不依赖于类库独立存在....
一个效果很好的outlookbar控件CXTOutBarCtrl .该控件来源于Xtreme Toolkit,我对其进行了修改,使其不依赖于类库独立存在.-a good effect CXTOutBarCtrl outlookbar controls. Control comes from the Xtreme Toolkit, which I had been amended to make it independent from Class exist independently.
- 2022-01-21 22:53:32下载
- 积分:1
-
怎样实现XP风格按钮,是个VC++控件开发学习的好例子。
怎样实现XP风格按钮,是个VC++控件开发学习的好例子。-how to achieve XP style button control is the development of VC learning are good examples.
- 2023-06-08 11:10:03下载
- 积分:1