| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
-
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Dongke.WinForm.Controls
- {
- /// <summary>
- /// 状态栏控件
- /// </summary>
- [ToolboxBitmap(typeof(StatusStrip))]
- public class SsrStatusStrip : StatusStrip, IDKControl, IAsyncControl
- {
- #region 构造函数
- /// <summary>
- /// 状态栏控件
- /// </summary>
- public SsrStatusStrip()
- {
- base.BackColor = Color.Transparent;
- base.Font = SystemFonts.DefaultFont;
- }
- #endregion
- #region 重写属性
- /// <summary>
- /// 获取或设置控件的背景色
- /// </summary>
- [DefaultValue(typeof(Color), "Transparent")]
- public new Color BackColor
- {
- get
- {
- return base.BackColor;
- }
- set
- {
- base.BackColor = value;
- }
- }
- /// <summary>
- /// 获取或设置用于在控件中显示文本的字体。
- /// </summary>
- [DefaultValue(typeof(Font), "宋体, 9pt")]
- public override Font Font
- {
- get
- {
- return base.Font;
- }
- set
- {
- base.Font = value;
- }
- }
- #endregion
- #region IAsyncControl 成员
- /// <summary>
- /// 异步处理开始
- /// </summary>
- /// <param name="doFocus"></param>
- public virtual void BeginAsync(ref bool doFocus)
- {
- }
- /// <summary>
- /// 异步处理结束
- /// </summary>
- public virtual void EndAsync()
- {
- }
- #endregion
- }
- }
|