📄 xconversationtip.cs
字号:
namespace Imps.Client.Pc.BizControls
{
using System;
using System.Drawing;
using System.Windows.Forms;
public class XConversationTip : XTipEx
{
private Color _lineColor = Color.FromArgb(0xff, 0xff, 0xff);
protected override void OnBackColorChanged(EventArgs e)
{
base.OnBackColorChanged(e);
if (this.BackColor != Color.Transparent)
{
base.richTextBox1.BackColor = this.BackColor;
}
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if (base.Visible)
{
using (Pen pen = new Pen(this._lineColor))
{
e.Graphics.DrawLine(pen, new Point(0, base.Height - 1), new Point(base.Width, base.Height - 1));
}
}
}
protected override void ResizeHeight()
{
if (base.Height != (base.richTextBox1.Height + 1))
{
base._tipEditShowMgr.SelectionStart = 0;
}
base.Height = base.richTextBox1.Height + 1;
}
public Color LineColor
{
get
{
return this._lineColor;
}
set
{
this._lineColor = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -