Supporting LookAndFeel for custom Widgets


#1

Hi Jules,
In the LookAndFeel class, we have draw methods only for JUCE widgets…
Is there anything can be done to have a custom function callback for CustomWidgets also. Like if i have a component which contains a Slider and a button. I need to keep the lookAndFeel of the component independent as how it is there for juce::Component.
So while creating object if we can register any method to LookAndFeel class as a lookAndFeel callback method, and do the painting over there…
Currently we do the paint in the component itself. So it would be good if we have any options to have lookAndFeel for any components, So that we can have the Generic Custom Widgets in a separate Library and can use it across applications by setting lookAndFeel for the application.


#2

dynamic_cast to your custom LnF Class Type ?


#3

Doing dynamic_cast on paint… Don’t think it is good…
Looking for some solution like function pointer…