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


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





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)
{
//打开窗体
}

扫一扫加作者微信


版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网