中水晶按钮的程序生成的
做了一个控件,这样就可以告别图片按钮了:)
程序源代码:
using System;
using llections;
using ponentModel;
using awing;
using ta;
using rms;
using awing2D;
using xt;
namespace WindowsControlLibrary1
{
/// summary
/// UserControl1 的摘要说明。
/// /summary
public class UserControl1 : Button
{
/// summary
/// 必需的设计器变量。
/// /summary
private ntainer components = null;
private bool XiaCen=false;
private bool mouseMove=false;
private Color backColor;
public UserControl1()
{
// 该调用是 rms 窗体设计器所必需的。
InitializeComponent();
// TODO: 在 InitComponent 调用后添加任何初始化
backColor=ckColor;
//xt=String();
}
/// summary
/// 清理所有正在使用的资源。
/// /summary
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
spose();
每周吃鱼2~3次以上 }
spose( disposing );
}
#region 组件设计器生成的代码
/// summary
/// 设计器支持所需的方法 - 不要使用代码器
/// 修改此方法的内容。
/// /summary
private void InitializeComponent()
{
//
// UserControl1
//
useUp += new useEventHandler(erControl1_MouseUp);
int += new intEventHandler(erControl1_Paint);
useEnter += new entHandler(erControl1_MouseEnter);
yUp += new yEventHandler(erControl1_KeyUp);
yDown += new yEventHandler(erControl1_KeyDown);
ckColorChanged += new entHandler(erControl1_BackColorChanged);
useLeave += new entHandler(erControl1_MouseLeave);
useDown += new useEventHandler(erControl1_MouseDown);
}
#endregion
protected GraphicsPath GetGraphicsPath(Rectangle rect)
{
GraphicsPath ClientPath = new aphicsPath();
if(dth=0)
{
dth=1;
}
if(ight=0)
{
ight=1;
}
dArc(ft,p,ight,ight,90f,180f);
dArc(ight,p,ight,ight,270f,180f);
oseFigure();
return ClientPath;
}
protected GraphicsPath GetGraphicsPath1(Rectangle rect)
{
GraphicsPath ClientPath = new aphicsPath();
if(dth=0)
{
dth=1;
}
if(ight=0)
{
ight=1;
}
dArc(ft,p,ight,ight,190f,80f);
dArc(ight,p,ight,ight,270f,80f);
oseFigure();
return ClientPath;
}
查看本文来源
西宁治疗前列腺炎哪家好术后吃什么好
成都治疗癫痫费用
- 上一页:中正则表达式进行忽略大小写的字符串替换呢
- 下一页:中水晶按钮的程序生成
-
恭喜!千万粉丝网红“小刚学长”当爸,亲自帮妻子按摩不必要血栓
对于身为百万粉丝网成员的小马上,同窗来说,五四绝对是一个值得庆祝的往...
2024-09-05
-
职场情商课:掌控“现像效应”,发挥积极作用,遵从自己的内心
本文看点:惯常effect是心理学之外的专业术语,又指乐队烟火effect,又叫“随...
2024-07-27
-
热门 抱怨是最浪费力气且没用的事情。 内心强大,是抗击一切痛苦的前提。 活着比什么都重要,活在当下。
热门 抱怨是最浪费力气且就让的事情。 内心强盛,是抵御一切病痛的前提。...
2024-06-29
-
公职考试也看“家庭背景”,这3类人很有优势,考上机会很大!
公详的垄断压力却是是一年比一年大,每年省详、国详都是几十上百万人报上...
2024-06-23
-
【手慢无】Plus会员专享47元 京东自营帅气竞走雨衣
2022-06-23 09:18:04 所作:张军 随着夏末暴雨的预示,打工人出门需要更高的随...
2024-05-05
-
你曾经羡慕的人,在起初都貌似完美无缺
你以前喜欢的人,在先前都貌似完美无缺。即便当他逐渐四分五裂转化成一堆...
2024-02-23