HISE Docs

ComboBox

A ComboBox to select different items from an indexed items list

Special Properties

Property ID Default Value Description
items "" Put in a list with the values that you want to select. Seperate the values with a newline.
fontName Default Select a font of your system fonts.
fontSize 13.0 Set the font size
fontStyle plain Set the font style
enableMidiLearn false o description.
popupAlignment bottom o description.

Scripting

Each ComboBox-selection returns the selected items index value.

Attention: the index starts with 1.

ComboBox1.getItemText() returns the text of the item.

const var ComboBox1 = Content.getComponent("ComboBox1");

inline function onComboBox1Control(component, value)
{
	Console.print(value);
	Console.print(ComboBox1.getItemText());
};

Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);

Scripting API

ScriptCombobox