Modifying standard widgets
I've made some modifications to a standard widget by extending the widget class, for example to the Slider widget.
I create a class MySlider that extends the Slider and override some of the methods. To use this new created class I then modify the ViewBase.hpp file to include the new header and modify the declaration from touchgfx::Slider slider; to whatever::MySlider slider;
With this approach it works but the ViewBase.hpp it's not supposed to be modified, also it gets overwritten every time code is generated from the TouchGFX Designer.
Is there any other method to use the new class without changing the BaseView.hpp and only modifying the user files?
I've tried in the setupScreen() method to cast the slider to my new class:
void ScreenView::setupScreen()
{
slider = (MySlider) slider;
}But this doesn't work and the methods from the standard class are still used.
