Source/Editors/VisualCustomButton.cs
(完整代码) 1KB#if FRAMEWORK20
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace DevComponents.Editors
{
public class VisualCustomButton : VisualButton
{
#region Private Variables
#endregion
#region Events
#endregion
#region Constructor
#endregion
#region Internal Implementation
protected override void PaintButtonBackground(PaintInfo p, DevComponents.DotNetBar.Rendering.Office2007ButtonItemStateColorTable ct)
{
base.PaintButtonBackground(p, ct);
if (this.Text.Length == 0 && this.Image == null)
{
Point pt = new Point(RenderBounds.X + (RenderBounds.Width - 7) / 2, RenderBounds.Bottom - 6);
using (SolidBrush brush = new SolidBrush(ct.Text))
{
Size rs = new Size(2, 2);
for (int i = 0; i < 3; i++)
{
p.Graphics.FillRectangle(brush, new Rectangle(pt, rs));
pt.X += rs.Width + 1;
}
}
}
}
#endregion
}
}
#endif
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。