public void AddRow(string label) { var control = new BetterLabel() { Width = this.Width, Text = label }; //BetterLabel will automatically determine its height _table.Controls.Add(control); _table.SetColumnSpan(control, 2); _table.RowCount++; }
/// <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(BaseGoDlg)); this.m_btnClose = new System.Windows.Forms.Button(); this.m_btnOK = new System.Windows.Forms.Button(); this.m_btnInsert = new System.Windows.Forms.Button(); this.m_btnHelp = new System.Windows.Forms.Button(); this.m_panel1 = new System.Windows.Forms.Panel(); this.m_tbForm = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.m_formLabel = new System.Windows.Forms.Label(); this.m_cbWritingSystems = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.m_wsLabel = new SIL.Windows.Forms.Widgets.BetterLabel(); this.m_fwTextBoxBottomMsg = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.m_objectsLabel = new System.Windows.Forms.Label(); this.m_matchingObjectsBrowser = new SIL.FieldWorks.Common.Controls.MatchingObjectsBrowser(); this.m_panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_tbForm)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_fwTextBoxBottomMsg)).BeginInit(); this.SuspendLayout(); // // m_btnClose // resources.ApplyResources(this.m_btnClose, "m_btnClose"); this.m_btnClose.AutoSize = true; this.m_btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_btnClose.Name = "m_btnClose"; // // m_btnOK // resources.ApplyResources(this.m_btnOK, "m_btnOK"); this.m_btnOK.AutoSize = true; this.m_btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.m_btnOK.Name = "m_btnOK"; // // m_btnInsert // resources.ApplyResources(this.m_btnInsert, "m_btnInsert"); this.m_btnInsert.AutoSize = true; this.m_btnInsert.Name = "m_btnInsert"; this.m_btnInsert.Click += new System.EventHandler(this.m_btnInsert_Click); // // m_btnHelp // resources.ApplyResources(this.m_btnHelp, "m_btnHelp"); this.m_btnHelp.AutoSize = true; this.m_btnHelp.Name = "m_btnHelp"; this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // m_panel1 // this.m_panel1.Controls.Add(this.m_tbForm); this.m_panel1.Controls.Add(this.m_formLabel); resources.ApplyResources(this.m_panel1, "m_panel1"); this.m_panel1.Name = "m_panel1"; // // m_tbForm // this.m_tbForm.AdjustStringHeight = true; this.m_tbForm.BackColor = System.Drawing.SystemColors.Window; this.m_tbForm.controlID = null; resources.ApplyResources(this.m_tbForm, "m_tbForm"); this.m_tbForm.HasBorder = true; this.m_tbForm.Name = "m_tbForm"; this.m_tbForm.SelectionLength = 0; this.m_tbForm.SelectionStart = 0; // // m_formLabel // resources.ApplyResources(this.m_formLabel, "m_formLabel"); this.m_formLabel.Name = "m_formLabel"; // // m_cbWritingSystems // this.m_cbWritingSystems.AllowSpaceInEditBox = false; this.m_cbWritingSystems.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; resources.ApplyResources(this.m_cbWritingSystems, "m_cbWritingSystems"); this.m_cbWritingSystems.Name = "m_cbWritingSystems"; this.m_cbWritingSystems.Sorted = true; // // m_wsLabel // resources.ApplyResources(this.m_wsLabel, "m_wsLabel"); this.m_wsLabel.Name = "m_wsLabel"; // // m_fwTextBoxBottomMsg // this.m_fwTextBoxBottomMsg.AdjustStringHeight = true; resources.ApplyResources(this.m_fwTextBoxBottomMsg, "m_fwTextBoxBottomMsg"); this.m_fwTextBoxBottomMsg.BackColor = System.Drawing.SystemColors.Control; this.m_fwTextBoxBottomMsg.CausesValidation = false; this.m_fwTextBoxBottomMsg.controlID = null; this.m_fwTextBoxBottomMsg.HasBorder = false; this.m_fwTextBoxBottomMsg.Name = "m_fwTextBoxBottomMsg"; this.m_fwTextBoxBottomMsg.SelectionLength = 0; this.m_fwTextBoxBottomMsg.SelectionStart = 0; // // m_objectsLabel // resources.ApplyResources(this.m_objectsLabel, "m_objectsLabel"); this.m_objectsLabel.Name = "m_objectsLabel"; // // 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_matchingObjects_SelectionChanged); this.m_matchingObjectsBrowser.SelectionMade += new FwSelectionChangedEventHandler(this.m_matchingObjectsBrowser_SelectionMade); this.m_matchingObjectsBrowser.SearchCompleted += new EventHandler(this.m_matchingObjectsBrowser_SearchCompleted); // // BaseGoDlg // this.AcceptButton = this.m_btnOK; resources.ApplyResources(this, "$this"); this.CancelButton = this.m_btnClose; this.Controls.Add(this.m_matchingObjectsBrowser); this.Controls.Add(this.m_objectsLabel); this.Controls.Add(this.m_fwTextBoxBottomMsg); this.Controls.Add(this.m_wsLabel); this.Controls.Add(this.m_cbWritingSystems); this.Controls.Add(this.m_panel1); this.Controls.Add(this.m_btnHelp); this.Controls.Add(this.m_btnInsert); this.Controls.Add(this.m_btnOK); this.Controls.Add(this.m_btnClose); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "BaseGoDlg"; this.ShowInTaskbar = false; this.Closed += new System.EventHandler(this.BaseGoDlg_Closed); this.Activated += new System.EventHandler(this.BaseGoDlg_Activated); this.m_panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.m_tbForm)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_fwTextBoxBottomMsg)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }