模块主窗体的流程控制按钮图标设计参考
模块主窗体的流程控制按钮图标设计参考
模块主窗体的流程控制按钮图标设计参考





C# Code:
public class ucLabelButton : LabelControl
{
private BorderStyles _BorderStyleFocus = BorderStyles.Office2003;
public ucLabelButton()
{
this.Text = "";
this.AutoSizeMode = LabelAutoSizeMode.None;
this.MouseEnter = new EventHandler(ucLabelButton_MouseEnter);
this.MouseLeave = new EventHandler(ucLabelButton_MouseLeave);
this.Cursor = Cursors.Hand;
this.CreateToolTipController();
}
private void CreateToolTipController()
{
this.ToolTipController = new DevExpress.Utils.ToolTipController();
this.ToolTipController.AllowHtmlText = true;
this.ToolTipController.InitialDelay = 300;
this.ToolTipController.Rounded = true;
this.ToolTipController.ShowBeak = true;
this.ToolTipController.ToolTipType = DevExpress.Utils.ToolTipType.Standard;
this.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information;
}
void ucLabelButton_MouseLeave(object sender, EventArgs e)
{
this.BorderStyle = BorderStyles.NoBorder;
}
void ucLabelButton_MouseEnter(object sender, EventArgs e)
{
this.BorderStyle = _BorderStyleFocus;
}
[Browsable(false)]
public override BorderStyles BorderStyle
{
get
{
return base.BorderStyle;
}
set
{
base.BorderStyle = value;
}
}
[Category("Appearance")]
[Description("Gets or sets the control's border style.")]
public BorderStyles BorderStyleFocus
{
get { return _BorderStyleFocus; }
set { _BorderStyleFocus = value; }
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
public class ucLabelButton : LabelControl
{
private BorderStyles _BorderStyleFocus = BorderStyles.Office2003;
public ucLabelButton()
{
this.Text = "";
this.AutoSizeMode = LabelAutoSizeMode.None;
this.MouseEnter = new EventHandler(ucLabelButton_MouseEnter);
this.MouseLeave = new EventHandler(ucLabelButton_MouseLeave);
this.Cursor = Cursors.Hand;
this.CreateToolTipController();
}
private void CreateToolTipController()
{
this.ToolTipController = new DevExpress.Utils.ToolTipController();
this.ToolTipController.AllowHtmlText = true;
this.ToolTipController.InitialDelay = 300;
this.ToolTipController.Rounded = true;
this.ToolTipController.ShowBeak = true;
this.ToolTipController.ToolTipType = DevExpress.Utils.ToolTipType.Standard;
this.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information;
}
void ucLabelButton_MouseLeave(object sender, EventArgs e)
{
this.BorderStyle = BorderStyles.NoBorder;
}
void ucLabelButton_MouseEnter(object sender, EventArgs e)
{
this.BorderStyle = _BorderStyleFocus;
}
[Browsable(false)]
public override BorderStyles BorderStyle
{
get
{
return base.BorderStyle;
}
set
{
base.BorderStyle = value;
}
}
[Category("Appearance")]
[Description("Gets or sets the control's border style.")]
public BorderStyles BorderStyleFocus
{
get { return _BorderStyleFocus; }
set { _BorderStyleFocus = value; }
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
C# Code:
private void ucLabelButton2_Click(object sender, EventArgs e)
{
//打开窗体
}
private void ucLabelButton2_Click(object sender, EventArgs e)
{
//打开窗体
}

参考文档:
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
在线客服
