MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / askForTextInputWindow

Method askForTextInputWindow

Source/Lua/CtrlrLuaUtils.cpp:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203String CtrlrLuaUtils::askForTextInputWindow (const String title, const String message, const String initialInputContent, const String onScreenLabel, const bool isPassword, const String button1Text, const String button2Text)
204{
205 AlertWindow w(title, message, AlertWindow::QuestionIcon, 0);
206 w.addTextEditor ("userInput", initialInputContent, onScreenLabel, isPassword);
207 w.addButton (button1Text, 1);
208 w.addButton (button2Text, 0);
209 w.runModalLoop();
210 return (w.getTextEditorContents("userInput"));
211}
212
213StringArray CtrlrLuaUtils::getMidiInputDevices()
214{

Callers

nothing calls this directly

Calls 4

addTextEditorMethod · 0.80
addButtonMethod · 0.80
runModalLoopMethod · 0.80
getTextEditorContentsMethod · 0.80

Tested by

no test coverage detected