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

Method queryText

Source/Lua/JuceClasses/LComponents.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void LAlertWindow::queryText(AlertIconType iconType, const String &title, const String &textMessage, const String &textAreaContent, const String &textAreaLabel, const String &button1Text, const String &button2Text, bool isContentPassword, luabind::object const &result)
41{
42 AlertWindow w(title, textMessage, iconType, 0);
43 w.addTextEditor ("userInput", textAreaContent, textAreaLabel, isContentPassword);
44 w.addButton (button1Text, 1);
45 w.addButton (button2Text, 0);
46 result[1] = w.runModalLoop();
47 result[2] = w.getTextEditorContents("userInput");
48}
49
50ComboBox *LAlertWindow::getComboBoxComponent(const String &comboName)
51{

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