hostile-takeover/AniMax/MiscControls.cs
2014-07-06 17:47:28 -07:00

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);
}
}
}