Using inheritance to add functionallity of custom container to multiple screens?
In the following post the question is asked to add the same functionality to multiple screens: https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/how-to-display-the-same-content-in-different-screen-of-touchgfx/td-p/723711
I run into the same issue. Where I want to add the same custom containers to multiple screens. Since there is some interaction with these custom containers (updates for the clock and status bar, but also button interaction with a popup window) I now have to copy the code for this interaction to each corresponding view and presenter.
Would it be possible to make a sort of base class which contains this functionality so that all the screens which need to implement the functions can inherit from this base class?
This would greatly reduce maintenance efforts since the code would not have to be replicated for each screen.
I have made a project where I try this and it compiles however the software crashes when I try load a screen which adds the container to the view.
