Exemplo n.º 1
0
 /// <summary>
 /// 设置PaleCaption灰色样式
 /// </summary>
 void SetPaleCaption()
 {
     userCaptionStyle = CaptionPanelStyleEnum.paleCaption;
     captionPanelParmeter.IsCaptionSingleColor    = true;
     captionPanelParmeter.CaptionBackColor        = Color.FromArgb(221, 231, 238);
     captionPanelParmeter.CaptionForeColor        = Color.FromArgb(62, 22, 110);
     captionPanelParmeter.IsUserCaptionBottomLine = true;
     captionPanelParmeter.BorderLineColor         = Color.FromArgb(118, 153, 199);
     captionPanelParmeter.IsBorderLine            = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 设置SetOffice2007Panel
 /// </summary>
 void SetOffice2007Panel()
 {
     userCaptionStyle = CaptionPanelStyleEnum.Office2007Panel;
     captionPanelParmeter.IsCaptionSingleColor    = true;
     captionPanelParmeter.IsUserCaptionBottomLine = false;
     captionPanelParmeter.CaptionBackColor        = Color.FromArgb(184, 207, 233);
     captionPanelParmeter.CaptionForeColor        = Color.FromArgb(21, 47, 147);
     captionPanelParmeter.BorderLineColor         = Color.FromArgb(118, 153, 199);
     captionPanelParmeter.IsUserCaptionBottomLine = false;
     captionPanelParmeter.IsBorderLine            = true;
 }
Exemplo n.º 3
0
 protected override void OnEnabledChanged(EventArgs e)
 {
     if (!this.Enabled)
     {
         if (!m_IsMouseEnter)
         {
             cpse_DefualStyle = this.SetCaptionPanelStyle;
         }
         this.SetCaptionPanelStyle = UnEnableStyle;
     }
     else
     {
         this.SetCaptionPanelStyle = cpse_DefualStyle;
     }
     base.OnEnabledChanged(e);
 }
Exemplo n.º 4
0
 protected override void OnEnabledChanged(EventArgs e)
 {
     
     if (!this.Enabled)
     {
         if (!m_IsMouseEnter)
         {
             cpse_DefualStyle = this.SetCaptionPanelStyle;
         }
         this.SetCaptionPanelStyle = UnEnableStyle;
     }
     else
     {
         this.SetCaptionPanelStyle = cpse_DefualStyle;
     }
     base.OnEnabledChanged(e);
 }
Exemplo n.º 5
0
        /// <summary>
        /// 鼠标进入
        /// </summary>
        /// <param name="e"></param>
        protected override void OnMouseEnter(EventArgs e)
        {
            m_IsMouseEnter   = true;
            cpse_DefualStyle = this.SetCaptionPanelStyle;
            switch (m_ButtonStyle)
            {
            case ButtonCaptionPanelButtonStyle.WindowsStyle:
            {
                this.SetCaptionPanelStyle = CaptionPanelStyleEnum.Office2007Panel;
                break;
            }

            case ButtonCaptionPanelButtonStyle.Office2003Style:
            {
                this.SetCaptionPanelStyle = CaptionPanelStyleEnum.MouseEnterStyle;
                break;
            }
            }
            base.OnMouseEnter(e);
        }
Exemplo n.º 6
0
 /// <summary>
 /// 设置SetOffice2007Panel
 /// </summary>
 void SetOffice2007Panel()
 {
     userCaptionStyle = CaptionPanelStyleEnum.Office2007Panel;
     captionPanelParmeter.IsCaptionSingleColor = true;
     captionPanelParmeter.IsUserCaptionBottomLine = false;
     captionPanelParmeter.CaptionBackColor = Color.FromArgb(184, 207, 233);
     captionPanelParmeter.CaptionForeColor = Color.FromArgb(21, 47, 147);
     captionPanelParmeter.BorderLineColor = Color.FromArgb(118, 153, 199);
     captionPanelParmeter.IsUserCaptionBottomLine = false;
     captionPanelParmeter.IsBorderLine = true;
 }
Exemplo n.º 7
0
  /// <summary>
  /// 设置PaleCaption灰色样式
  /// </summary>
 void SetPaleCaption()
  {
      userCaptionStyle = CaptionPanelStyleEnum.paleCaption;
      captionPanelParmeter.IsCaptionSingleColor = true;
      captionPanelParmeter.CaptionBackColor = Color.FromArgb(221, 231, 238);
      captionPanelParmeter.CaptionForeColor = Color.FromArgb(62,22,110);
      captionPanelParmeter.IsUserCaptionBottomLine = true;
      captionPanelParmeter.BorderLineColor = Color.FromArgb(118, 153, 199);
      captionPanelParmeter.IsBorderLine = true;
     
 
  }
Exemplo n.º 8
0
 /// <summary>
 /// 鼠标进入
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseEnter(EventArgs e)
 {
     m_IsMouseEnter = true;
    cpse_DefualStyle = this.SetCaptionPanelStyle;
     switch(m_ButtonStyle)
    {
        case ButtonCaptionPanelButtonStyle.WindowsStyle:
            {
                this.SetCaptionPanelStyle = CaptionPanelStyleEnum.Office2007Panel;
                break;
            }
        case ButtonCaptionPanelButtonStyle.Office2003Style:
            {
                this.SetCaptionPanelStyle = CaptionPanelStyleEnum.MouseEnterStyle;
                break;
            }
     }
     base.OnMouseEnter(e);
 }