public TextArea() { base.RefreshAllow = false; gFont = new Font("宋体", 9); gFM = new Fonts.Manager(gFont); gColor = Color.Black; gnLineHeight = 18; base.ShadowsSize = 2; base.BorderSize = 1; base.SetPadding(0); base.BackgroundColor = Color.FromArgb(0, 0, 0, 0); base.ShadowsColor = Color.FromArgb(0x22, 0x22, 0x22); base.BorderColor = Color.FromArgb(0x88, 0x88, 0x88); gItems = new List<TextAreaClass.LineText>(); SetNullText(); SetSelectPos(0, 0); gVScroll = new VerticalScroll(); gVScroll.Absolute = true; gVScroll.Name = "VerticalScroll"; gVScroll.BackgroundColor = Color.FromArgb(200, 0x22, 0x22, 0x22); gVScroll.SetBounds(base.DisplayRectangle.Width - SCROLL_SIZE, 0, SCROLL_SIZE, base.DisplayRectangle.Height); gVScroll.MaxValue = 100; gVScroll.Visible = true; gVScroll.zIndex = 1; gVScroll.ValueChanged += GVScroll_ValueChanged; base.Controls.Add(gVScroll); base.RefreshAllow = true; }
public TextControlObject() { base.RefreshAllow = false; gText = ""; gFont = new Font("宋体", 9); gFM = new Fonts.Manager(gFont); gColor = Color.Black; base.RefreshAllow = true; //base.Refresh(); }