So I’m going through the JUCE tutorial and am stuck at the last part of The Label Class (under Interface Design)
Other customisations can be achieved by implementing the Label::onEditorShow helper object. For example, you could make the text italic when being edited like this:
inputText.onEditorShow = [this]
auto editorFont = editor.getFont();
The instruction asks to access a member variable named “editor” which exists in Juce_Label.h but understandably I’m getting an error because it is a private member variable.
Is there a way to get access to this editor variable? I’ve followed the tutorial exactly to the best of my abilities. This is probably a super basic question to ask but I am new to JUCE and any help would be much appreciated.