However, clear() doesn’t delete the text and instead leaves it there. I’m currently using a workaround by calling setText again with a string that has a white space, which would visually clear the TextEditor.
myBox.setText (juce::String (" "));
I’m fairly new to Juce, so am I doing something wrong here?
in remove(), via the clearInternal() call - whick looks like it would do the trick, but it does not.
It checks if the new text range is empty and exits if so - thus no “repaintText”.
Ending clear() it with a simple call to repaint () would be what you’d expect, instead of relying on assumptions about the 2 first calls, that fail to call repaint.