cancel
Showing results for 
Search instead for 
Did you mean: 

How to override virtual functions of a SwipeContainer?

manto.1
Senior

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?

0693W00000JNKwqQAH.png

1 REPLY 1
Romain DIELEMAN
ST Employee

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