Hi all,
I’m trying to inherit from Label, as I want to add some custom features.
However I’m not sure how to get the TextEditor to show when editing. std::unique_ptr<TextEditor> editor; is a private variable so it can’t be accessed by my new class NumberLabel.
Any pointers (no pun intended ) in the right direction?
The JUCE API prefers aggregation for customising features of Components instead of inheritance.
For that purpose, there is the LookAndFeel class.
You inherit from the version you are using (LookAndFeel_V4 as current default), and override the behaviour you want to change.