2022-01-25 11:38 PM
I know how to ooverride a virtual function of a button callback for example. I would like to override the virtual method handleDragEvent. I have a mainScreen that contains SwipeContainer. How do I override virtual function of a swipeContainer. Where (in what file) shoud i do it and how?
2022-02-10 02:15 AM
Hi,
Overwriting the handleDragEvent is a bit risky to be honest. What are you trying to do exactly ? As commented in another one of your post you can modify the library if you wish found in the Middleware/ST/touchgfx folder. Otherwise I would recommend creating your own widget where you base your code on the SwipeContainer so that you can have full controll of it. This does add a layer of complexity in your project however... Custom widgets will also not appear in TouchGFX designer but will on target or on the simulator.
/Romain