模块主窗体的流程控制按钮图标设计参考
作者:C/S框架网  发布日期:2012-05-11 21:58:37
  模块主窗体的流程控制按钮图标设计参考

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


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


贴图图片



贴图图片



贴图图片


贴图图片


贴图图片


贴图图片



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



C# Code:

private void ucLabelButton2_Click(object sender, EventArgs e)
{  
   //打开窗体    
}





C/S框架网|原创精神.创造价值.打造精品


扫一扫加作者微信
C/S框架网作者微信 C/S框架网|原创作品.质量保障.竭诚为您服务

上一篇 下一篇