This control handles all of the various text labels and other widgets used to set up an MSA of any of the classes.
Наследование: System.Windows.Forms.UserControl, IFWDisposable
Пример #1
0
        private void AdjustHeightAndPositions(MSAGroupBox msagb)
        {
            int oldHeight = msagb.Height;
            int newHeight = Math.Max(oldHeight, msagb.PreferredHeight);
            int delta     = newHeight - oldHeight;

            if (delta > 0)
            {
                msagb.AdjustInternalControlsAndGrow();
                Debug.Assert(msagb.Height == msagb.PreferredHeight);
                FontHeightAdjuster.GrowDialogAndAdjustControls(this, delta, msagb);
            }
        }
Пример #2
0
		private void AdjustHeightAndPositions(MSAGroupBox msagb)
		{
			int oldHeight = msagb.Height;
			int newHeight = Math.Max(oldHeight, msagb.PreferredHeight);
			int delta = newHeight - oldHeight;
			if (delta > 0)
			{
				msagb.AdjustInternalControlsAndGrow();
				Debug.Assert(msagb.Height == msagb.PreferredHeight);
				FontHeightAdjuster.GrowDialogAndAdjustControls(this, delta, msagb);
			}
		}
Пример #3
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddNewSenseDlg));
			this.label1 = new System.Windows.Forms.Label();
			this.m_btnOK = new System.Windows.Forms.Button();
			this.m_btnCancel = new System.Windows.Forms.Button();
			this.m_fwtbCitationForm = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			this.m_fwtbGloss = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			this.m_cbIsStem = new System.Windows.Forms.CheckBox();
			this.label2 = new System.Windows.Forms.Label();
			this.m_msaGroupBox = new SIL.FieldWorks.LexText.Controls.MSAGroupBox();
			this.buttonHelp = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.m_fwtbCitationForm)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.m_fwtbGloss)).BeginInit();
			this.SuspendLayout();
			//
			// label1
			//
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			//
			// m_btnOK
			//
			this.m_btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			resources.ApplyResources(this.m_btnOK, "m_btnOK");
			this.m_btnOK.Name = "m_btnOK";
			//
			// m_btnCancel
			//
			this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
			this.m_btnCancel.Name = "m_btnCancel";
			//
			// m_fwtbCitationForm
			//
			this.m_fwtbCitationForm.AdjustStringHeight = true;
			this.m_fwtbCitationForm.AllowMultipleLines = false;
			this.m_fwtbCitationForm.BackColor = System.Drawing.SystemColors.Control;
			this.m_fwtbCitationForm.controlID = null;
			resources.ApplyResources(this.m_fwtbCitationForm, "m_fwtbCitationForm");
			this.m_fwtbCitationForm.Name = "m_fwtbCitationForm";
			this.m_fwtbCitationForm.SelectionLength = 0;
			this.m_fwtbCitationForm.SelectionStart = 0;
			this.m_fwtbCitationForm.WritingSystemCode = 1;
			//
			// m_fwtbGloss
			//
			this.m_fwtbGloss.AdjustStringHeight = true;
			this.m_fwtbGloss.AllowMultipleLines = false;
			this.m_fwtbGloss.BackColor = System.Drawing.SystemColors.Window;
			this.m_fwtbGloss.controlID = null;
			resources.ApplyResources(this.m_fwtbGloss, "m_fwtbGloss");
			this.m_fwtbGloss.Name = "m_fwtbGloss";
			this.m_fwtbGloss.SelectionLength = 0;
			this.m_fwtbGloss.SelectionStart = 0;
			this.m_fwtbGloss.WritingSystemCode = 1;
			//
			// m_cbIsStem
			//
			resources.ApplyResources(this.m_cbIsStem, "m_cbIsStem");
			this.m_cbIsStem.Name = "m_cbIsStem";
			this.m_cbIsStem.CheckedChanged += new System.EventHandler(this.m_cbIsStem_CheckedChanged);
			//
			// label2
			//
			resources.ApplyResources(this.label2, "label2");
			this.label2.Name = "label2";
			//
			// m_msaGroupBox
			//
			resources.ApplyResources(this.m_msaGroupBox, "m_msaGroupBox");
			this.m_msaGroupBox.MSAType = SIL.FieldWorks.FDO.MsaType.kNotSet;
			this.m_msaGroupBox.Name = "m_msaGroupBox";
			this.m_msaGroupBox.Slot = null;
			//
			// buttonHelp
			//
			resources.ApplyResources(this.buttonHelp, "buttonHelp");
			this.buttonHelp.Name = "buttonHelp";
			this.buttonHelp.Click += new System.EventHandler(this.buttonHelp_Click);
			//
			// AddNewSenseDlg
			//
			this.AcceptButton = this.m_btnOK;
			resources.ApplyResources(this, "$this");
			this.CancelButton = this.m_btnCancel;
			this.ControlBox = false;
			this.Controls.Add(this.label2);
			this.Controls.Add(this.m_cbIsStem);
			this.Controls.Add(this.m_fwtbGloss);
			this.Controls.Add(this.m_fwtbCitationForm);
			this.Controls.Add(this.m_btnCancel);
			this.Controls.Add(this.m_btnOK);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.buttonHelp);
			this.Controls.Add(this.m_msaGroupBox);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Name = "AddNewSenseDlg";
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.Closing += new System.ComponentModel.CancelEventHandler(this.AddNewSenseDlg_Closing);
			((System.ComponentModel.ISupportInitialize)(this.m_fwtbCitationForm)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.m_fwtbGloss)).EndInit();
			this.ResumeLayout(false);

		}
Пример #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddNewSenseDlg));
     this.label1             = new System.Windows.Forms.Label();
     this.m_btnOK            = new System.Windows.Forms.Button();
     this.m_btnCancel        = new System.Windows.Forms.Button();
     this.m_fwtbCitationForm = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.m_fwtbGloss        = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.m_cbIsStem         = new System.Windows.Forms.CheckBox();
     this.label2             = new System.Windows.Forms.Label();
     this.m_msaGroupBox      = new SIL.FieldWorks.LexText.Controls.MSAGroupBox();
     this.buttonHelp         = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.m_fwtbCitationForm)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_fwtbGloss)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // m_btnOK
     //
     this.m_btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     resources.ApplyResources(this.m_btnOK, "m_btnOK");
     this.m_btnOK.Name = "m_btnOK";
     //
     // m_btnCancel
     //
     this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
     this.m_btnCancel.Name = "m_btnCancel";
     //
     // m_fwtbCitationForm
     //
     this.m_fwtbCitationForm.AdjustStringHeight = true;
     this.m_fwtbCitationForm.AllowMultipleLines = false;
     this.m_fwtbCitationForm.BackColor          = System.Drawing.SystemColors.Control;
     this.m_fwtbCitationForm.controlID          = null;
     resources.ApplyResources(this.m_fwtbCitationForm, "m_fwtbCitationForm");
     this.m_fwtbCitationForm.Name              = "m_fwtbCitationForm";
     this.m_fwtbCitationForm.SelectionLength   = 0;
     this.m_fwtbCitationForm.SelectionStart    = 0;
     this.m_fwtbCitationForm.WritingSystemCode = 1;
     //
     // m_fwtbGloss
     //
     this.m_fwtbGloss.AdjustStringHeight = true;
     this.m_fwtbGloss.AllowMultipleLines = false;
     this.m_fwtbGloss.BackColor          = System.Drawing.SystemColors.Window;
     this.m_fwtbGloss.controlID          = null;
     resources.ApplyResources(this.m_fwtbGloss, "m_fwtbGloss");
     this.m_fwtbGloss.Name              = "m_fwtbGloss";
     this.m_fwtbGloss.SelectionLength   = 0;
     this.m_fwtbGloss.SelectionStart    = 0;
     this.m_fwtbGloss.WritingSystemCode = 1;
     //
     // m_cbIsStem
     //
     resources.ApplyResources(this.m_cbIsStem, "m_cbIsStem");
     this.m_cbIsStem.Name            = "m_cbIsStem";
     this.m_cbIsStem.CheckedChanged += new System.EventHandler(this.m_cbIsStem_CheckedChanged);
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // m_msaGroupBox
     //
     resources.ApplyResources(this.m_msaGroupBox, "m_msaGroupBox");
     this.m_msaGroupBox.MSAType = SIL.FieldWorks.FDO.MsaType.kNotSet;
     this.m_msaGroupBox.Name    = "m_msaGroupBox";
     this.m_msaGroupBox.Slot    = null;
     //
     // buttonHelp
     //
     resources.ApplyResources(this.buttonHelp, "buttonHelp");
     this.buttonHelp.Name   = "buttonHelp";
     this.buttonHelp.Click += new System.EventHandler(this.buttonHelp_Click);
     //
     // AddNewSenseDlg
     //
     this.AcceptButton = this.m_btnOK;
     resources.ApplyResources(this, "$this");
     this.CancelButton = this.m_btnCancel;
     this.ControlBox   = false;
     this.Controls.Add(this.label2);
     this.Controls.Add(this.m_cbIsStem);
     this.Controls.Add(this.m_fwtbGloss);
     this.Controls.Add(this.m_fwtbCitationForm);
     this.Controls.Add(this.m_btnCancel);
     this.Controls.Add(this.m_btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.buttonHelp);
     this.Controls.Add(this.m_msaGroupBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "AddNewSenseDlg";
     this.ShowInTaskbar   = false;
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.AddNewSenseDlg_Closing);
     ((System.ComponentModel.ISupportInitialize)(this.m_fwtbCitationForm)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_fwtbGloss)).EndInit();
     this.ResumeLayout(false);
 }
Пример #5
0
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InsertEntryDlg));
			this.m_btnOK = new System.Windows.Forms.Button();
			this.m_btnCancel = new System.Windows.Forms.Button();
			this.m_formLabel = new System.Windows.Forms.Label();
			this.m_tbLexicalForm = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			this.m_tbGloss = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			this.m_btnHelp = new System.Windows.Forms.Button();
			this.m_morphTypeLabel = new System.Windows.Forms.Label();
			this.m_cbMorphType = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.m_cbComplexFormType = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.m_matchingEntriesGroupBox = new System.Windows.Forms.GroupBox();
			this.m_labelArrow = new System.Windows.Forms.Label();
			this.m_imageList = new System.Windows.Forms.ImageList(this.components);
			this.m_linkSimilarEntry = new System.Windows.Forms.LinkLabel();
			this.m_matchingObjectsBrowser = new SIL.FieldWorks.Common.Controls.MatchingObjectsBrowser();
			this.m_toolTipSlotCombo = new System.Windows.Forms.ToolTip(this.components);
			this.m_msaGroupBox = new SIL.FieldWorks.LexText.Controls.MSAGroupBox();
			this.m_propsGroupBox = new System.Windows.Forms.GroupBox();
			this.m_complexTypeLabel = new System.Windows.Forms.Label();
			this.m_glossGroupBox = new System.Windows.Forms.GroupBox();
			this.m_lnkAssistant = new System.Windows.Forms.LinkLabel();
			((System.ComponentModel.ISupportInitialize)(this.m_tbLexicalForm)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.m_tbGloss)).BeginInit();
			this.m_matchingEntriesGroupBox.SuspendLayout();
			this.m_propsGroupBox.SuspendLayout();
			this.m_glossGroupBox.SuspendLayout();
			this.SuspendLayout();
			//
			// m_btnOK
			//
			resources.ApplyResources(this.m_btnOK, "m_btnOK");
			this.m_btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.m_btnOK.Name = "m_btnOK";
			//
			// m_btnCancel
			//
			resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
			this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.m_btnCancel.Name = "m_btnCancel";
			//
			// m_formLabel
			//
			resources.ApplyResources(this.m_formLabel, "m_formLabel");
			this.m_formLabel.Name = "m_formLabel";
			//
			// m_tbLexicalForm
			//
			this.m_tbLexicalForm.AdjustStringHeight = true;
			this.m_tbLexicalForm.BackColor = System.Drawing.SystemColors.Window;
			this.m_tbLexicalForm.controlID = null;
			resources.ApplyResources(this.m_tbLexicalForm, "m_tbLexicalForm");
			this.m_tbLexicalForm.HasBorder = true;
			this.m_tbLexicalForm.Name = "m_tbLexicalForm";
			this.m_tbLexicalForm.SelectionLength = 0;
			this.m_tbLexicalForm.SelectionStart = 0;
			this.m_tbLexicalForm.TextChanged += new System.EventHandler(this.tbLexicalForm_TextChanged);
			//
			// m_tbGloss
			//
			this.m_tbGloss.AdjustStringHeight = true;
			this.m_tbGloss.BackColor = System.Drawing.SystemColors.Window;
			this.m_tbGloss.controlID = null;
			resources.ApplyResources(this.m_tbGloss, "m_tbGloss");
			this.m_tbGloss.HasBorder = true;
			this.m_tbGloss.Name = "m_tbGloss";
			this.m_tbGloss.SelectionLength = 0;
			this.m_tbGloss.SelectionStart = 0;
			this.m_tbGloss.TextChanged += new System.EventHandler(this.tbGloss_TextChanged);
			//
			// m_btnHelp
			//
			resources.ApplyResources(this.m_btnHelp, "m_btnHelp");
			this.m_btnHelp.Name = "m_btnHelp";
			this.m_btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
			//
			// m_morphTypeLabel
			//
			resources.ApplyResources(this.m_morphTypeLabel, "m_morphTypeLabel");
			this.m_morphTypeLabel.Name = "m_morphTypeLabel";
			//
			// m_cbMorphType
			//
			this.m_cbMorphType.AllowSpaceInEditBox = false;
			this.m_cbMorphType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_cbMorphType, "m_cbMorphType");
			this.m_cbMorphType.Name = "m_cbMorphType";
			this.m_cbMorphType.SelectedIndexChanged += new System.EventHandler(this.cbMorphType_SelectedIndexChanged);
			//
			// m_cbComplexFormType
			//
			this.m_cbComplexFormType.AllowSpaceInEditBox = false;
			this.m_cbComplexFormType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_cbComplexFormType, "m_cbComplexFormType");
			this.m_cbComplexFormType.Name = "m_cbComplexFormType";
			this.m_cbComplexFormType.SelectedIndexChanged += new System.EventHandler(this.cbComplexFormType_SelectedIndexChanged);
			//
			// m_matchingEntriesGroupBox
			//
			resources.ApplyResources(this.m_matchingEntriesGroupBox, "m_matchingEntriesGroupBox");
			this.m_matchingEntriesGroupBox.Controls.Add(this.m_labelArrow);
			this.m_matchingEntriesGroupBox.Controls.Add(this.m_linkSimilarEntry);
			this.m_matchingEntriesGroupBox.Controls.Add(this.m_matchingObjectsBrowser);
			this.m_matchingEntriesGroupBox.Name = "m_matchingEntriesGroupBox";
			this.m_matchingEntriesGroupBox.TabStop = false;
			//
			// m_labelArrow
			//
			resources.ApplyResources(this.m_labelArrow, "m_labelArrow");
			this.m_labelArrow.ImageList = this.m_imageList;
			this.m_labelArrow.Name = "m_labelArrow";
			this.m_labelArrow.Click += new System.EventHandler(this.btnSimilarEntry_Click);
			//
			// m_imageList
			//
			this.m_imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList.ImageStream")));
			this.m_imageList.TransparentColor = System.Drawing.Color.Fuchsia;
			this.m_imageList.Images.SetKeyName(0, "GoToArrow.bmp");
			//
			// m_linkSimilarEntry
			//
			resources.ApplyResources(this.m_linkSimilarEntry, "m_linkSimilarEntry");
			this.m_linkSimilarEntry.Name = "m_linkSimilarEntry";
			this.m_linkSimilarEntry.TabStop = true;
			this.m_linkSimilarEntry.Click += new System.EventHandler(this.btnSimilarEntry_Click);
			//
			// m_matchingObjectsBrowser
			//
			resources.ApplyResources(this.m_matchingObjectsBrowser, "m_matchingObjectsBrowser");
			this.m_matchingObjectsBrowser.Name = "m_matchingObjectsBrowser";
			this.m_matchingObjectsBrowser.TabStop = false;
			this.m_matchingObjectsBrowser.SelectionChanged += new FwSelectionChangedEventHandler(this.m_matchingObjectsBrowser_SelectionChanged);
			this.m_matchingObjectsBrowser.SelectionMade += new FwSelectionChangedEventHandler(this.m_matchingObjectsBrowser_SelectionMade);
			this.m_matchingObjectsBrowser.SearchCompleted += new EventHandler(this.m_matchingObjectsBrowser_SearchCompleted);
			this.m_matchingObjectsBrowser.ColumnsChanged += new EventHandler(this.m_matchingObjectsBrowser_ColumnsChanged);
			//
			// m_toolTipSlotCombo
			//
			this.m_toolTipSlotCombo.AutoPopDelay = 5000;
			this.m_toolTipSlotCombo.InitialDelay = 250;
			this.m_toolTipSlotCombo.ReshowDelay = 100;
			this.m_toolTipSlotCombo.ShowAlways = true;
			//
			// m_msaGroupBox
			//
			resources.ApplyResources(this.m_msaGroupBox, "m_msaGroupBox");
			this.m_msaGroupBox.MSAType = SIL.FieldWorks.FDO.MsaType.kNotSet;
			this.m_msaGroupBox.Name = "m_msaGroupBox";
			this.m_msaGroupBox.Slot = null;
			//
			// m_propsGroupBox
			//
			this.m_propsGroupBox.Controls.Add(this.m_complexTypeLabel);
			this.m_propsGroupBox.Controls.Add(this.m_morphTypeLabel);
			this.m_propsGroupBox.Controls.Add(this.m_cbMorphType);
			this.m_propsGroupBox.Controls.Add(this.m_cbComplexFormType);
			this.m_propsGroupBox.Controls.Add(this.m_tbLexicalForm);
			this.m_propsGroupBox.Controls.Add(this.m_formLabel);
			resources.ApplyResources(this.m_propsGroupBox, "m_propsGroupBox");
			this.m_propsGroupBox.Name = "m_propsGroupBox";
			this.m_propsGroupBox.TabStop = false;
			//
			// m_complexTypeLabel
			//
			resources.ApplyResources(this.m_complexTypeLabel, "m_complexTypeLabel");
			this.m_complexTypeLabel.Name = "m_complexTypeLabel";
			//
			// m_glossGroupBox
			//
			this.m_glossGroupBox.Controls.Add(this.m_lnkAssistant);
			this.m_glossGroupBox.Controls.Add(this.m_tbGloss);
			resources.ApplyResources(this.m_glossGroupBox, "m_glossGroupBox");
			this.m_glossGroupBox.Name = "m_glossGroupBox";
			this.m_glossGroupBox.TabStop = false;
			//
			// m_lnkAssistant
			//
			resources.ApplyResources(this.m_lnkAssistant, "m_lnkAssistant");
			this.m_lnkAssistant.Name = "m_lnkAssistant";
			this.m_lnkAssistant.TabStop = true;
			this.m_lnkAssistant.VisitedLinkColor = System.Drawing.Color.Blue;
			this.m_lnkAssistant.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkAssistant_LinkClicked);
			//
			// InsertEntryDlg
			//
			this.AcceptButton = this.m_btnOK;
			resources.ApplyResources(this, "$this");
			this.CancelButton = this.m_btnCancel;
			this.Controls.Add(this.m_glossGroupBox);
			this.Controls.Add(this.m_propsGroupBox);
			this.Controls.Add(this.m_msaGroupBox);
			this.Controls.Add(this.m_matchingEntriesGroupBox);
			this.Controls.Add(this.m_btnHelp);
			this.Controls.Add(this.m_btnCancel);
			this.Controls.Add(this.m_btnOK);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "InsertEntryDlg";
			this.ShowInTaskbar = false;
			this.Load += new System.EventHandler(this.InsertEntryDlg_Load);
			this.Closed += new System.EventHandler(this.InsertEntryDlg_Closed);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.InsertEntryDlg_Closing);
			((System.ComponentModel.ISupportInitialize)(this.m_tbLexicalForm)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.m_tbGloss)).EndInit();
			this.m_matchingEntriesGroupBox.ResumeLayout(false);
			this.m_matchingEntriesGroupBox.PerformLayout();
			this.m_propsGroupBox.ResumeLayout(false);
			this.m_glossGroupBox.ResumeLayout(false);
			this.m_glossGroupBox.PerformLayout();
			this.ResumeLayout(false);

		}