21 lines
480 B
C#
21 lines
480 B
C#
using System.Drawing;
|
|
using System.Drawing.Drawing2D;
|
|
using System.Drawing.Text;
|
|
using System.Windows.Forms;
|
|
|
|
internal class Ctl : Control
|
|
{
|
|
public Ctl()
|
|
{
|
|
SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, value: true);
|
|
BackColor = G.Card;
|
|
Cursor = Cursors.Hand;
|
|
}
|
|
|
|
protected void Prep(Graphics g)
|
|
{
|
|
g.SmoothingMode = SmoothingMode.AntiAlias;
|
|
g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
|
|
}
|
|
}
|