mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-02-17 10:33:03 -07:00
39 lines
765 B
C#
39 lines
765 B
C#
using System.Windows.Forms;
|
|
using System.Drawing;
|
|
|
|
namespace SpiffCode {
|
|
public class ScToggleButton : CheckBox {
|
|
new public bool CanFocus {
|
|
get {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
override protected bool ShowFocusCues {
|
|
get {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
new public bool IsDefault {
|
|
get {
|
|
base.IsDefault = false;
|
|
return false;
|
|
}
|
|
set {
|
|
base.IsDefault = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
public class ScBorder : Control {
|
|
override protected void OnPaint(PaintEventArgs e) {
|
|
ControlPaint.DrawBorder(e.Graphics, ClientRectangle,
|
|
Color.Black, 0, ButtonBorderStyle.None,
|
|
SystemColors.ControlDark, 1, ButtonBorderStyle.Solid,
|
|
Color.Black, 0, ButtonBorderStyle.None,
|
|
SystemColors.ControlLight, 1, ButtonBorderStyle.Solid);
|
|
}
|
|
}
|
|
}
|