/// <summary> /// Adds a GuiTextBox to the form control collection. /// </summary> /// <param name="id">The id of this control</param> /// <param name="text">The visible text of this control</param> /// <param name="tooltip">The mouseover text of this control</param> /// <returns>The newly created control.</returns> public GuiTextBox AddTextBox(string id, string text, string tooltip) { GuiTextBox textbox = new GuiTextBox(); textbox.ID = id; textbox.Text = text; textbox.ToolTip = tooltip; AddGuiControl(textbox); return(textbox); }
/// <summary> /// Adds a GuiTextBox to the form control collection. /// </summary> /// <param name="id">The id of this control</param> /// <param name="text">The visible text of this control</param> /// <param name="tooltip">The mouseover text of this control</param> /// <returns>The newly created control.</returns> public GuiTextBox AddTextBox(string id, string text, string tooltip) { GuiTextBox textbox = new GuiTextBox(); textbox.ID = id; textbox.Text = text; textbox.ToolTip = tooltip; AddGuiControl(textbox); return textbox; }