/// <summary> /// Constructor. /// </summary> public MsaCreatorDlg() { // // Required for Windows Form Designer support // InitializeComponent(); this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }
public LabelViewer() { InitializeComponent(); source_path = ""; archive_path = ""; /* Setting up refresh timer to enable and disable the buttons. */ global_timer = new Timer(); global_timer.Interval = 500; global_timer.Tick += new EventHandler(refresh_label_viewer); global_timer.Start(); /* Populating the file_extensions and adding it to the checklist */ file_extensions.Add("Zebra Labels: .zpl"); file_extensions.Add("Intermec Labels: .ipl"); file_extensions.Add("Sato Labels: .lbl"); file_extensions.Add("Datamax Labels: .dpl"); int counter = 0; while (counter < file_extensions.Count) { extensionsList.Items.Add(file_extensions.ElementAt(counter)); counter++; } extensionsList.CheckOnClick = false; helpProvider1 = new HelpProvider(); helpProvider1.SetShowHelp(directoryText, true); helpProvider1.SetHelpString(directoryText, "Enter the path to the source directory."); helpProvider1.SetShowHelp(archiveText, true); helpProvider1.SetHelpString(archiveText, "Enter the path to the archive directory."); helpProvider1.SetShowHelp(revertButton, true); helpProvider1.SetHelpString(revertButton, "Moves ALL the files from the archive to source directory."); helpProvider1.SetShowHelp(searchButton, true); helpProvider1.SetHelpString(searchButton, "Starts the polling process on the source directory."); helpProvider1.SetShowHelp(InstructionsButton, true); helpProvider1.SetHelpString(InstructionsButton, "Follow these set of instructions."); helpProvider1.SetShowHelp(ExitButton, true); helpProvider1.SetHelpString(ExitButton, "Exit (Esc)"); helpProvider1.HelpNamespace = "help.chm"; helpProvider1.SetHelpNavigator(directoryText, HelpNavigator.TableOfContents); }
public LoadFBForm(pBaseEntities ge, fBaseEntities fe) { InitializeComponent(); _ge = ge; _fe = fe; dp_maxdate.ValueChanged += new EventHandler(dp_maxdate_ValueChanged); dp_mindate.ValueChanged += new EventHandler(dp_maxdate_ValueChanged); HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "menu_excel.htm"); }
public LexOptionsDlg() { InitializeComponent(); if (FwApp.App != null) // Will be null when running tests { this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); } }
public ConcordanceDlg() { // // Required for Windows Form Designer support // InitializeComponent(); this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetShowHelp(this, true); CheckAssignBtnEnabling(); }
public ConfigureInterlinDialog(FdoCache cache, InterlinLineChoices choices) { // // Required for Windows Form Designer support // InitializeComponent(); this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); m_cachedComboBoxes = new Dictionary <ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>(); m_cache = cache; m_choices = choices; InitPossibilitiesList(); // Owner draw requires drawing the column header as well as the list items. See LT-7007. currentList.DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(currentList_DrawColumnHeader); InitCurrentList(0); // also inits WsCombo. currentList.SelectedIndexChanged += new EventHandler(currentList_SelectedIndexChanged); optionsList.SelectedIndexChanged += new EventHandler(optionsList_SelectedIndexChanged); EnableControls(); }
/// <summary> /// From IFwExtension /// </summary> /// <param name="cache"></param> /// <param name="mediator"></param> public void Init(FdoCache cache, XCore.Mediator mediator) { CheckDisposed(); m_cache = cache; m_mediator = mediator; m_sRootDir = DirectoryFinder.FWCodeDirectory; if (!m_sRootDir.EndsWith("\\")) { m_sRootDir += "\\"; } m_sRootDir += "Language Explorer\\Import\\"; m_sTempDir = Path.Combine(Path.GetTempPath(), "LanguageExplorer\\"); if (!Directory.Exists(m_sTempDir)) { Directory.CreateDirectory(m_sTempDir); } m_sLastXmlFileName = ""; if (m_mediator.HelpTopicProvider != null) // FwApp.App could be null during tests { helpProvider = new HelpProvider(); helpProvider.HelpNamespace = m_mediator.HelpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, m_mediator.HelpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); } }
/// <summary> /// /// </summary> /// <param name="featSys"></param> /// <param name="mediator"></param> /// <param name="launchedFromInsertMenu"></param> /// <param name="sWindowKey">used to store location and size of dialog window</param> /// <param name="sXmlFile">file containing the XML form of the gloss list</param> public void SetDlginfo(IFsFeatureSystem featSys, Mediator mediator, bool launchedFromInsertMenu, string sWindowKey, string sXmlFile) { CheckDisposed(); m_featureSystem = featSys; m_featureList = featSys.FeaturesOC; m_launchedFromInsertMenu = launchedFromInsertMenu; m_mediator = mediator; if (mediator != null) { m_sWindowKeyLocation = sWindowKey + "Location"; m_sWindowKeySize = sWindowKey + "Size"; ResetWindowLocationAndSize(); m_helpTopicProvider = m_mediator.HelpTopicProvider; helpProvider = new HelpProvider(); helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); } m_cache = featSys.Cache; LoadMasterFeatures(sXmlFile); m_tvMasterList.Cache = m_cache; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.helpProvider1 = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // button1 // this.helpProvider1.SetHelpKeyword(this.button1, ""); this.helpProvider1.SetHelpNavigator(this.button1, System.Windows.Forms.HelpNavigator.Find); this.helpProvider1.SetHelpString(this.button1, ""); this.button1.Location = new System.Drawing.Point(24, 56); this.button1.Name = "button1"; this.helpProvider1.SetShowHelp(this.button1, true); this.button1.TabIndex = 0; this.button1.Text = "button1"; // // helpProvider1 // this.helpProvider1.HelpNamespace = "../../readme.html"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1 }); this.HelpButton = true; this.helpProvider1.SetHelpString(this, "Click me!"); this.Name = "Form1"; this.helpProvider1.SetShowHelp(this, true); this.Text = "Form1"; this.ResumeLayout(false); }
private void CreateHelpProvider() { var hlpProvider1 = new System.Windows.Forms.HelpProvider(); hlpProvider1.SetShowHelp(textBox1, true); hlpProvider1.SetHelpString(listBox1, "Enter a valid text here."); hlpProvider1.SetShowHelp(button1, true); hlpProvider1.SetHelpString(button1, "Click this button."); // Help file hlpProvider1.HelpNamespace = "helpFile.chm"; hlpProvider1.SetHelpNavigator(textBox1, HelpNavigator.TableOfContents); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="T:SimpleMatchDlg"/> class. /// </summary> /// <param name="wsf">The WSF.</param> /// <param name="ws">The ws.</param> /// <param name="ss">The ss.</param> /// ------------------------------------------------------------------------------------ public SimpleMatchDlg(ILgWritingSystemFactory wsf, int ws, IVwStylesheet ss) { // // Required for Windows Form Designer support // InitializeComponent(); // We do this outside the designer-controlled code because it does funny things // to FwTextBoxes, owing to the need for a writing system factory, and some // properties it should not persist but I can't persuade it not to. this.m_textBox = new FwTextBox(); this.m_textBox.WritingSystemFactory = wsf; // set ASAP. this.m_textBox.WritingSystemCode = ws; this.m_textBox.StyleSheet = ss; // before setting text, otherwise it gets confused about height needed. this.m_textBox.Location = new System.Drawing.Point(8, 24); this.m_textBox.Name = "m_textBox"; this.m_textBox.Size = new System.Drawing.Size(450, 32); this.m_textBox.TabIndex = 0; this.m_textBox.Text = ""; this.Controls.Add(this.m_textBox); regexContextMenu = new RegexHelperMenu(m_textBox, FwApp.App); m_ivwpattern = VwPatternClass.Create(); helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }
public ConfigureInterlinDialog(FdoCache cache, IHelpTopicProvider helpTopicProvider, InterlinLineChoices choices) { // // Required for Windows Form Designer support // InitializeComponent(); AccessibleName = GetType().Name; m_helpTopicProvider = helpTopicProvider; helpProvider = new HelpProvider(); helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); m_cachedComboBoxes = new Dictionary<ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>(); m_cache = cache; m_choices = choices; InitPossibilitiesList(); // Owner draw requires drawing the column header as well as the list items. See LT-7007. currentList.DrawColumnHeader += currentList_DrawColumnHeader; InitCurrentList(0); // also inits WsCombo. currentList.SelectedIndexChanged += currentList_SelectedIndexChanged; optionsList.SelectedIndexChanged += optionsList_SelectedIndexChanged; EnableControls(); }
public MasterCategoryListDlg() { // // Required for Windows Form Designer support // InitializeComponent(); string sCat = LexTextControls.kscategory; linkLabel1.Text = String.Format(LexTextControls.ksLinkText, sCat, sCat); if (FwApp.App != null) { this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); } else { // We can get here from Data Notebook via its "Find In Dictionary" function, which // doesn't have any good way of passing in the help information. m_bnHelp.Enabled = false; } pictureBox1.Image = m_imageListPictures.Images[0]; m_btnOK.Enabled = false; // Disable until we are able to support interaction with the DB list of POSes. m_rtbDescription.ReadOnly = true; // Don't allow any editing }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.HelpProvider1 = new System.Windows.Forms.HelpProvider(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(28, 99); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(236, 68); this.label1.TabIndex = 6; this.label1.Text = "Press F1 here for a form-based help topic."; // // FormBased // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1 }); this.Name = "FormBased"; this.Text = "FormBased"; this.Load += new System.EventHandler(this.FormBased_Load); this.ResumeLayout(false); }
protected override IRawElementProviderSimple GetProvider() { SWF.HelpProvider swfHelpProvider = new SWF.HelpProvider(); SWF.Button swfButton = new SWF.Button(); swfButton.Location = new SD.Point(3, 3); swfButton.Size = new SD.Size(272, 72); swfButton.Text = "With help"; SWF.Button swfButtonNoHelp = new SWF.Button(); swfButtonNoHelp.Location = new SD.Point(3, 30); swfButtonNoHelp.Size = new SD.Size(272, 72); swfButtonNoHelp.Text = "No help"; //We have to use an event to fake the user click swfButton.Click += new System.EventHandler(OnControlClicked); swfHelpProvider.SetShowHelp(swfButton, true); swfHelpProvider.SetHelpString(swfButton, "I'm showing a button tooltip."); Form.Controls.Add(swfButton); Form.Controls.Add(swfButtonNoHelp); //Testing ToolTipOpenedEvent bridge.ResetEventLists(); swfButton.PerformClick(); //Clicking the button will fake the event! StructureChangedEventTuple eventTuple = bridge.GetStructureChangedEventAt(0, StructureChangeType.ChildAdded); return(eventTuple.provider as IRawElementProviderSimple); }
/// <summary> /// From IFwExtension /// </summary> /// <param name="cache"></param> /// <param name="mediator"></param> public void Init(FdoCache cache, XCore.Mediator mediator) { CheckDisposed(); m_cache = cache; m_mediator = mediator; m_sRootDir = SIL.FieldWorks.Common.Utils.DirectoryFinder.FWCodeDirectory; if (!m_sRootDir.EndsWith("\\")) { m_sRootDir += "\\"; } m_sRootDir += "Language Explorer\\Import\\"; m_sTempDir = Path.Combine(Path.GetTempPath(), "LanguageExplorer\\"); if (!Directory.Exists(m_sTempDir)) { Directory.CreateDirectory(m_sTempDir); } m_sLastXmlFileName = ""; if (FwApp.App != null) // FwApp.App could be null during tests { this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.helpProvider1 = new System.Windows.Forms.HelpProvider(); this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.helpProvider1.SetHelpString(this.button1, "Hello, World!!!!"); this.button1.Location = new System.Drawing.Point(80, 64); this.button1.Name = "button1"; this.helpProvider1.SetShowHelp(this.button1, true); this.button1.Size = new System.Drawing.Size(96, 32); this.button1.TabIndex = 0; this.button1.Text = "button1"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); }
public ConfigureInterlinDialog(FdoCache cache, InterlinLineChoices choices) { // // Required for Windows Form Designer support // InitializeComponent(); this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); m_cachedComboBoxes = new Dictionary<ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>(); m_cache = cache; m_choices = choices; InitPossibilitiesList(); // Owner draw requires drawing the column header as well as the list items. See LT-7007. currentList.DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(currentList_DrawColumnHeader); InitCurrentList(0); // also inits WsCombo. currentList.SelectedIndexChanged += new EventHandler(currentList_SelectedIndexChanged); optionsList.SelectedIndexChanged += new EventHandler(optionsList_SelectedIndexChanged); EnableControls(); }
private void lblGetHelp_Click(object sender, EventArgs e) { System.Windows.Forms.HelpProvider hp = new System.Windows.Forms.HelpProvider(); hp.HelpNamespace = @"C:\Users\Ardenis\Desktop\IT\MenaxhimiKinemase\MenaxhimiKinemase\CMS_Manual.chm"; Help.ShowHelp(this, hp.HelpNamespace, HelpNavigator.Topic, "Navigimi.htm"); //HelpProvider.GetHelpProvider(this, "Welcome_topic.htm"); }
public MergeWritingSystemDlg(FdoCache cache, IWritingSystem ws, IEnumerable<IWritingSystem> wss, IHelpTopicProvider helpTopicProvider) { m_cache = cache; m_ws = ws; // // Required for Windows Form Designer support // InitializeComponent(); Icon infoIcon = SystemIcons.Information; m_infoPictureBox.Image = infoIcon.ToBitmap(); m_infoPictureBox.Size = infoIcon.Size; foreach (IWritingSystem curWs in wss.Except(new[] { ws })) m_wsListBox.Items.Add(curWs); m_wsListBox.SelectedIndex = 0; m_helpTopicProvider = helpTopicProvider; if (m_helpTopicProvider != null) // m_helpTopicProvider could be null for testing { m_helpProvider = new HelpProvider(); m_helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; m_helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(HelpTopic)); m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); } }
private void helpSetup() { helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Common initialization shared by the constructors. /// </summary> /// <param name="tssForm">The TSS form.</param> /// <param name="helpProvider">The help provider.</param> /// <param name="helpFileKey">The help file key.</param> /// <param name="styleSheet">The stylesheet.</param> /// ------------------------------------------------------------------------------------ private void Initialize(ITsString tssForm, IHelpTopicProvider helpProvider, string helpFileKey, IVwStylesheet styleSheet) { m_tssWf = tssForm; m_helpProvider = helpProvider; // m_vss = styleSheet; if (m_helpProvider == null) { btnHelp.Enabled = false; } else { m_helpFileKey = helpFileKey; this.helpProvider = new HelpProvider(); this.helpProvider.HelpNamespace = FwDirectoryFinder.CodeDirectory + m_helpProvider.GetHelpString("UserHelpFile"); this.helpProvider.SetHelpKeyword(this, m_helpProvider.GetHelpString(s_helpTopicKey)); this.helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); } m_xv = CreateSummaryView(m_rghvo, m_cache, styleSheet); m_xv.Dock = DockStyle.Top; // panel1 is docked to the bottom. m_xv.TabStop = true; m_xv.TabIndex = 0; Controls.Add(m_xv); m_xv.Height = panel1.Location.Y - m_xv.Location.Y; m_xv.Width = this.Width - 15; // Changed from magic to more magic on 8/8/2014 m_xv.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; m_xv.EditingHelper.DefaultCursor = Cursors.Arrow; m_xv.EditingHelper.VwSelectionChanged += new EventHandler <VwSelectionArgs>(m_xv_VwSelectionChanged); }
public AddNewSenseDlg() { // // Required for Windows Form Designer support // InitializeComponent(); this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); m_le = null; // Figure out where to locate the dlg. /* * object obj = SettingsKey.GetValue("InsertX"); * if (obj != null) * { * int x = (int)obj; * int y = (int)SettingsKey.GetValue("InsertY"); * int width = (int)SettingsKey.GetValue("InsertWidth", Width); * int height = (int)SettingsKey.GetValue("InsertHeight", Height); * Rectangle rect = new Rectangle(x, y, width, height); * ScreenUtils.EnsureVisibleRect(ref rect); * DesktopBounds = rect; * StartPosition = FormStartPosition.Manual; * }*/ }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.HelpProvider1 = new System.Windows.Forms.HelpProvider(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(28, 99); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(236, 68); this.label1.TabIndex = 6; this.label1.Text = "Press F1 here for a form-based help topic."; // // FormBased // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1}); this.Name = "FormBased"; this.Text = "FormBased"; this.Load += new System.EventHandler(this.FormBased_Load); this.ResumeLayout(false); }
public ExportDialog(Mediator mediator) { m_mediator = mediator; m_cache = (FdoCache)mediator.PropertyTable.GetValue("cache"); // // Required for Windows Form Designer support // InitializeComponent(); m_helpTopic = "khtpExportLexicon"; this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(m_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); // Determine whether we can support "configured" type export by trying to obtain // the XmlVc for an XmlDocView. Also obtain the database id and class id of the // root object. object objCurrentControl; objCurrentControl = m_mediator.PropertyTable.GetValue("currentContentControlObject", null); //XmlDocView docView = objCurrentControl as XmlDocView; //if (docView == null) //{ // XCore.MultiPane xmp = objCurrentControl as XCore.MultiPane; // if (xmp != null) // docView = xmp.FirstVisibleControl as XmlDocView; //} XmlDocView docView = FindXmlDocView(objCurrentControl as Control); if (docView != null) { m_seqView = docView.Controls[0] as XmlSeqView; } if (m_seqView != null) { m_xvc = m_seqView.Vc; } CmObject cmo = m_mediator.PropertyTable.GetValue("ActiveClerkSelectedObject", null) as CmObject; if (cmo != null) { m_hvoRootObj = cmo.OwnerHVO; if (m_hvoRootObj != 0) { m_clidRootObj = m_cache.GetClassOfObject(m_hvoRootObj); } } m_chkExportPictures.Checked = false; m_chkExportPictures.Visible = false; m_chkExportPictures.Enabled = false; m_fExportPicturesAndMedia = false; }
public MainMenu() { InitializeComponent(); HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "main_menu.htm"); }
private static void OnUIAHelpRequested(object sender, SWF.ControlEventArgs args) { SWF.HelpProvider helpProvider = (SWF.HelpProvider)sender; HelpProvider provider = (HelpProvider)ProviderFactory.GetProvider(helpProvider); provider.Show(args.Control); }
public HelpButton(Control relatedControl, HelpProvider helpProvider) { this.relatedControl = relatedControl; this.helpProvider = helpProvider; InitializeComponent(); btnHelp.Click += btnHelp_Click; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="LexReferenceDetailsDlg"/> class. /// </summary> /// <param name="helpTopicProvider">The help topic provider.</param> /// ------------------------------------------------------------------------------------ public LexReferenceDetailsDlg(IHelpTopicProvider helpTopicProvider) : this() { m_helpTopicProvider = helpTopicProvider; helpProvider = new HelpProvider(); helpProvider.HelpNamespace = helpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); }
private void Init() { this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetShowHelp(this, true); }
public FormSelect() { InitializeComponent(); HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "menu_settings.htm#scan_settings"); }
}//end of checkForWiner private void Form1_Load(object sender, EventArgs e) { setPlayerDefaultToolStripMenuItem.PerformClick(); helpProvider1 = new System.Windows.Forms.HelpProvider(); helpProvider1.SetShowHelp(p1, true); helpProvider1.SetHelpString(p1, "Enter player1 name"); helpProvider1.SetShowHelp(p2, true); helpProvider1.SetHelpString(p2, "Enter player2 name OR If you want to play with computer then write on textbox 'computer'."); }
public ChooseTextWritingSystemDlg() { InitializeComponent(); helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }
public void SetDlgInfo(CmObjectUi obj, FdoCache cache, XCore.Mediator mediator) { CheckDisposed(); StringTable strings = mediator.StringTbl; m_cache = cache; IVwStylesheet stylesheet = FontHeightAdjuster.StyleSheetFromMediator(mediator); Debug.Assert(obj != null); Debug.Assert(obj.Object != null); Text = String.Format(FdoUiStrings.ksDeleteX, strings.GetString(obj.ClassName, "ClassNames")); // Set the s_helpTopic based on the window title and rearrange the buttons if neccesary switch (obj.ClassName) { case "WfiWordform": s_helpTopic = "khtpDeleteWordform"; break; } if (s_helpTopic != null) { buttonHelp.Visible = true; buttonHelp.Enabled = true; this.helpProvider = new System.Windows.Forms.HelpProvider(); this.helpProvider.HelpNamespace = FwApp.App.HelpFile; this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); } else { m_deleteButton.Location = m_cancelButton.Location; m_cancelButton.Location = buttonHelp.Location; } //Use an FWTextBox so that strings of different writing systems will //be displayed with the correct stylesheet settings. m_descriptionBox3.WritingSystemFactory = m_cache.LanguageWritingSystemFactoryAccessor; m_descriptionBox3.WritingSystemCode = m_cache.LangProject.DefaultUserWritingSystem; m_descriptionBox3.StyleSheet = stylesheet; ITsIncStrBldr tisb3 = TsIncStrBldrClass.Create(); tisb3.AppendTsString(obj.Object.DeletionTextTSS); m_descriptionBox3.Tss = tisb3.GetString(); m_descriptionBox4.WritingSystemFactory = m_cache.LanguageWritingSystemFactoryAccessor; m_descriptionBox4.WritingSystemCode = m_cache.LangProject.DefaultUserWritingSystem; m_descriptionBox4.StyleSheet = stylesheet; ITsIncStrBldr tisb4 = TsIncStrBldrClass.Create(); tisb4.AppendTsString(m_cache.MakeUserTss(" ")); //this is the default for m_descriptionBox4 m_descriptionBox4.Tss = tisb4.GetString(); m_deleteButton.Enabled = obj.Object.CanDelete; label2.Visible = m_deleteButton.Enabled; }
/// <summary> /// Constructor. /// </summary> public MsaCreatorDlg() { // // Required for Windows Form Designer support // InitializeComponent(); AccessibleName = GetType().Name; helpProvider = new HelpProvider(); }
private void InitializeComponent() { helpProvider = new HelpProvider(); SuspendLayout(); // // BaseDataBindingControl // Name = "BaseDataBindingControl"; ResumeLayout(false); }
/// <summary> /// Set up the dlg in preparation to showing it. /// </summary> /// <param name="cache">FDO cache.</param> public void SetDlgInfo(FdoCache cache, Mediator mediator, ILexEntry entry) { CheckDisposed(); Debug.Assert(cache != null); m_mediator = mediator; m_cache = cache; m_entry = entry; m_tsf = TsStrFactoryClass.Create(); IVwStylesheet stylesheet = SIL.FieldWorks.Common.Widgets.FontHeightAdjuster.StyleSheetFromMediator(mediator); // We want to do this BEFORE the text gets set, to avoid overriding its height properties. // However, because of putting multiple lines in the box, we also need to do it AFTER we set the text // (in SetBottomMessage) so it adjusts to the resulting even greater height. m_fwTextBoxBottomMsg.AdjustForStyleSheet(this, null, stylesheet); Font f = SIL.FieldWorks.Common.Widgets.FontHeightAdjuster.GetFontForNormalStyle( m_cache.LangProject.DefaultVernacularWritingSystem, stylesheet, m_cache.LanguageWritingSystemFactoryAccessor); foreach (IMoForm allo in entry.AlternateFormsOS) { ListViewItem lvi = m_lvAlloOptions.Items.Add(allo.Form.VernacularDefaultWritingSystem); lvi.Tag = allo; lvi.UseItemStyleForSubItems = true; lvi.Font = f; } m_lvAlloOptions.Font = f; // Get location to the stored values, if any. object locWnd = m_mediator.PropertyTable.GetValue("swapDlgLocation"); // And when I do this, it works the first time, but later times the window is // too small and doesn't show all the controls. Give up on smart location for now. //object szWnd = this.Size; object szWnd = null; // suppresses the smart location stuff. if (locWnd != null && szWnd != null) { Rectangle rect = new Rectangle((Point)locWnd, (Size)szWnd); ScreenUtils.EnsureVisibleRect(ref rect); DesktopBounds = rect; StartPosition = FormStartPosition.Manual; } m_lvAlloOptions.Items[0].Selected = true; Text = LexEdStrings.ksSwapLexWithAllo; label2.Text = LexEdStrings.ksAlternateForms; // Determine the help file to use, if any m_helpTopic = "khtpSwapLexemeWithAllomorph"; if (m_helpTopic != null && FwApp.App != null) // FwApp.App could be null for testing { helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(m_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); } }
public TimeLineForm(testresult TestResult) { InitializeComponent(); _testresult = TestResult; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "result_character.htm#speed_view"); }
public ConnectionForm(bool defaultsettings) { InitializeComponent(); _defaultsettings = defaultsettings; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "menu_settings.htm#conn_settings"); }
public FormDep(fBaseEntities fe) { InitializeComponent(); _fe = fe; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "menu_settings.htm#edit_deps"); }
public void HelpProviderPropertyTag () { HelpProvider md = new HelpProvider (); object s = "MyString"; Assert.AreEqual (null, md.Tag, "A1"); md.Tag = s; Assert.AreSame (s, md.Tag, "A2"); }
public AddNewSenseDlg(IHelpTopicProvider helpTopicProvider) { BasicInit(); m_helpTopicProvider = helpTopicProvider; helpProvider = new HelpProvider(); helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); }
private int _currenthumanid; //текущий индекс сущности #endregion Fields #region Constructors public HumansForm(fBaseEntities fe) { InitializeComponent(); _fe=fe; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "respondent_common.htm#human"); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> /// ----------------------------------------------------------------------------------- private void InitializeComponent() { System.Windows.Forms.Label label1; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KeyboardControl)); System.Windows.Forms.Label label2; this.m_cboKeyboard = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.m_cbLangId = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.helpProvider1 = new System.Windows.Forms.HelpProvider(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 // resources.ApplyResources(label1, "label1"); label1.BackColor = System.Drawing.Color.Transparent; label1.Name = "label1"; // // label2 // resources.ApplyResources(label2, "label2"); label2.BackColor = System.Drawing.Color.Transparent; label2.Name = "label2"; // // m_cboKeyboard // this.m_cboKeyboard.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.helpProvider1.SetHelpString(this.m_cboKeyboard, resources.GetString("m_cboKeyboard.HelpString")); resources.ApplyResources(this.m_cboKeyboard, "m_cboKeyboard"); this.m_cboKeyboard.Name = "m_cboKeyboard"; this.helpProvider1.SetShowHelp(this.m_cboKeyboard, ((bool)(resources.GetObject("m_cboKeyboard.ShowHelp")))); this.m_cboKeyboard.Sorted = true; this.m_cboKeyboard.SelectedIndexChanged += new System.EventHandler(this.m_cboKeyboard_SelectedIndexChanged); // // m_cbLangId // this.m_cbLangId.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.helpProvider1.SetHelpString(this.m_cbLangId, resources.GetString("m_cbLangId.HelpString")); resources.ApplyResources(this.m_cbLangId, "m_cbLangId"); this.m_cbLangId.Name = "m_cbLangId"; this.helpProvider1.SetShowHelp(this.m_cbLangId, ((bool)(resources.GetObject("m_cbLangId.ShowHelp")))); this.m_cbLangId.Sorted = true; this.m_cbLangId.SelectedIndexChanged += new System.EventHandler(this.m_cbLangId_SelectedIndexChanged); // // KeyboardControl // this.Controls.Add(this.m_cboKeyboard); this.Controls.Add(this.m_cbLangId); this.Controls.Add(label2); this.Controls.Add(label1); this.Name = "KeyboardControl"; resources.ApplyResources(this, "$this"); this.ResumeLayout(false); this.PerformLayout(); }
public HelpProperty(HelpProvider hp, Control control) { this.control = control; this.hp = hp; keyword = null; navigator = HelpNavigator.AssociateIndex; text = null; show = false; control.HelpRequested += hp.HelpRequestHandler; }
public ImportWordSetDlg(Mediator mediator) : this() { //InitializeComponent(); m_mediator = mediator; m_cache = (FdoCache)m_mediator.PropertyTable.GetValue("cache"); helpProvider = new HelpProvider(); helpProvider.HelpNamespace = m_mediator.HelpTopicProvider.HelpFile; helpProvider.SetHelpKeyword(this, m_mediator.HelpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); }
public ReadHumanForm(fBaseEntities fe, int HumanId) { InitializeComponent(); _fe = fe; _humanid = HumanId; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "result_common.htm#human_read"); }
public PoollForm(pBaseEntities ge, fBaseEntities fe) { InitializeComponent(); _ge = ge; _fe = fe; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "test_common.htm"); }
public AutomatorForm(pBaseEntities ge, fBaseEntities fe) { InitializeComponent(); _ge = ge; _fe = fe; this.FillListRefs(); HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "scan_wizard.htm"); }
private void InitializeComponent() { this.helpProvider1 = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // BaseWinForm // this.ClientSize = new System.Drawing.Size(292, 266); this.Name = "BaseWinForm"; this.Load += new System.EventHandler(this.BaseWinForm_Load); this.ResumeLayout(false); }
public MGADialog(FdoCache cache, Mediator mediator, string sMorphemeForm) { m_mediator = mediator; m_cache = cache; InitForm(); labelAllomorph.Text = sMorphemeForm; helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }
public StenForm(int testid, int humanid, pBaseEntities ge, fBaseEntities fe) { InitializeComponent(); _ge = ge; _fe = fe; _humanid = humanid; _testid = testid; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "test_sten.htm"); }
public EditMorphBreaksDlg() { // // Required for Windows Form Designer support // InitializeComponent(); if (!Application.RenderWithVisualStyles) m_txtMorphs.BorderStyle = BorderStyle.FixedSingle; helpProvider = new System.Windows.Forms.HelpProvider(); helpProvider.HelpNamespace = FwApp.App.HelpFile; helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0)); helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); }