17 using System.Windows.Forms;
19 namespace sage.ew.formul.ButtonTittle.Themes
21 internal class Styled : ThemeBase
23 public Styled(Form form)
30 get {
return Color.Transparent; }
33 public override Size SystemButtonSize
37 if (base.systemButtonSize == Size.Empty)
41 Size size = base.SystemButtonSize;
44 base.systemButtonSize = size;
48 Size size = SystemInformation.CaptionButtonSize;
51 base.systemButtonSize = size;
54 return base.systemButtonSize;
58 public override Size FrameBorder
62 if (base.frameBorder == Size.Empty)
64 switch (form.FormBorderStyle)
66 case FormBorderStyle.SizableToolWindow:
67 case FormBorderStyle.Sizable:
68 base.frameBorder =
new Size(SystemInformation.FrameBorderSize.Width + 1,
69 SystemInformation.FrameBorderSize.Height + 1);
72 base.frameBorder =
new Size(SystemInformation.Border3DSize.Width + 2,
73 SystemInformation.Border3DSize.Height + 2);
77 return base.frameBorder;