Exemple #1
0
		private void SetPaneSizeAndRoot(InterlinDocChild pane)
		{
			this.ResumeLayout();

			// This ensures that its root has been constructed and it's in a valid state
			// for things like setting an annotation and making the focus box and scrolling
			// to show it. Also that all layout that happens in the process happens at the
			// correct width (and height...this helps us position the focus box sensibly).
			if (pane.Width != m_tabCtrl.SelectedTab.Width)
				pane.Width = m_tabCtrl.SelectedTab.Width;
			if (pane.Height != m_tabCtrl.SelectedTab.Height)
				pane.Height = m_tabCtrl.SelectedTab.Height;

			// If the suspendLayout was not used then there were sometimes significant delays
			// when switching from other tabs to the PrintView tab.
			pane.SuspendLayout();
			pane.SetRoot(m_hvoStText);
			pane.ResumeLayout();

			pane.Visible = true;
		}