I have added one TextEditor UI element with the Introjucer as a subcomponent. All the other UI subcomponents automatically added a listener (and the needed inheritances) but not with the TextEditor. So I tried to do that manually with inherit from TextEditor::Listener and adding the method "textEditorReturnKeyPressed(TextEditor* textEditorThatWasChanged)" for example.
But this did not work at all (but the program compiled without any warnings or errors).
After looking for any kind of similar problems via google and inside the Juce forum I did not came accross anything that would help me understand my problem.
For the record, by adding the TextEditor UI subcomponent with the Introjucer, the following code was automatically generated:
addAndMakeVisible (source_id_text_editor = new TextEditor ("source_id_text_editor"));
source_id_text_editor->setMultiLine (false);
source_id_text_editor->setReturnKeyStartsNewLine (false);
source_id_text_editor->setReadOnly (false);
source_id_text_editor->setScrollbarsShown (true);
source_id_text_editor->setCaretVisible (true);
source_id_text_editor->setPopupMenuEnabled (true);
source_id_text_editor->setText (String::empty);
Does anyone have an idea why:
1. The introjucer did not automatically add the inheritance from TextEditor::Listener or TextEditorListener (deprecated)
2. If I add the inheritance, add a Listener to the source_id_text_editor and implement textEditorReturnKeyPressed(TextEditor* textEditorThatWasChanged) manually why the function does not get called
I am using the architecture from the redwoodaudio tutorial: http://www.redwoodaudio.net/Tutorials/juce_for_vst_development__intro.html. Adding Sliders, Buttons or a ComboBox for example works perfectly and the Introjucer adds the needed setup code with "addListener(..)" functions and the needed inheritance except with the TextEditor UI component.
