public PageViewer() { base.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserMouse | ControlStyles.Selectable | ControlStyles.Opaque | ControlStyles.UserPaint, true); base.SetStyle(ControlStyles.ContainerControl, false); this._toolTip = new RegionToolTip(this); this._focusIndex = -1; }
public TabControl() { base.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.Opaque | ControlStyles.UserPaint, true); this._tabCollection = new TabPageCollection(this); this._selectedIndex = -1; this._selectedTabPage = null; this._toolTip = new RegionToolTip(this); this._placement = Microsoft.Matrix.UIComponents.TabPlacement.Top; this._mode = TabControlMode.TextAndImage; this._effectiveMode = TabControlMode.TextAndImage; this._tabRectanglesCalculated = false; }
public GroupView(GroupViewListView itemContainer) { this._sectionHeight = -1; if (itemContainer == null) { throw new ArgumentNullException(); } base.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.Opaque | ControlStyles.UserPaint, true); this._sectionCollection = new GroupViewSectionCollection(this); this._selectedSectionIndex = -1; this._hoverIndex = -1; this._mouseDownIndex = -1; this._itemContainer = itemContainer; this._itemContainer.SelectedIndexChanged += new EventHandler(this.OnGroupViewItemSelectionChanged); this._itemContainer.Click += new EventHandler(this.OnGroupViewClicked); base.Controls.Add(this._itemContainer); this._toolTip = new RegionToolTip(this); }