Thank you Gammer,
Your example is working fine. But, being a newbe, I wonder...
wouldn't it be "more right" if the getters/setters where functions in my class, and I override the paintButton() to call my drawing functions of myLookAndFeel (as it is done in the TextButton class)?
That is, my class would be like so (same as your said), adding the get/set functions and overriding the paintButton().
class MyButton: public TextButton
void setConrerRadius(float radius);
void setBorderSize(float bSize);
void paintButton(Graphics& g, bool isMouseOverButton, bool isButtonDown) override;
And the paintButton
void MyButton::paintButton (Graphics& g, bool isMouseOverButton, bool isButtonDown)
m_customLookAndFeel.drawMyButton(g, *this, bool isMouseOverButton, bool isButtonDown);
// where through "this" I have access to the variables I need
// This would be the customLookAndFeel function declaration, so it has a "MyButton" pointer in its variables.
void drawMyButton (Graphics& g, MyButton& button, bool isMouseOverButton, bool isButtonDown);
Though, I understand that the setters then should also call the repaint() funtion?
Sorry if I miss any abvious answers!!