public override void TestSetup() { base.TestSetup(); // Save value of user prompt setting - restored in Cleanup. m_saveShowPrompts = Options.ShowEmptyParagraphPromptsSetting; Options.ShowEmptyParagraphPromptsSetting = false; m_saveSegmentedBT = Options.UseInterlinearBackTranslation; Options.UseInterlinearBackTranslation = CreateSegmentedBt; Debug.Assert(m_draftForm == null, "m_draftForm is not null."); //if (m_draftForm != null) // m_draftForm.Dispose(); m_draftForm = new DummyDraftViewForm(Cache); m_draftForm.DeleteRegistryKey(); m_draftForm.CreateDraftView(Cache, CreateBtDraftView); m_draftView = m_draftForm.DraftView; m_draftView.Width = 300; m_draftView.Height = 290; m_draftView.CallOnLayout(); // Set the selection at the start of the view m_draftView.RootBox.MakeSimpleSel(true, true, false, true); }
public override void Initialize() { CheckDisposed(); base.Initialize(); // Save value of user prompt setting - restored in Cleanup. m_saveShowPrompts = Options.ShowEmptyParagraphPromptsSetting; Options.ShowEmptyParagraphPromptsSetting = false; Debug.Assert(m_btDraftForm == null, "m_btDraftForm is not null."); //if (m_btDraftForm != null) // m_btDraftForm.Dispose(); m_btDraftForm = new DummyDraftViewForm(); m_btDraftForm.DeleteRegistryKey(); m_btDraftForm.CreateDraftView(Cache, true); m_btDraftForm.Show(); m_btDraftView = m_btDraftForm.DraftView; m_btDraftView.Width = 300; m_btDraftView.Height = 290; m_btDraftView.CallOnLayout(); m_scr.RestartFootnoteSequence = true; // Application.DoEvents(); }
public override void Initialize() { CheckDisposed(); base.Initialize(); m_draftForm = new DummyDraftViewForm(); m_draftForm.DeleteRegistryKey(); m_draftForm.CreateDraftView(Cache, true); m_btDraftView = m_draftForm.DraftView; m_btDraftView.Width = 300; m_btDraftView.Height = 290; m_btDraftView.CallOnLayout(); }
public override void Initialize() { CheckDisposed(); base.Initialize(); m_draftForm = new DummyDraftViewForm(); m_draftForm.DeleteRegistryKey(); m_draftForm.CreateDraftView(Cache, true); m_btDraftView = m_draftForm.DraftView; m_btDraftView.Width = 300; m_btDraftView.Height = 290; m_btDraftView.CallOnLayout(); m_btDraftView.RootBox.Reconstruct(); // update the view // Set the selection at the start of the section m_btDraftView.TeEditingHelper.SetInsertionPoint(0, 0, 0, 0, false); }