Grasshopper API
GH_DocumentObjectMenu_AppendTextItem Method (ToolStripDropDown, String, GH_MenuTextBoxKeyDownEventHandler, GH_MenuTextBoxTextChangedEventHandler, Boolean) |
Utility function for inserting text boxes into menus.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static ToolStripTextBox Menu_AppendTextItem( ToolStripDropDown menu, string text, GH_MenuTextBoxKeyDownEventHandler keydown, GH_MenuTextBoxTextChangedEventHandler textchanged, bool lockOnFocus )
Public Shared Function Menu_AppendTextItem ( menu As ToolStripDropDown, text As String, keydown As GH_MenuTextBoxKeyDownEventHandler, textchanged As GH_MenuTextBoxTextChangedEventHandler, lockOnFocus As Boolean ) As ToolStripTextBox
Parameters
- menu
- Type: System.Windows.FormsToolStripDropDown
Menu to add a textbox to. - text
- Type: SystemString
Content of textbox. - keydown
- Type: Grasshopper.GUIGH_MenuTextBoxKeyDownEventHandler
Delegate for the KeyDown event. - textchanged
- Type: Grasshopper.GUIGH_MenuTextBoxTextChangedEventHandler
Delegate for the TextChanged event. - lockOnFocus
- Type: SystemBoolean
If true, then a GotFocus event will lock the other menu items.
Return Value
Type: ToolStripTextBoxThe appended text box item.
