s&box docs

public class Editor.ComboBox : Editor.Widget

Constructors

Showing 1 constructors

public ComboBox(Editor.Widget parent = null)

Parameters

  • parent: Default: null

Methods

Showing 13 methods

public void AddItem(string text, string icon = null, System.Action onSelected = null, string description = null, bool selected = False, bool enabled = True)

Parameters

  • icon: Default: null
  • onSelected: Default: null
  • description: Default: null
  • selected: Default: False
  • enabled: Default: True

public void ClearText()

public System.Nullable`1<int> FindIndex(string text)

public void InvokeSelected()

protected virtual void OnItemChanged()

protected virtual void OnKeyPress(Editor.KeyEvent e)

protected virtual void OnTextChanged()

public virtual void RestoreFromStateCookie()

public virtual void SaveToStateCookie()

public void SetAutoComplete(System.Action`2<Editor.Menu,string> func)

public bool TrySelectNamed(string name)

Properties

Showing 11 properties

public bool Editor.ComboBox.AllowDuplicates { get; set; }

public int Editor.ComboBox.Count { get; set; }

public int Editor.ComboBox.CurrentIndex { get; set; }

public string Editor.ComboBox.CurrentText { get; set; }

public bool Editor.ComboBox.Editable { get; set; }

public int Editor.ComboBox.MaxVisibleItems { get; set; }

public System.Action Editor.ComboBox.OnReturn { get; set; }

public string Editor.ComboBox.StateCookie { get; set; }

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.ComboBox

On this page

Constructorspublic ComboBox(Editor.Widget parent = null)Methodspublic System.Void AddItem(System.String text, System.String icon = null, System.Action onSelected = null, System.String description = null, System.Boolean selected = False, System.Boolean enabled = True)public System.Void Clear()public System.Void ClearText()public System.Nullable`1<System.Int32> FindIndex(System.String text)public System.Void InvokeSelected()protected virtual System.Void OnBlur(Editor.FocusChangeReason reason)protected virtual System.Void OnItemChanged()protected virtual System.Void OnKeyPress(Editor.KeyEvent e)protected virtual System.Void OnTextChanged()public virtual System.Void RestoreFromStateCookie()public virtual System.Void SaveToStateCookie()public System.Void SetAutoComplete(System.Action`2<Editor.Menu,System.String> func)public System.Boolean TrySelectNamed(System.String name)Propertiespublic System.Boolean Editor.ComboBox.AllowDuplicates { get; set; }public Editor.AutoComplete Editor.ComboBox.AutoComplete { get; set; }public System.Int32 Editor.ComboBox.Count { get; set; }public System.Int32 Editor.ComboBox.CurrentIndex { get; set; }public System.String Editor.ComboBox.CurrentText { get; set; }public System.Boolean Editor.ComboBox.Editable { get; set; }public Editor.ComboBox.InsertMode Editor.ComboBox.Insertion { get; set; }public Editor.LineEdit Editor.ComboBox.LineEdit { get; set; }public System.Int32 Editor.ComboBox.MaxVisibleItems { get; set; }public System.Action Editor.ComboBox.OnReturn { get; set; }public System.String Editor.ComboBox.StateCookie { get; set; }Metadata