public UITabControl() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); DoubleBuffered = true; UpdateStyles(); ItemSize = new Size(150, 40); DrawMode = TabDrawMode.OwnerDrawFixed; Font = UIFontColor.Font(); AfterSetFillColor(FillColor); Version = UIGlobal.Version; Helper = new UITabControlHelper(this); timer = new Timer(); timer.Interval = 500; timer.Tick += Timer_Tick; DisposeTabPageAfterRemove = true; AutoClosePage = true; tabSelectedForeColor = UIStyles.Blue.TabControlTabSelectedColor; tabSelectedHighColor = UIStyles.Blue.TabControlTabSelectedColor; _fillColor = UIStyles.Blue.TabControlBackColor; }
public UITabControl() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.DoubleBuffer, true); ItemSize = new Size(150, 40); DrawMode = TabDrawMode.OwnerDrawFixed; Font = UIFontColor.Font; AfterSetFillColor(FillColor); Size = new Size(450, 270); Version = UIGlobal.Version; Helper = new UITabControlHelper(this); }
public UITabControl() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); DoubleBuffered = true; UpdateStyles(); ItemSize = new Size(150, 40); DrawMode = TabDrawMode.OwnerDrawFixed; Font = UIFontColor.Font; AfterSetFillColor(FillColor); Size = new Size(450, 270); Version = UIGlobal.Version; Helper = new UITabControlHelper(this); timer.Interval = 500; timer.Tick += Timer_Tick; }