------ #### Itrycn_Project2 V1.0.2106.1201 - *.[新增]新增加入皮肤功能。 - *.[新增]对话框全部使用皮肤。 - *.[新增]新增加入扫描模板,快速开发扫描功能。 - *.[改进]公共变量进行区分设置,更加规范。
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Windows.Forms.Design;
|
|
using System.Drawing;
|
|
|
|
namespace _SCREEN_CAPTURE
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
internal class ToolButtonDesigner : ControlDesigner
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="pe"></param>
|
|
protected override void OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe) {
|
|
Pen p = new Pen(Color.SteelBlue, 1)
|
|
{
|
|
DashStyle = System.Drawing.Drawing2D.DashStyle.Dot
|
|
};
|
|
pe.Graphics.DrawRectangle(p, 0, 0, pe.ClipRectangle.Width - 1, 20);
|
|
p.Dispose();
|
|
base.OnPaintAdornments(pe);
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override SelectionRules SelectionRules {
|
|
get {
|
|
return base.SelectionRules & ~SelectionRules.AllSizeable;
|
|
}
|
|
}
|
|
}
|
|
}
|