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); }
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); }
}//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'."); }
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); }
public CertificateViewer(string filename) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // LoadCertificate(filename); helpProvider.SetHelpString(issuedToTextBox, CertificateFormatter.Help.IssuedTo); helpProvider.SetHelpString(issuedByTextBox, CertificateFormatter.Help.IssuedBy); helpProvider.SetHelpString(notBeforeLabel, CertificateFormatter.Help.ValidFrom); helpProvider.SetHelpString(notAfterLabel, CertificateFormatter.Help.ValidUntil); }
private void InitializeFormHelp() { // Set the form's border to the FixedDialog style. this.FormBorderStyle = FormBorderStyle.FixedDialog; // Remove the Maximize and Minimize buttons from the form. this.MaximizeBox = false; this.MinimizeBox = false; // Add the Help button to the form. this.HelpButton = true; // Set the Help string for the deposit textBox. HelpProvider1.SetHelpString(deposit, "Enter an amount in the format xxx.xx" + "and press Enter to deposit."); // Set the Help string for the withdrawal textBox. HelpProvider1.SetHelpString(withdrawal, "Enter an amount in the format xxx.xx" + "and press Enter to withdraw."); }
void InitHelp() { helpProvider.SetHelpString(cbBmp, "If this is checked, the tree display will be saved as a bitmap file.\n" + "You can use this with a program like Paint."); helpProvider.SetHelpString(this.cbEmf, "If this is checked, the tree display will be saved as a Windows metafile file.\n" + "You can use this with a program like Word for Windows (use Insert / Picture / From File...)."); helpProvider.SetHelpString(this.cbGif, "If this is checked, the tree display will be saved as a Graphics Interchange Format file.\n" + "You can use this in a web page (e.g. use a <img> HTML element)."); helpProvider.SetHelpString(this.cbJpg, "If this is checked, the tree display will be saved as a JPEG File Interchange Format file.\n" + "You can use this in a web page (e.g. use a <img> HTML element)."); helpProvider.SetHelpString(this.cbPng, "If this is checked, the tree display will be saved as a Portable Network Graphics file.\n" + "You can use this in a web page (e.g. use a <img> HTML element)."); helpProvider.SetHelpString(this.cbTif, "If this is checked, the tree display will be saved as a Tagged Image file.\n" + "You can use this in a web page (e.g. use a <img> HTML element)."); helpProvider.SetHelpString(cbSVG, "If this is checked, the tree display will be saved as a Scalable Vector Graphics file.\n" + "You can use this in a web page (e.g. use a <img> HTML element)."); }
/// <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.ColumnHeader columnHeader1; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedEncProps)); System.Windows.Forms.ColumnHeader columnHeader2; System.Windows.Forms.HelpProvider helpProvider1; this.lvConverterInfo = new System.Windows.Forms.ListView(); columnHeader1 = new System.Windows.Forms.ColumnHeader(); columnHeader2 = new System.Windows.Forms.ColumnHeader(); helpProvider1 = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // lvConverterInfo // this.lvConverterInfo.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { columnHeader1, columnHeader2 }); resources.ApplyResources(this.lvConverterInfo, "lvConverterInfo"); this.lvConverterInfo.FullRowSelect = true; helpProvider1.SetHelpString(this.lvConverterInfo, resources.GetString("lvConverterInfo.HelpString")); this.lvConverterInfo.MultiSelect = false; this.lvConverterInfo.Name = "lvConverterInfo"; helpProvider1.SetShowHelp(this.lvConverterInfo, ((bool)(resources.GetObject("lvConverterInfo.ShowHelp")))); this.lvConverterInfo.UseCompatibleStateImageBehavior = false; this.lvConverterInfo.View = System.Windows.Forms.View.Details; // // columnHeader1 // resources.ApplyResources(columnHeader1, "columnHeader1"); // // columnHeader2 // resources.ApplyResources(columnHeader2, "columnHeader2"); // // AdvancedEncProps // this.Controls.Add(this.lvConverterInfo); this.Name = "AdvancedEncProps"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); this.ResumeLayout(false); }
/// ------------------------------------------------------------------------------------ /// <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.Button m_btnExit; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FwDeleteProjectDlg)); System.Windows.Forms.Button m_btnHelp; System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.HelpProvider m_helpProvider; this.m_lstProjects = new System.Windows.Forms.ListBox(); this.m_btnDelete = new System.Windows.Forms.Button(); this.m_lstProjectsInUse = new System.Windows.Forms.ListBox(); m_btnExit = new System.Windows.Forms.Button(); m_btnHelp = new System.Windows.Forms.Button(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); m_helpProvider = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // m_btnExit // resources.ApplyResources(m_btnExit, "m_btnExit"); m_btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; m_btnExit.Name = "m_btnExit"; m_helpProvider.SetShowHelp(m_btnExit, ((bool)(resources.GetObject("m_btnExit.ShowHelp")))); // // m_btnHelp // resources.ApplyResources(m_btnHelp, "m_btnHelp"); m_helpProvider.SetHelpString(m_btnHelp, resources.GetString("m_btnHelp.HelpString")); m_btnHelp.Name = "m_btnHelp"; m_helpProvider.SetShowHelp(m_btnHelp, ((bool)(resources.GetObject("m_btnHelp.ShowHelp")))); m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // label1 // resources.ApplyResources(label1, "label1"); label1.Name = "label1"; m_helpProvider.SetShowHelp(label1, ((bool)(resources.GetObject("label1.ShowHelp")))); // // label2 // resources.ApplyResources(label2, "label2"); label2.Name = "label2"; m_helpProvider.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp")))); // // m_lstProjects // resources.ApplyResources(this.m_lstProjects, "m_lstProjects"); this.m_lstProjects.Name = "m_lstProjects"; this.m_lstProjects.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; m_helpProvider.SetShowHelp(this.m_lstProjects, ((bool)(resources.GetObject("m_lstProjects.ShowHelp")))); this.m_lstProjects.Sorted = true; this.m_lstProjects.SelectedIndexChanged += new System.EventHandler(this.m_lstProjects_SelectedIndexChanged); // // m_btnDelete // resources.ApplyResources(this.m_btnDelete, "m_btnDelete"); this.m_btnDelete.Name = "m_btnDelete"; m_helpProvider.SetShowHelp(this.m_btnDelete, ((bool)(resources.GetObject("m_btnDelete.ShowHelp")))); this.m_btnDelete.Click += new System.EventHandler(this.m_btnDelete_Click); // // m_lstProjectsInUse // resources.ApplyResources(this.m_lstProjectsInUse, "m_lstProjectsInUse"); this.m_lstProjectsInUse.Name = "m_lstProjectsInUse"; this.m_lstProjectsInUse.SelectionMode = System.Windows.Forms.SelectionMode.None; m_helpProvider.SetShowHelp(this.m_lstProjectsInUse, ((bool)(resources.GetObject("m_lstProjectsInUse.ShowHelp")))); this.m_lstProjectsInUse.Sorted = true; // // FwDeleteProjectDlg // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = m_btnExit; this.Controls.Add(label2); this.Controls.Add(label1); this.Controls.Add(this.m_lstProjectsInUse); this.Controls.Add(m_btnHelp); this.Controls.Add(m_btnExit); this.Controls.Add(this.m_btnDelete); this.Controls.Add(this.m_lstProjects); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FwDeleteProjectDlg"; m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); this.ShowInTaskbar = false; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.Button selectFileButton; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterTest)); System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; System.Windows.Forms.HelpProvider helpProvider1; this.outputFontCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.convertButton = new System.Windows.Forms.Button(); this.OutputPanel = new System.Windows.Forms.Panel(); this.saveFileButton = new System.Windows.Forms.Button(); this.ofDlg = new System.Windows.Forms.OpenFileDialog(); this.txtInputFile = new System.Windows.Forms.TextBox(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.toolTipInputFile = new System.Windows.Forms.ToolTip(this.components); selectFileButton = new System.Windows.Forms.Button(); label2 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); helpProvider1 = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // selectFileButton // helpProvider1.SetHelpString(selectFileButton, resources.GetString("selectFileButton.HelpString")); resources.ApplyResources(selectFileButton, "selectFileButton"); selectFileButton.Name = "selectFileButton"; helpProvider1.SetShowHelp(selectFileButton, ((bool)(resources.GetObject("selectFileButton.ShowHelp")))); selectFileButton.Click += new System.EventHandler(this.selectFileButton_Click); // // label2 // resources.ApplyResources(label2, "label2"); helpProvider1.SetHelpString(label2, resources.GetString("label2.HelpString")); label2.Name = "label2"; helpProvider1.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp")))); // // outputFontCombo // resources.ApplyResources(this.outputFontCombo, "outputFontCombo"); this.outputFontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; helpProvider1.SetHelpString(this.outputFontCombo, resources.GetString("outputFontCombo.HelpString")); this.outputFontCombo.Name = "outputFontCombo"; helpProvider1.SetShowHelp(this.outputFontCombo, ((bool)(resources.GetObject("outputFontCombo.ShowHelp")))); this.outputFontCombo.SelectedIndexChanged += new System.EventHandler(this.outputFontCombo_SelectedIndexChanged); // // convertButton // resources.ApplyResources(this.convertButton, "convertButton"); helpProvider1.SetHelpString(this.convertButton, resources.GetString("convertButton.HelpString")); this.convertButton.Name = "convertButton"; helpProvider1.SetShowHelp(this.convertButton, ((bool)(resources.GetObject("convertButton.ShowHelp")))); this.convertButton.Click += new System.EventHandler(this.convertButton_Click); // // label3 // resources.ApplyResources(label3, "label3"); label3.Name = "label3"; helpProvider1.SetShowHelp(label3, ((bool)(resources.GetObject("label3.ShowHelp")))); // // OutputPanel // resources.ApplyResources(this.OutputPanel, "OutputPanel"); this.OutputPanel.BackColor = System.Drawing.SystemColors.Control; this.OutputPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; helpProvider1.SetHelpString(this.OutputPanel, resources.GetString("OutputPanel.HelpString")); this.OutputPanel.Name = "OutputPanel"; helpProvider1.SetShowHelp(this.OutputPanel, ((bool)(resources.GetObject("OutputPanel.ShowHelp")))); // // saveFileButton // resources.ApplyResources(this.saveFileButton, "saveFileButton"); helpProvider1.SetHelpString(this.saveFileButton, resources.GetString("saveFileButton.HelpString")); this.saveFileButton.Name = "saveFileButton"; helpProvider1.SetShowHelp(this.saveFileButton, ((bool)(resources.GetObject("saveFileButton.ShowHelp")))); this.saveFileButton.Click += new System.EventHandler(this.saveFileButton_Click); // // ofDlg // this.ofDlg.DefaultExt = "txt"; resources.ApplyResources(this.ofDlg, "ofDlg"); // // txtInputFile // resources.ApplyResources(this.txtInputFile, "txtInputFile"); this.txtInputFile.BackColor = System.Drawing.SystemColors.Window; this.txtInputFile.Cursor = System.Windows.Forms.Cursors.Arrow; this.txtInputFile.Name = "txtInputFile"; this.txtInputFile.ReadOnly = true; helpProvider1.SetShowHelp(this.txtInputFile, ((bool)(resources.GetObject("txtInputFile.ShowHelp")))); this.txtInputFile.TabStop = false; // // saveFileDialog // this.saveFileDialog.DefaultExt = "txt"; resources.ApplyResources(this.saveFileDialog, "saveFileDialog"); this.saveFileDialog.RestoreDirectory = true; // // ConverterTest // this.Controls.Add(this.txtInputFile); this.Controls.Add(this.convertButton); this.Controls.Add(this.saveFileButton); this.Controls.Add(this.OutputPanel); this.Controls.Add(label3); this.Controls.Add(label2); this.Controls.Add(this.outputFontCombo); this.Controls.Add(selectFileButton); this.Name = "ConverterTest"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); this.Load += new System.EventHandler(this.ConverterTest_Load); this.ResumeLayout(false); this.PerformLayout(); }
public void BasicPropertiesTest () { 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); Assert.IsNotNull (eventTuple, "GetAutomationEventAt (0)"); //We have the HelpProvider! IRawElementProviderFragment helpProvider = eventTuple.provider as IRawElementProviderFragment; Assert.IsNotNull (helpProvider, "helpProvider is null"); TestProperty (helpProvider, AutomationElementIdentifiers.IsControlElementProperty, true); TestProperty (helpProvider, AutomationElementIdentifiers.IsContentElementProperty, false); TestProperty (helpProvider, AutomationElementIdentifiers.HelpTextProperty, null); TestProperty (helpProvider, AutomationElementIdentifiers.LocalizedControlTypeProperty, "tool tip"); TestProperty (helpProvider, AutomationElementIdentifiers.ControlTypeProperty, ControlType.ToolTip.Id); TestProperty (helpProvider, AutomationElementIdentifiers.LabeledByProperty, null); TestProperty (helpProvider, AutomationElementIdentifiers.NameProperty, swfHelpProvider.GetHelpString (swfButton)); TestProperty (helpProvider, AutomationElementIdentifiers.IsKeyboardFocusableProperty, false); TestProperty (helpProvider, AutomationElementIdentifiers.ClickablePointProperty, null); // TODO: How to allow it? // bridge.ResetEventLists (); // // swfButtonNoHelp.PerformClick (); //Clicking this button will close the tooltip // // Assert.AreEqual (1, // bridge.GetAutomationEventCount (InvokePatternIdentifiers.InvokedEvent), // "AutomationElementIdentifiers.InvokedEvent"); // // Assert.IsNotNull (bridge.GetStructureChangedEventAt (0, StructureChangeType.ChildRemoved), // "AutomationElementIdentifiers.ChildRemoved"); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> /// ----------------------------------------------------------------------------------- private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.Label lblLookup; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageSetup)); System.Windows.Forms.Label lblFindPattern; System.Windows.Forms.ColumnHeader hdrLanguageName; System.Windows.Forms.ColumnHeader hdrCountry; System.Windows.Forms.ColumnHeader hdrEthnologueCode; System.Windows.Forms.GroupBox grpCurrentLang; System.Windows.Forms.Label lblCurrentEthCode; System.Windows.Forms.Label lblCurrentLangName; System.Windows.Forms.Label lblOtherNames; System.Windows.Forms.Label lblInstructions1; System.Windows.Forms.Label lblInstructions2; System.Windows.Forms.HelpProvider helpProvider1; this.txtFindPattern = new System.Windows.Forms.TextBox(); this.btnFind = new System.Windows.Forms.Button(); this.lvFindResult = new System.Windows.Forms.ListView(); this.lblCurrentEthCodeValue = new System.Windows.Forms.Label(); this.txtCurrentLangName = new System.Windows.Forms.TextBox(); this.lblOtherNamesList = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.cboLookup = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); lblLookup = new System.Windows.Forms.Label(); lblFindPattern = new System.Windows.Forms.Label(); hdrLanguageName = new System.Windows.Forms.ColumnHeader(); hdrCountry = new System.Windows.Forms.ColumnHeader(); hdrEthnologueCode = new System.Windows.Forms.ColumnHeader(); grpCurrentLang = new System.Windows.Forms.GroupBox(); lblCurrentEthCode = new System.Windows.Forms.Label(); lblCurrentLangName = new System.Windows.Forms.Label(); lblOtherNames = new System.Windows.Forms.Label(); lblInstructions1 = new System.Windows.Forms.Label(); lblInstructions2 = new System.Windows.Forms.Label(); helpProvider1 = new System.Windows.Forms.HelpProvider(); grpCurrentLang.SuspendLayout(); this.SuspendLayout(); // // lblLookup // resources.ApplyResources(lblLookup, "lblLookup"); lblLookup.Name = "lblLookup"; helpProvider1.SetShowHelp(lblLookup, ((bool)(resources.GetObject("lblLookup.ShowHelp")))); // // txtFindPattern // this.txtFindPattern.AcceptsReturn = true; resources.ApplyResources(this.txtFindPattern, "txtFindPattern"); helpProvider1.SetHelpString(this.txtFindPattern, resources.GetString("txtFindPattern.HelpString")); this.txtFindPattern.Name = "txtFindPattern"; helpProvider1.SetShowHelp(this.txtFindPattern, ((bool)(resources.GetObject("txtFindPattern.ShowHelp")))); this.txtFindPattern.Enter += new System.EventHandler(this.txtFindPattern_Enter); this.txtFindPattern.Leave += new System.EventHandler(this.txtFindPattern_Leave); this.txtFindPattern.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtFindPattern_KeyPress); this.txtFindPattern.TextChanged += new System.EventHandler(this.txtFindPattern_TextChanged); // // btnFind // resources.ApplyResources(this.btnFind, "btnFind"); helpProvider1.SetHelpString(this.btnFind, resources.GetString("btnFind.HelpString")); this.btnFind.Name = "btnFind"; helpProvider1.SetShowHelp(this.btnFind, ((bool)(resources.GetObject("btnFind.ShowHelp")))); this.btnFind.Click += new System.EventHandler(this.btnFind_Click); // // lblFindPattern // resources.ApplyResources(lblFindPattern, "lblFindPattern"); lblFindPattern.Name = "lblFindPattern"; helpProvider1.SetShowHelp(lblFindPattern, ((bool)(resources.GetObject("lblFindPattern.ShowHelp")))); // // lvFindResult // resources.ApplyResources(this.lvFindResult, "lvFindResult"); this.lvFindResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { hdrLanguageName, hdrCountry, hdrEthnologueCode }); this.lvFindResult.FullRowSelect = true; helpProvider1.SetHelpString(this.lvFindResult, resources.GetString("lvFindResult.HelpString")); this.lvFindResult.HideSelection = false; this.lvFindResult.MultiSelect = false; this.lvFindResult.Name = "lvFindResult"; helpProvider1.SetShowHelp(this.lvFindResult, ((bool)(resources.GetObject("lvFindResult.ShowHelp")))); this.lvFindResult.UseCompatibleStateImageBehavior = false; this.lvFindResult.View = System.Windows.Forms.View.Details; this.lvFindResult.Enter += new System.EventHandler(this.lvFindResult_Enter); this.lvFindResult.SelectedIndexChanged += new System.EventHandler(this.lvFindResult_SelectedIndexChanged); this.lvFindResult.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvFindResult_ColumnClick); // // hdrLanguageName // resources.ApplyResources(hdrLanguageName, "hdrLanguageName"); // // hdrCountry // resources.ApplyResources(hdrCountry, "hdrCountry"); // // hdrEthnologueCode // resources.ApplyResources(hdrEthnologueCode, "hdrEthnologueCode"); // // grpCurrentLang // grpCurrentLang.Controls.Add(lblCurrentEthCode); grpCurrentLang.Controls.Add(this.lblCurrentEthCodeValue); grpCurrentLang.Controls.Add(lblCurrentLangName); grpCurrentLang.Controls.Add(this.txtCurrentLangName); grpCurrentLang.Controls.Add(lblOtherNames); grpCurrentLang.Controls.Add(this.lblOtherNamesList); grpCurrentLang.FlatStyle = System.Windows.Forms.FlatStyle.System; resources.ApplyResources(grpCurrentLang, "grpCurrentLang"); grpCurrentLang.Name = "grpCurrentLang"; helpProvider1.SetShowHelp(grpCurrentLang, ((bool)(resources.GetObject("grpCurrentLang.ShowHelp")))); grpCurrentLang.TabStop = false; // // lblCurrentEthCode // resources.ApplyResources(lblCurrentEthCode, "lblCurrentEthCode"); lblCurrentEthCode.BackColor = System.Drawing.SystemColors.Control; lblCurrentEthCode.Name = "lblCurrentEthCode"; helpProvider1.SetShowHelp(lblCurrentEthCode, ((bool)(resources.GetObject("lblCurrentEthCode.ShowHelp")))); // // lblCurrentEthCodeValue // resources.ApplyResources(this.lblCurrentEthCodeValue, "lblCurrentEthCodeValue"); helpProvider1.SetHelpString(this.lblCurrentEthCodeValue, resources.GetString("lblCurrentEthCodeValue.HelpString")); this.lblCurrentEthCodeValue.Name = "lblCurrentEthCodeValue"; helpProvider1.SetShowHelp(this.lblCurrentEthCodeValue, ((bool)(resources.GetObject("lblCurrentEthCodeValue.ShowHelp")))); this.lblCurrentEthCodeValue.Tag = "(Unknown)"; // // lblCurrentLangName // resources.ApplyResources(lblCurrentLangName, "lblCurrentLangName"); lblCurrentLangName.Name = "lblCurrentLangName"; helpProvider1.SetShowHelp(lblCurrentLangName, ((bool)(resources.GetObject("lblCurrentLangName.ShowHelp")))); // // txtCurrentLangName // helpProvider1.SetHelpString(this.txtCurrentLangName, resources.GetString("txtCurrentLangName.HelpString")); resources.ApplyResources(this.txtCurrentLangName, "txtCurrentLangName"); this.txtCurrentLangName.Name = "txtCurrentLangName"; helpProvider1.SetShowHelp(this.txtCurrentLangName, ((bool)(resources.GetObject("txtCurrentLangName.ShowHelp")))); this.txtCurrentLangName.TextChanged += new System.EventHandler(this.txtCurrentLangName_TextChanged); // // lblOtherNames // resources.ApplyResources(lblOtherNames, "lblOtherNames"); lblOtherNames.Name = "lblOtherNames"; helpProvider1.SetShowHelp(lblOtherNames, ((bool)(resources.GetObject("lblOtherNames.ShowHelp")))); // // lblOtherNamesList // resources.ApplyResources(this.lblOtherNamesList, "lblOtherNamesList"); helpProvider1.SetHelpString(this.lblOtherNamesList, resources.GetString("lblOtherNamesList.HelpString")); this.lblOtherNamesList.Name = "lblOtherNamesList"; helpProvider1.SetShowHelp(this.lblOtherNamesList, ((bool)(resources.GetObject("lblOtherNamesList.ShowHelp")))); this.lblOtherNamesList.UseMnemonic = false; this.lblOtherNamesList.Paint += new System.Windows.Forms.PaintEventHandler(this.lblOtherNamesList_Paint); // // lblInstructions1 // resources.ApplyResources(lblInstructions1, "lblInstructions1"); lblInstructions1.Name = "lblInstructions1"; helpProvider1.SetShowHelp(lblInstructions1, ((bool)(resources.GetObject("lblInstructions1.ShowHelp")))); // // lblInstructions2 // resources.ApplyResources(lblInstructions2, "lblInstructions2"); lblInstructions2.Name = "lblInstructions2"; helpProvider1.SetShowHelp(lblInstructions2, ((bool)(resources.GetObject("lblInstructions2.ShowHelp")))); // // cboLookup // this.cboLookup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; helpProvider1.SetHelpString(this.cboLookup, resources.GetString("cboLookup.HelpString")); resources.ApplyResources(this.cboLookup, "cboLookup"); this.cboLookup.Items.AddRange(new object[] { resources.GetString("cboLookup.Items"), resources.GetString("cboLookup.Items1"), resources.GetString("cboLookup.Items2") }); this.cboLookup.Name = "cboLookup"; helpProvider1.SetShowHelp(this.cboLookup, ((bool)(resources.GetObject("cboLookup.ShowHelp")))); this.cboLookup.Enter += new System.EventHandler(this.cboLookup_Enter); this.cboLookup.SelectedIndexChanged += new System.EventHandler(this.cboLookup_SelectedIndexChanged); // // LanguageSetup // this.Controls.Add(this.btnFind); this.Controls.Add(this.txtFindPattern); this.Controls.Add(this.cboLookup); this.Controls.Add(lblInstructions2); this.Controls.Add(lblInstructions1); this.Controls.Add(grpCurrentLang); this.Controls.Add(this.lvFindResult); this.Controls.Add(lblFindPattern); this.Controls.Add(lblLookup); this.Name = "LanguageSetup"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); grpCurrentLang.ResumeLayout(false); grpCurrentLang.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void label1_Click(object sender, EventArgs e) { helpProvider1 = new System.Windows.Forms.HelpProvider(); helpProvider1.SetShowHelp(txtKey, true); helpProvider1.SetHelpString(txtKey, "Nhập Key nhân viên"); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> /// ----------------------------------------------------------------------------------- private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.Label lblLookup; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageSetup)); System.Windows.Forms.Label lblFindPattern; System.Windows.Forms.ColumnHeader hdrLanguageName; System.Windows.Forms.ColumnHeader hdrCountry; System.Windows.Forms.ColumnHeader hdrEthnologueCode; System.Windows.Forms.GroupBox grpCurrentLang; System.Windows.Forms.Label lblCurrentEthCode; System.Windows.Forms.Label lblCurrentLangName; System.Windows.Forms.Label lblOtherNames; System.Windows.Forms.Label lblInstructions1; System.Windows.Forms.Label lblInstructions2; System.Windows.Forms.HelpProvider helpProvider1; this.txtFindPattern = new System.Windows.Forms.TextBox(); this.btnFind = new System.Windows.Forms.Button(); this.lvFindResult = new System.Windows.Forms.ListView(); this.lblCurrentEthCodeValue = new System.Windows.Forms.Label(); this.txtCurrentLangName = new System.Windows.Forms.TextBox(); this.lblOtherNamesList = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.cboLookup = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); lblLookup = new System.Windows.Forms.Label(); lblFindPattern = new System.Windows.Forms.Label(); hdrLanguageName = new System.Windows.Forms.ColumnHeader(); hdrCountry = new System.Windows.Forms.ColumnHeader(); hdrEthnologueCode = new System.Windows.Forms.ColumnHeader(); grpCurrentLang = new System.Windows.Forms.GroupBox(); lblCurrentEthCode = new System.Windows.Forms.Label(); lblCurrentLangName = new System.Windows.Forms.Label(); lblOtherNames = new System.Windows.Forms.Label(); lblInstructions1 = new System.Windows.Forms.Label(); lblInstructions2 = new System.Windows.Forms.Label(); helpProvider1 = new System.Windows.Forms.HelpProvider(); grpCurrentLang.SuspendLayout(); this.SuspendLayout(); // // lblLookup // resources.ApplyResources(lblLookup, "lblLookup"); lblLookup.Name = "lblLookup"; helpProvider1.SetShowHelp(lblLookup, ((bool)(resources.GetObject("lblLookup.ShowHelp")))); // // txtFindPattern // this.txtFindPattern.AcceptsReturn = true; resources.ApplyResources(this.txtFindPattern, "txtFindPattern"); helpProvider1.SetHelpString(this.txtFindPattern, resources.GetString("txtFindPattern.HelpString")); this.txtFindPattern.Name = "txtFindPattern"; helpProvider1.SetShowHelp(this.txtFindPattern, ((bool)(resources.GetObject("txtFindPattern.ShowHelp")))); this.txtFindPattern.Enter += new System.EventHandler(this.txtFindPattern_Enter); this.txtFindPattern.Leave += new System.EventHandler(this.txtFindPattern_Leave); this.txtFindPattern.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtFindPattern_KeyPress); this.txtFindPattern.TextChanged += new System.EventHandler(this.txtFindPattern_TextChanged); // // btnFind // resources.ApplyResources(this.btnFind, "btnFind"); helpProvider1.SetHelpString(this.btnFind, resources.GetString("btnFind.HelpString")); this.btnFind.Name = "btnFind"; helpProvider1.SetShowHelp(this.btnFind, ((bool)(resources.GetObject("btnFind.ShowHelp")))); this.btnFind.Click += new System.EventHandler(this.btnFind_Click); // // lblFindPattern // resources.ApplyResources(lblFindPattern, "lblFindPattern"); lblFindPattern.Name = "lblFindPattern"; helpProvider1.SetShowHelp(lblFindPattern, ((bool)(resources.GetObject("lblFindPattern.ShowHelp")))); // // lvFindResult // resources.ApplyResources(this.lvFindResult, "lvFindResult"); this.lvFindResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { hdrLanguageName, hdrCountry, hdrEthnologueCode}); this.lvFindResult.FullRowSelect = true; helpProvider1.SetHelpString(this.lvFindResult, resources.GetString("lvFindResult.HelpString")); this.lvFindResult.HideSelection = false; this.lvFindResult.MultiSelect = false; this.lvFindResult.Name = "lvFindResult"; helpProvider1.SetShowHelp(this.lvFindResult, ((bool)(resources.GetObject("lvFindResult.ShowHelp")))); this.lvFindResult.UseCompatibleStateImageBehavior = false; this.lvFindResult.View = System.Windows.Forms.View.Details; this.lvFindResult.Enter += new System.EventHandler(this.lvFindResult_Enter); this.lvFindResult.SelectedIndexChanged += new System.EventHandler(this.lvFindResult_SelectedIndexChanged); this.lvFindResult.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvFindResult_ColumnClick); // // hdrLanguageName // resources.ApplyResources(hdrLanguageName, "hdrLanguageName"); // // hdrCountry // resources.ApplyResources(hdrCountry, "hdrCountry"); // // hdrEthnologueCode // resources.ApplyResources(hdrEthnologueCode, "hdrEthnologueCode"); // // grpCurrentLang // grpCurrentLang.Controls.Add(lblCurrentEthCode); grpCurrentLang.Controls.Add(this.lblCurrentEthCodeValue); grpCurrentLang.Controls.Add(lblCurrentLangName); grpCurrentLang.Controls.Add(this.txtCurrentLangName); grpCurrentLang.Controls.Add(lblOtherNames); grpCurrentLang.Controls.Add(this.lblOtherNamesList); grpCurrentLang.FlatStyle = System.Windows.Forms.FlatStyle.System; resources.ApplyResources(grpCurrentLang, "grpCurrentLang"); grpCurrentLang.Name = "grpCurrentLang"; helpProvider1.SetShowHelp(grpCurrentLang, ((bool)(resources.GetObject("grpCurrentLang.ShowHelp")))); grpCurrentLang.TabStop = false; // // lblCurrentEthCode // resources.ApplyResources(lblCurrentEthCode, "lblCurrentEthCode"); lblCurrentEthCode.BackColor = System.Drawing.SystemColors.Control; lblCurrentEthCode.Name = "lblCurrentEthCode"; helpProvider1.SetShowHelp(lblCurrentEthCode, ((bool)(resources.GetObject("lblCurrentEthCode.ShowHelp")))); // // lblCurrentEthCodeValue // resources.ApplyResources(this.lblCurrentEthCodeValue, "lblCurrentEthCodeValue"); helpProvider1.SetHelpString(this.lblCurrentEthCodeValue, resources.GetString("lblCurrentEthCodeValue.HelpString")); this.lblCurrentEthCodeValue.Name = "lblCurrentEthCodeValue"; helpProvider1.SetShowHelp(this.lblCurrentEthCodeValue, ((bool)(resources.GetObject("lblCurrentEthCodeValue.ShowHelp")))); this.lblCurrentEthCodeValue.Tag = "(Unknown)"; // // lblCurrentLangName // resources.ApplyResources(lblCurrentLangName, "lblCurrentLangName"); lblCurrentLangName.Name = "lblCurrentLangName"; helpProvider1.SetShowHelp(lblCurrentLangName, ((bool)(resources.GetObject("lblCurrentLangName.ShowHelp")))); // // txtCurrentLangName // helpProvider1.SetHelpString(this.txtCurrentLangName, resources.GetString("txtCurrentLangName.HelpString")); resources.ApplyResources(this.txtCurrentLangName, "txtCurrentLangName"); this.txtCurrentLangName.Name = "txtCurrentLangName"; helpProvider1.SetShowHelp(this.txtCurrentLangName, ((bool)(resources.GetObject("txtCurrentLangName.ShowHelp")))); this.txtCurrentLangName.TextChanged += new System.EventHandler(this.txtCurrentLangName_TextChanged); // // lblOtherNames // resources.ApplyResources(lblOtherNames, "lblOtherNames"); lblOtherNames.Name = "lblOtherNames"; helpProvider1.SetShowHelp(lblOtherNames, ((bool)(resources.GetObject("lblOtherNames.ShowHelp")))); // // lblOtherNamesList // resources.ApplyResources(this.lblOtherNamesList, "lblOtherNamesList"); helpProvider1.SetHelpString(this.lblOtherNamesList, resources.GetString("lblOtherNamesList.HelpString")); this.lblOtherNamesList.Name = "lblOtherNamesList"; helpProvider1.SetShowHelp(this.lblOtherNamesList, ((bool)(resources.GetObject("lblOtherNamesList.ShowHelp")))); this.lblOtherNamesList.UseMnemonic = false; this.lblOtherNamesList.Paint += new System.Windows.Forms.PaintEventHandler(this.lblOtherNamesList_Paint); // // lblInstructions1 // resources.ApplyResources(lblInstructions1, "lblInstructions1"); lblInstructions1.Name = "lblInstructions1"; helpProvider1.SetShowHelp(lblInstructions1, ((bool)(resources.GetObject("lblInstructions1.ShowHelp")))); // // lblInstructions2 // resources.ApplyResources(lblInstructions2, "lblInstructions2"); lblInstructions2.Name = "lblInstructions2"; helpProvider1.SetShowHelp(lblInstructions2, ((bool)(resources.GetObject("lblInstructions2.ShowHelp")))); // // cboLookup // this.cboLookup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; helpProvider1.SetHelpString(this.cboLookup, resources.GetString("cboLookup.HelpString")); resources.ApplyResources(this.cboLookup, "cboLookup"); this.cboLookup.Items.AddRange(new object[] { resources.GetString("cboLookup.Items"), resources.GetString("cboLookup.Items1"), resources.GetString("cboLookup.Items2")}); this.cboLookup.Name = "cboLookup"; helpProvider1.SetShowHelp(this.cboLookup, ((bool)(resources.GetObject("cboLookup.ShowHelp")))); this.cboLookup.Enter += new System.EventHandler(this.cboLookup_Enter); this.cboLookup.SelectedIndexChanged += new System.EventHandler(this.cboLookup_SelectedIndexChanged); // // LanguageSetup // this.Controls.Add(this.btnFind); this.Controls.Add(this.txtFindPattern); this.Controls.Add(this.cboLookup); this.Controls.Add(lblInstructions2); this.Controls.Add(lblInstructions1); this.Controls.Add(grpCurrentLang); this.Controls.Add(this.lvFindResult); this.Controls.Add(lblFindPattern); this.Controls.Add(lblLookup); this.Name = "LanguageSetup"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); grpCurrentLang.ResumeLayout(false); grpCurrentLang.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
// This method is used in the forms designer. // Change this method on you own risk void InitializeComponents() { // // Set up generated class MainForm // this.SuspendLayout(); this.Name = "MainForm"; this.Text = "This is my form"; this.Size = new Size(600, 400); //implement a help provider for this form. hlp = new HelpProvider(); list = new ListBox(); list.Size = new Size(520,145); list.Location = new Point(1,1); list.MultiColumn = true; list.DrawMode = DrawMode.OwnerDrawFixed; list.MouseDown += new MouseEventHandler(this.OnMouseDown); list.DoubleClick += new EventHandler(this.OnDblClick); list.DrawItem += new DrawItemEventHandler(this.OnDrawItem); //set the helpstring for the list and enable the dispalying of help when //the listbox has focus and user presses F1. hlp.SetHelpString(list,"Shows files and folders in the current folder"); hlp.SetShowHelp(list,true); prev = new Button(); prev.Text = "Back"; prev.Size = new Size(50,30); prev.Location = new Point(530,60); prev.Click += new EventHandler(this.OnPrevClicked); //set the helpstring for the button and enable the dispalying of help when //the Back button has focus and user presses F1. hlp.SetHelpString(prev,"Click to go to parent folder"); hlp.SetShowHelp(prev,true); fileLabel = new Label(); fileLabel.Size = new Size(590,40); fileLabel.Location = new Point(1,147); rich = new RichTextBox(); rich.Size = new Size(590,180); rich.Location = new Point(1,190); rich.AllowDrop = true; rich.DragEnter +=new DragEventHandler(this.OnDragEnter); rich.DragDrop += new DragEventHandler(this.OnDragDrop); //set the helpstring for the text box and enable the dispalying of help when //the rich textbox has focus and user presses F1. hlp.SetHelpString(rich,"Shows contents of file dropped"); hlp.SetShowHelp(rich,true); this.ResumeLayout(false); Controls.Add(list); Controls.Add(prev); Controls.Add(fileLabel); Controls.Add(rich); }
private void txtKullaniciAdi_MouseClick(object sender, MouseEventArgs e) { HelpProvider helper = new HelpProvider(); helper.SetShowHelp(this.txtKullaniciAdi, true); helper.SetHelpString(this.txtKullaniciAdi, "Help text"); }
/// <summary> /// setup help messages /// </summary> void HelpSetup() { nshredHelp = new HelpProvider(); nshredHelp.SetShowHelp(tbPath, true); nshredHelp.SetHelpString(tbPath, rm.GetString("enter_file_name")); nshredHelp.SetShowHelp(cmdSelect, true); nshredHelp.SetHelpString(cmdSelect, rm.GetString("open_file_select")); nshredHelp.SetShowHelp(optFile, true); nshredHelp.SetHelpString(optFile, rm.GetString("use_shred_file")); nshredHelp.SetShowHelp(optFolder, true); nshredHelp.SetHelpString(optFolder, rm.GetString("use_shred_files")); nshredHelp.SetShowHelp(chkCloseInstance, true); nshredHelp.SetHelpString(chkCloseInstance, rm.GetString("terminate_running")); nshredHelp.SetShowHelp(chkSubfolders, true); nshredHelp.SetHelpString(chkSubfolders, rm.GetString("delete_files_parent")); nshredHelp.SetShowHelp(cmdShred, true); nshredHelp.SetHelpString(cmdShred, rm.GetString("begin_shredding")); }
void InitHelp() { const string strLanguageHelp = "This is the name of the language."; helpProvider.SetHelpString(lblLanguage, strLanguageHelp); helpProvider.SetHelpString(tbLanguage, strLanguageHelp); toolTip.SetToolTip(lblLanguage, strLanguageHelp); toolTip.SetToolTip(tbLanguage, strLanguageHelp); const string strAbbreviationHelp = "This is the abbreviation of the language.\n" + "If you are using CarlaStudio, we recommend you use the same abbreviation as you did for it.\n" + "If possible, we recommend you use the Ethnologue code."; helpProvider.SetHelpString(lblAbbreviation, strAbbreviationHelp); helpProvider.SetHelpString(lblThreeLetters, strAbbreviationHelp); helpProvider.SetHelpString(tbAbbreviation, strAbbreviationHelp); toolTip.SetToolTip(lblAbbreviation, strAbbreviationHelp); toolTip.SetToolTip(this.lblThreeLetters, strAbbreviationHelp); toolTip.SetToolTip(tbAbbreviation, strAbbreviationHelp); const string strFontHelp = "This is the name of the font you want for your language examples."; helpProvider.SetHelpString(lblFontName, strFontHelp); toolTip.SetToolTip(lblFontName, strFontHelp); const string strChangeFontHelp = "Click this to change the font information."; helpProvider.SetHelpString(btnFont, strChangeFontHelp); toolTip.SetToolTip(btnFont, strChangeFontHelp); const string strFieldCodeHelp = "This is the Standard Format code that will be used for all of your examples in the example files."; helpProvider.SetHelpString(lblFieldCode, strFieldCodeHelp); helpProvider.SetHelpString(tbFieldCode, strFieldCodeHelp); toolTip.SetToolTip(lblFieldCode, strFieldCodeHelp); toolTip.SetToolTip(tbFieldCode, strFieldCodeHelp); const string strAnswerFileHelp = "This file contains the answers to all the questions\n" + "contained in the Starter Kit. While you probably will never need to edit it manually,\n" + "you should put it someplace where it will be easy to backup."; helpProvider.SetHelpString(lblAnswerFile, strAnswerFileHelp); helpProvider.SetHelpString(tbAnswerFile, strAnswerFileHelp); toolTip.SetToolTip(lblAnswerFile, strAnswerFileHelp); toolTip.SetToolTip(tbAnswerFile, strAnswerFileHelp); const string strChangeAnswerFileHelp = "Click this to set or change the location and name of the Answer file."; helpProvider.SetHelpString(btnAnswerFile, strChangeAnswerFileHelp); toolTip.SetToolTip(btnAnswerFile, strChangeAnswerFileHelp); const string strGrammarFileHelp = "This file contains the generated PC-PATR grammar file.\n" + "Put it where you will have easy access to it.\n" + "If you are using CarlaStudio, we recommend you put it in the \"XXX Control Files\" directory."; helpProvider.SetHelpString(lblGrammarFile, strGrammarFileHelp); helpProvider.SetHelpString(tbGrammarFile, strGrammarFileHelp); toolTip.SetToolTip(lblGrammarFile, strGrammarFileHelp); toolTip.SetToolTip(tbGrammarFile, strGrammarFileHelp); const string strWriterFileHelp = "This file contains the generated XLingPaper grammar write-up.\n" + "Put it where you will have easy access to it, since you will want to edit it."; helpProvider.SetHelpString(lblWriterFile, strWriterFileHelp); helpProvider.SetHelpString(tbWriterFile, strWriterFileHelp); toolTip.SetToolTip(lblWriterFile, strWriterFileHelp); toolTip.SetToolTip(tbWriterFile, strWriterFileHelp); const string strExampleFilesHelp = "This directory is where the generated example files will go.\n" + "Put it where you will have easy access to it.\n" + "If you are using CarlaStudio, we recommend you put it where your other text files are."; helpProvider.SetHelpString(lblExampleFiles, strExampleFilesHelp); helpProvider.SetHelpString(tbExampleFiles, strExampleFilesHelp); toolTip.SetToolTip(lblExampleFiles, strExampleFilesHelp); toolTip.SetToolTip(tbExampleFiles, strExampleFilesHelp); }
private void Form1_Load(object sender, EventArgs e) { System.Windows.Forms.HelpProvider hp = new HelpProvider(); hp.SetHelpString(tbArGesamteAusgaben, "Hilfe1.0"); }
private void PopupText_Load(object sender, System.EventArgs e) { hlp.SetHelpString(cmdAdd, "Choose another item from the catalog."); hlp.SetHelpString(cmdDelete, "Delete the selected item from your order."); }
/// <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.ColumnHeader columnHeader1; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedEncProps)); System.Windows.Forms.ColumnHeader columnHeader2; System.Windows.Forms.HelpProvider helpProvider1; this.lvConverterInfo = new System.Windows.Forms.ListView(); columnHeader1 = new System.Windows.Forms.ColumnHeader(); columnHeader2 = new System.Windows.Forms.ColumnHeader(); helpProvider1 = new HelpProvider(); this.SuspendLayout(); // // lvConverterInfo // this.lvConverterInfo.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { columnHeader1, columnHeader2}); resources.ApplyResources(this.lvConverterInfo, "lvConverterInfo"); this.lvConverterInfo.FullRowSelect = true; helpProvider1.SetHelpString(this.lvConverterInfo, resources.GetString("lvConverterInfo.HelpString")); this.lvConverterInfo.MultiSelect = false; this.lvConverterInfo.Name = "lvConverterInfo"; helpProvider1.SetShowHelp(this.lvConverterInfo, ((bool)(resources.GetObject("lvConverterInfo.ShowHelp")))); this.lvConverterInfo.UseCompatibleStateImageBehavior = false; this.lvConverterInfo.View = System.Windows.Forms.View.Details; // // columnHeader1 // resources.ApplyResources(columnHeader1, "columnHeader1"); // // columnHeader2 // resources.ApplyResources(columnHeader2, "columnHeader2"); // // AdvancedEncProps // this.Controls.Add(this.lvConverterInfo); this.Name = "AdvancedEncProps"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); this.ResumeLayout(false); }
/// ------------------------------------------------------------------------------------ /// <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.Button m_btnExit; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FwDeleteProjectDlg)); System.Windows.Forms.Button m_btnHelp; System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.HelpProvider m_helpProvider; this.m_lstProjects = new System.Windows.Forms.ListBox(); this.m_btnDelete = new System.Windows.Forms.Button(); this.m_lstProjectsInUse = new System.Windows.Forms.ListBox(); m_btnExit = new System.Windows.Forms.Button(); m_btnHelp = new System.Windows.Forms.Button(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); m_helpProvider = new System.Windows.Forms.HelpProvider(); this.SuspendLayout(); // // m_btnExit // m_btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; resources.ApplyResources(m_btnExit, "m_btnExit"); m_btnExit.Name = "m_btnExit"; m_helpProvider.SetShowHelp(m_btnExit, ((bool)(resources.GetObject("m_btnExit.ShowHelp")))); // // m_btnHelp // m_helpProvider.SetHelpString(m_btnHelp, resources.GetString("m_btnHelp.HelpString")); resources.ApplyResources(m_btnHelp, "m_btnHelp"); m_btnHelp.Name = "m_btnHelp"; m_helpProvider.SetShowHelp(m_btnHelp, ((bool)(resources.GetObject("m_btnHelp.ShowHelp")))); m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // label1 // resources.ApplyResources(label1, "label1"); label1.Name = "label1"; m_helpProvider.SetShowHelp(label1, ((bool)(resources.GetObject("label1.ShowHelp")))); // // label2 // resources.ApplyResources(label2, "label2"); label2.Name = "label2"; m_helpProvider.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp")))); // // m_lstProjects // resources.ApplyResources(this.m_lstProjects, "m_lstProjects"); this.m_lstProjects.Name = "m_lstProjects"; this.m_lstProjects.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; m_helpProvider.SetShowHelp(this.m_lstProjects, ((bool)(resources.GetObject("m_lstProjects.ShowHelp")))); this.m_lstProjects.Sorted = true; this.m_lstProjects.SelectedIndexChanged += new System.EventHandler(this.m_lstProjects_SelectedIndexChanged); // // m_btnDelete // resources.ApplyResources(this.m_btnDelete, "m_btnDelete"); this.m_btnDelete.Name = "m_btnDelete"; m_helpProvider.SetShowHelp(this.m_btnDelete, ((bool)(resources.GetObject("m_btnDelete.ShowHelp")))); this.m_btnDelete.Click += new System.EventHandler(this.m_btnDelete_Click); // // m_lstProjectsInUse // resources.ApplyResources(this.m_lstProjectsInUse, "m_lstProjectsInUse"); this.m_lstProjectsInUse.Name = "m_lstProjectsInUse"; this.m_lstProjectsInUse.SelectionMode = System.Windows.Forms.SelectionMode.None; m_helpProvider.SetShowHelp(this.m_lstProjectsInUse, ((bool)(resources.GetObject("m_lstProjectsInUse.ShowHelp")))); this.m_lstProjectsInUse.Sorted = true; // // FwDeleteProjectDlg // resources.ApplyResources(this, "$this"); this.CancelButton = m_btnExit; this.Controls.Add(label2); this.Controls.Add(label1); this.Controls.Add(this.m_lstProjectsInUse); this.Controls.Add(m_btnHelp); this.Controls.Add(m_btnExit); this.Controls.Add(this.m_btnDelete); this.Controls.Add(this.m_lstProjects); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FwDeleteProjectDlg"; m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); this.ShowInTaskbar = false; this.ResumeLayout(false); this.PerformLayout(); }
/// <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.Button btnHelp; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddCnvtrDlg)); System.Windows.Forms.Button btnClose; System.Windows.Forms.HelpProvider helpProvider1; this.label1 = new System.Windows.Forms.Label(); this.m_addCnvtrTabCtrl = new System.Windows.Forms.TabControl(); this.propertiesTab = new System.Windows.Forms.TabPage(); this.m_cnvtrPropertiesCtrl = new SIL.FieldWorks.FwCoreDlgs.CnvtrPropertiesCtrl(); this.testTab = new System.Windows.Forms.TabPage(); this.m_converterTest = new SIL.FieldWorks.FwCoreDlgs.ConverterTest(); this.advancedTab = new System.Windows.Forms.TabPage(); this.m_advancedEncProps = new SIL.FieldWorks.FwCoreDlgs.AdvancedEncProps(); this.availableCnvtrsListBox = new System.Windows.Forms.ListBox(); this.btnAdd = new System.Windows.Forms.Button(); this.btnCopy = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); btnHelp = new System.Windows.Forms.Button(); btnClose = new System.Windows.Forms.Button(); helpProvider1 = new System.Windows.Forms.HelpProvider(); this.m_addCnvtrTabCtrl.SuspendLayout(); this.propertiesTab.SuspendLayout(); this.testTab.SuspendLayout(); this.advancedTab.SuspendLayout(); this.SuspendLayout(); // // btnHelp // resources.ApplyResources(btnHelp, "btnHelp"); btnHelp.Name = "btnHelp"; helpProvider1.SetShowHelp(btnHelp, ((bool)(resources.GetObject("btnHelp.ShowHelp")))); btnHelp.Click += new System.EventHandler(this.btnHelp_Click); // // btnClose // resources.ApplyResources(btnClose, "btnClose"); helpProvider1.SetHelpString(btnClose, resources.GetString("btnClose.HelpString")); btnClose.Name = "btnClose"; helpProvider1.SetShowHelp(btnClose, ((bool)(resources.GetObject("btnClose.ShowHelp")))); btnClose.Click += new System.EventHandler(this.btnClose_Click); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; helpProvider1.SetShowHelp(this.label1, ((bool)(resources.GetObject("label1.ShowHelp")))); // // m_addCnvtrTabCtrl // resources.ApplyResources(this.m_addCnvtrTabCtrl, "m_addCnvtrTabCtrl"); this.m_addCnvtrTabCtrl.Controls.Add(this.propertiesTab); this.m_addCnvtrTabCtrl.Name = "m_addCnvtrTabCtrl"; this.m_addCnvtrTabCtrl.SelectedIndex = 0; helpProvider1.SetShowHelp(this.m_addCnvtrTabCtrl, ((bool)(resources.GetObject("m_addCnvtrTabCtrl.ShowHelp")))); this.m_addCnvtrTabCtrl.SelectedIndexChanged += new System.EventHandler(this.AddCnvtrTabCtrl_SelectedIndexChanged); // // propertiesTab // this.propertiesTab.Controls.Add(this.m_cnvtrPropertiesCtrl); resources.ApplyResources(this.propertiesTab, "propertiesTab"); this.propertiesTab.Name = "propertiesTab"; helpProvider1.SetShowHelp(this.propertiesTab, ((bool)(resources.GetObject("propertiesTab.ShowHelp")))); this.propertiesTab.Tag = "ktagProperties"; this.propertiesTab.UseVisualStyleBackColor = true; // // m_cnvtrPropertiesCtrl // this.m_cnvtrPropertiesCtrl.BackColor = System.Drawing.Color.Transparent; this.m_cnvtrPropertiesCtrl.ConverterChanged = true; resources.ApplyResources(this.m_cnvtrPropertiesCtrl, "m_cnvtrPropertiesCtrl"); this.m_cnvtrPropertiesCtrl.Name = "m_cnvtrPropertiesCtrl"; this.m_cnvtrPropertiesCtrl.OnlyUnicode = false; helpProvider1.SetShowHelp(this.m_cnvtrPropertiesCtrl, ((bool)(resources.GetObject("m_cnvtrPropertiesCtrl.ShowHelp")))); // // testTab // this.testTab.Controls.Add(this.m_converterTest); resources.ApplyResources(this.testTab, "testTab"); this.testTab.Name = "testTab"; helpProvider1.SetShowHelp(this.testTab, ((bool)(resources.GetObject("testTab.ShowHelp")))); this.testTab.Tag = "ktagTest"; this.testTab.UseVisualStyleBackColor = true; // // m_converterTest // resources.ApplyResources(this.m_converterTest, "m_converterTest"); this.m_converterTest.Name = "m_converterTest"; helpProvider1.SetShowHelp(this.m_converterTest, ((bool)(resources.GetObject("m_converterTest.ShowHelp")))); // // advancedTab // this.advancedTab.Controls.Add(this.m_advancedEncProps); resources.ApplyResources(this.advancedTab, "advancedTab"); this.advancedTab.Name = "advancedTab"; helpProvider1.SetShowHelp(this.advancedTab, ((bool)(resources.GetObject("advancedTab.ShowHelp")))); this.advancedTab.Tag = "ktagAdvanced"; this.advancedTab.UseVisualStyleBackColor = true; // // m_advancedEncProps // this.m_advancedEncProps.Converters = null; resources.ApplyResources(this.m_advancedEncProps, "m_advancedEncProps"); this.m_advancedEncProps.Name = "m_advancedEncProps"; helpProvider1.SetShowHelp(this.m_advancedEncProps, ((bool)(resources.GetObject("m_advancedEncProps.ShowHelp")))); // // availableCnvtrsListBox // this.availableCnvtrsListBox.FormattingEnabled = true; helpProvider1.SetHelpString(this.availableCnvtrsListBox, resources.GetString("availableCnvtrsListBox.HelpString")); resources.ApplyResources(this.availableCnvtrsListBox, "availableCnvtrsListBox"); this.availableCnvtrsListBox.Name = "availableCnvtrsListBox"; helpProvider1.SetShowHelp(this.availableCnvtrsListBox, ((bool)(resources.GetObject("availableCnvtrsListBox.ShowHelp")))); this.availableCnvtrsListBox.Sorted = true; this.availableCnvtrsListBox.SelectedIndexChanged += new System.EventHandler(this.availableCnvtrsListBox_SelectedIndexChanged); // // btnAdd // resources.ApplyResources(this.btnAdd, "btnAdd"); this.btnAdd.Name = "btnAdd"; helpProvider1.SetShowHelp(this.btnAdd, ((bool)(resources.GetObject("btnAdd.ShowHelp")))); this.btnAdd.UseVisualStyleBackColor = true; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // btnCopy // resources.ApplyResources(this.btnCopy, "btnCopy"); this.btnCopy.Name = "btnCopy"; helpProvider1.SetShowHelp(this.btnCopy, ((bool)(resources.GetObject("btnCopy.ShowHelp")))); this.btnCopy.UseVisualStyleBackColor = true; this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); // // btnDelete // resources.ApplyResources(this.btnDelete, "btnDelete"); this.btnDelete.Name = "btnDelete"; helpProvider1.SetShowHelp(this.btnDelete, ((bool)(resources.GetObject("btnDelete.ShowHelp")))); this.btnDelete.UseVisualStyleBackColor = true; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // AddCnvtrDlg // resources.ApplyResources(this, "$this"); this.ControlBox = false; this.Controls.Add(this.btnDelete); this.Controls.Add(this.btnCopy); this.Controls.Add(this.btnAdd); this.Controls.Add(btnClose); this.Controls.Add(this.availableCnvtrsListBox); this.Controls.Add(btnHelp); this.Controls.Add(this.m_addCnvtrTabCtrl); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "AddCnvtrDlg"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); this.ShowInTaskbar = false; this.Load += new System.EventHandler(this.AddCnvtrDlg_Load); this.m_addCnvtrTabCtrl.ResumeLayout(false); this.propertiesTab.ResumeLayout(false); this.testTab.ResumeLayout(false); this.advancedTab.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public void BasicPropertiesTest() { 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); Assert.IsNotNull(eventTuple, "GetAutomationEventAt (0)"); //We have the HelpProvider! IRawElementProviderFragment helpProvider = eventTuple.provider as IRawElementProviderFragment; Assert.IsNotNull(helpProvider, "helpProvider is null"); TestProperty(helpProvider, AutomationElementIdentifiers.IsControlElementProperty, true); TestProperty(helpProvider, AutomationElementIdentifiers.IsContentElementProperty, false); TestProperty(helpProvider, AutomationElementIdentifiers.HelpTextProperty, null); TestProperty(helpProvider, AutomationElementIdentifiers.LocalizedControlTypeProperty, "tool tip"); TestProperty(helpProvider, AutomationElementIdentifiers.ControlTypeProperty, ControlType.ToolTip.Id); TestProperty(helpProvider, AutomationElementIdentifiers.LabeledByProperty, null); TestProperty(helpProvider, AutomationElementIdentifiers.NameProperty, swfHelpProvider.GetHelpString(swfButton)); TestProperty(helpProvider, AutomationElementIdentifiers.IsKeyboardFocusableProperty, false); TestProperty(helpProvider, AutomationElementIdentifiers.ClickablePointProperty, null); // TODO: How to allow it? // bridge.ResetEventLists (); // // swfButtonNoHelp.PerformClick (); //Clicking this button will close the tooltip // // Assert.AreEqual (1, // bridge.GetAutomationEventCount (InvokePatternIdentifiers.InvokedEvent), // "AutomationElementIdentifiers.InvokedEvent"); // // Assert.IsNotNull (bridge.GetStructureChangedEventAt (0, StructureChangeType.ChildRemoved), // "AutomationElementIdentifiers.ChildRemoved"); }
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> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.Button selectFileButton; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterTest)); System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; System.Windows.Forms.HelpProvider helpProvider1; this.outputFontCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.convertButton = new System.Windows.Forms.Button(); this.OutputPanel = new System.Windows.Forms.Panel(); this.saveFileButton = new System.Windows.Forms.Button(); this.txtInputFile = new System.Windows.Forms.TextBox(); this.toolTipInputFile = new System.Windows.Forms.ToolTip(this.components); selectFileButton = new System.Windows.Forms.Button(); label2 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); helpProvider1 = new HelpProvider(); this.SuspendLayout(); // // selectFileButton // helpProvider1.SetHelpString(selectFileButton, resources.GetString("selectFileButton.HelpString")); resources.ApplyResources(selectFileButton, "selectFileButton"); selectFileButton.Name = "selectFileButton"; helpProvider1.SetShowHelp(selectFileButton, ((bool)(resources.GetObject("selectFileButton.ShowHelp")))); selectFileButton.Click += new System.EventHandler(this.selectFileButton_Click); // // label2 // resources.ApplyResources(label2, "label2"); helpProvider1.SetHelpString(label2, resources.GetString("label2.HelpString")); label2.Name = "label2"; helpProvider1.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp")))); // // outputFontCombo // resources.ApplyResources(this.outputFontCombo, "outputFontCombo"); this.outputFontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; helpProvider1.SetHelpString(this.outputFontCombo, resources.GetString("outputFontCombo.HelpString")); this.outputFontCombo.Name = "outputFontCombo"; helpProvider1.SetShowHelp(this.outputFontCombo, ((bool)(resources.GetObject("outputFontCombo.ShowHelp")))); this.outputFontCombo.SelectedIndexChanged += new System.EventHandler(this.outputFontCombo_SelectedIndexChanged); // // convertButton // resources.ApplyResources(this.convertButton, "convertButton"); helpProvider1.SetHelpString(this.convertButton, resources.GetString("convertButton.HelpString")); this.convertButton.Name = "convertButton"; helpProvider1.SetShowHelp(this.convertButton, ((bool)(resources.GetObject("convertButton.ShowHelp")))); this.convertButton.Click += new System.EventHandler(this.convertButton_Click); // // label3 // resources.ApplyResources(label3, "label3"); label3.Name = "label3"; helpProvider1.SetShowHelp(label3, ((bool)(resources.GetObject("label3.ShowHelp")))); // // OutputPanel // resources.ApplyResources(this.OutputPanel, "OutputPanel"); this.OutputPanel.BackColor = System.Drawing.SystemColors.Control; this.OutputPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; helpProvider1.SetHelpString(this.OutputPanel, resources.GetString("OutputPanel.HelpString")); this.OutputPanel.Name = "OutputPanel"; helpProvider1.SetShowHelp(this.OutputPanel, ((bool)(resources.GetObject("OutputPanel.ShowHelp")))); // // saveFileButton // resources.ApplyResources(this.saveFileButton, "saveFileButton"); helpProvider1.SetHelpString(this.saveFileButton, resources.GetString("saveFileButton.HelpString")); this.saveFileButton.Name = "saveFileButton"; helpProvider1.SetShowHelp(this.saveFileButton, ((bool)(resources.GetObject("saveFileButton.ShowHelp")))); this.saveFileButton.Click += new System.EventHandler(this.saveFileButton_Click); // // txtInputFile // resources.ApplyResources(this.txtInputFile, "txtInputFile"); this.txtInputFile.BackColor = System.Drawing.SystemColors.Window; this.txtInputFile.Cursor = System.Windows.Forms.Cursors.Arrow; this.txtInputFile.Name = "txtInputFile"; this.txtInputFile.ReadOnly = true; helpProvider1.SetShowHelp(this.txtInputFile, ((bool)(resources.GetObject("txtInputFile.ShowHelp")))); this.txtInputFile.TabStop = false; // // ConverterTest // this.Controls.Add(this.txtInputFile); this.Controls.Add(this.convertButton); this.Controls.Add(this.saveFileButton); this.Controls.Add(this.OutputPanel); this.Controls.Add(label3); this.Controls.Add(label2); this.Controls.Add(this.outputFontCombo); this.Controls.Add(selectFileButton); this.Name = "ConverterTest"; helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); resources.ApplyResources(this, "$this"); this.Load += new System.EventHandler(this.ConverterTest_Load); this.ResumeLayout(false); this.PerformLayout(); }
private void fAltersvorsorgerechner_Load(object sender, EventArgs e) { HelpProvider hp = new HelpProvider(); hp.SetHelpString(nudGaInflation, "Geben Sie hier die durchschnittliche Inflation pro Jahr an."); hp.SetHelpString(tbGAName1Per, "Geben Sie hier den Namen der ersten Person an."); hp.SetHelpString(cbGaZweitePerson, "Aktivieren Sie dieses Kontrollfeld, um eine zweite Person zu aktivieren."); hp.SetHelpString(tbGAName2Per, "Geben Sie hier den Namen der optionalen zweiten Person an."); hp.SetHelpString(nudGAInRenteGehenImJahr, "Geben Sie hier das Jahr an, in dem Sie vorraussichtlich in Rente gehen werden."); hp.SetHelpString(nudGaRentnerjahre, "Geben Sie hier die vorraussichtliche Zeit als Rentner/in an."); hp.SetHelpString(nudGaJahreBisZurRente, "Geben Sie hier an, wie viele Jahre es wahrscheinlich noch bis zur Rente sind."); hp.SetHelpString(nudGAInRenteGehenImJahr, "Geben Sie hier das Jahr an, in dem die zweite Person vorraussichtlich in Rente gehen werden."); hp.SetHelpString(nudGaRentnerjahre, "Geben Sie hier die vorraussichtliche Zeit der zweiten Person als Rentner/in an."); hp.SetHelpString(nudGaJahreBisZurRente, "Geben Sie hier an, wie viele Jahre es für die zweite Person wahrscheinlich noch bis zur Rente sind."); hp.SetHelpString(nudFAMonatKosten, "Die jetztigen monatlichen, gesamten Kosten"); }
void InitHelp() { const string strInitialXCoordHelp = "This is where the leftmost edge of the tree begins (usually the leftmost terminal node).\n" + "It is in units of .01 mm (so a value of 200 means 2mm from the left edge)."; helpProvider.SetHelpString(lblInitialXCoord, strInitialXCoordHelp); helpProvider.SetHelpString(tbInitialXCoord, strInitialXCoordHelp); const string strInitialYCoordHelp = "This is where the top of the tree begins.\n" + "It is in units of .01 mm (so a value of 200 means 2mm down from the top)."; helpProvider.SetHelpString(lblInitialYCoord, strInitialYCoordHelp); helpProvider.SetHelpString(tbInitialYCoord, strInitialYCoordHelp); const string strHorizontalGapHelp = "This is the minimum extra space between horizontally adjacent nodes.\n" + "It is in units of .01 mm (so a value of 200 means 2mm between the nodes)."; helpProvider.SetHelpString(lblHorizontalGap, strHorizontalGapHelp); helpProvider.SetHelpString(tbHorizontalGap, strHorizontalGapHelp); const string strVerticalGapHelp = "This is the extra vertical space between levels in the tree (e.g. between a non-terminal node and its mother node).\n" + "It is in units of .01 mm (so a value of 200 means 2mm between the nodes)."; helpProvider.SetHelpString(lblVerticalGap, strVerticalGapHelp); helpProvider.SetHelpString(tbVerticalGap, strVerticalGapHelp); const string strLexGlossGapHelp = "This is the extra vertical space between a lexical item and its gloss in the tree.\n" + "It is in units of .01 mm (so a value of 200 means 2mm between the nodes)."; helpProvider.SetHelpString(lblLexGlossGap, strLexGlossGapHelp); helpProvider.SetHelpString(tbLexGlossGap, strLexGlossGapHelp); const string strNTFontHelp = "Clicking on the button allows you to set the font that is used for Non-Terminal nodes in the tree."; helpProvider.SetHelpString(lblNTFont1, strNTFontHelp); helpProvider.SetHelpString(btnNTFont, strNTFontHelp); helpProvider.SetHelpString(lblNTFont, "This is the name of the current Non-Terminal font.\n" + "Click on the button to change it."); const string strLexFontHelp = "Clicking on the button allows you to set the font that is used for Lexical nodes in the tree."; helpProvider.SetHelpString(lblLexFont1, strLexFontHelp); helpProvider.SetHelpString(btnLexFont, strLexFontHelp); helpProvider.SetHelpString(lblLexFont, "This is the name of the current Lexical font.\n" + "Click on the button to change it."); const string strGlossFontHelp = "Clicking on the button allows you to set the font that is used for Gloss nodes in the tree."; helpProvider.SetHelpString(lblGlossFont1, strGlossFontHelp); helpProvider.SetHelpString(btnGlossFont, strGlossFontHelp); helpProvider.SetHelpString(lblGlossFont, "This is the name of the current Gloss font.\n" + "Click on the button to change it."); const string strBackgroundColorHelp = "Clicking on the button allows you to set the background color of the tree."; helpProvider.SetHelpString(lblBackgroundColor1, strBackgroundColorHelp); helpProvider.SetHelpString(btnBackgroundColor, strBackgroundColorHelp); helpProvider.SetHelpString(lblBackgroundColor, "This is the name or special code defining the current background color of the tree.\n" + "Click on the button to change it."); const string strLineColorHelp = "Clicking on the button allows you to set the color of the lines in the tree."; helpProvider.SetHelpString(lblLineColor1, strLineColorHelp); helpProvider.SetHelpString(btnLineColor, strLineColorHelp); helpProvider.SetHelpString(lblLineColor, "This is the name or special code defining the current color of the lines in the tree.\n" + "Click on the button to change it."); const string strLineThicknessHelp = "This is thickness of the lines in the tree. If the units are too small, a default thickness is used."; helpProvider.SetHelpString(lblLineWidth, strLineThicknessHelp); helpProvider.SetHelpString(tbLineWidth, strLineThicknessHelp); helpProvider.SetHelpString(cbSmoothing, "If this is checked, LingTree will attempt to make any slanted or angled lines appear smoother or less jagged."); helpProvider.SetHelpString(cbPixelOffset, "This will only be used if smoothing is also checked. If this is checked, LingTree will attempt to offset any slanted or angled lines a bit to further make them appear smoother or less jagged."); helpProvider.SetHelpString(cbFlat, "If this is checked, all of the lexical and any gloss nodes will appear at the same vertical position."); helpProvider.SetHelpString(cbDefault, "If this is checked, the current parameter settings will be used for any new trees you create."); }