private int m_ZoomedSection; // 0-3 #endregion Fields #region Constructors /// <summary> /// Initializes a new instance of the <see cref="CrossSplitter"/> class. /// </summary> /// <param name="parent">Parent control.</param> public CrossSplitter(Control parent) : base(parent) { m_Sections = new Control[4]; m_VSplitter = new SplitterBar(this); m_VSplitter.SetPosition(0, 128); m_VSplitter.Dragged += OnVerticalMoved; m_VSplitter.Cursor = Cursors.SizeNS; m_HSplitter = new SplitterBar(this); m_HSplitter.SetPosition(128, 0); m_HSplitter.Dragged += OnHorizontalMoved; m_HSplitter.Cursor = Cursors.SizeWE; m_CSplitter = new SplitterBar(this); m_CSplitter.SetPosition(128, 128); m_CSplitter.Dragged += OnCenterMoved; m_CSplitter.Cursor = Cursors.SizeAll; m_HVal = 0.5f; m_VVal = 0.5f; SetPanel(0, null); SetPanel(1, null); SetPanel(2, null); SetPanel(3, null); SplitterSize = 5; SplittersVisible = false; m_ZoomedSection = -1; }
/// <summary> /// Initializes a new instance of the <see cref="Properties"/> class. /// </summary> /// <param name="parent">Parent control.</param> public Properties(Control parent) : base(parent) { m_SplitterBar = new SplitterBar(this); m_SplitterBar.SetPosition(80, 0); m_SplitterBar.Cursor = Cursors.SizeWE; m_SplitterBar.Dragged += OnSplitterMoved; m_SplitterBar.ShouldDrawBackground = false; }
private int m_ZoomedSection; // 0-3 #endregion Fields #region Constructors /// <summary> /// Initializes a new instance of the <see cref="CrossSplitter"/> class. /// </summary> /// <param name="parent">Parent control.</param> public VerticalSplitter(Control parent) : base(parent) { m_Sections = new Control[2]; m_HSplitter = new SplitterBar(this); m_HSplitter.SetPosition(128, 0); m_HSplitter.Dragged += OnHorizontalMoved; m_HSplitter.Cursor = Cursors.SizeWE; m_HVal = 0.5f; SetPanel(0, null); SetPanel(1, null); SplitterSize = 5; SplittersVisible = false; m_ZoomedSection = -1; }