/// <summary> /// Constructor</summary> public ConsoleTextBox() { Font = new Font("Lucida Console", 8F, FontStyle.Regular, GraphicsUnit.Point, 0); MaxLength = 0; // allow max character Multiline = true; ScrollBars = ScrollBars.Vertical; ShortcutsEnabled = true; WordWrap = true; m_suggestionListBox = new SuggestionListBox { InsertText = InsertTextAtCaret, ItemHeight = 11, RemoveText = RemoveTextBeforeCaret, Suggest = Suggest }; m_suggestionListBox.Hide(); Controls.Add(m_suggestionListBox); WritePrompt(); m_commandHandler = DefaultCommandHandler; }
/// <summary> /// Constructor</summary> public ConsoleTextBox() { Font = new Font("Lucida Console", 8F, FontStyle.Regular, GraphicsUnit.Point, 0); MaxLength = 0; // allow max character Multiline = true; ScrollBars = ScrollBars.Vertical; ShortcutsEnabled = true; WordWrap = true; BorderStyle = BorderStyle.None; m_suggestionListBox = new SuggestionListBox { InsertText = InsertTextAtCaret, ItemHeight = 11, RemoveText = RemoveTextBeforeCaret, Suggest = Suggest }; m_suggestionListBox.Hide(); Controls.Add(m_suggestionListBox); WritePrompt(); m_commandHandler = DefaultCommandHandler; }