Skip to main content
Wrend.1
Associate III
October 28, 2020
Solved

swipeContainer vertically slide?

  • October 28, 2020
  • 3 replies
  • 780 views

I want to use swipeContainer. It can only slide horizontally. Can it slide vertically?

This topic has been closed for replies.
Best answer by Alexandre RENOUX

Hello,

To make it slide vertically, you can simply modify the code by changing the x moves to y moves.

Fortunately I did it a while ago so you can have a look at the enclosed project.

/Alexandre

3 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
November 2, 2020

Hello,

To make it slide vertically, you can simply modify the code by changing the x moves to y moves.

Fortunately I did it a while ago so you can have a look at the enclosed project.

/Alexandre

Wrend.1
Wrend.1Author
Associate III
November 3, 2020

:face_with_tears_of_joy: Thanks for your code.

But in this way, I cant't place the UI material with the Designer. The frequent requirements from Industrial design will drive me crazy.:sad_but_relieved_face:

When will this feature be officially released?

Alexandre RENOUX
Visitor II
November 3, 2020

Unfortunately, there's no plan on officially releasing such a feature.

It is expected from users to code manually if it is not included in TouchGFX. We don't include all the possible widgets because this would increase the size of the library and we have to keep in mind that TouchGFX has to run on low cost MCUs embedding small memory as well .

Coding manually is not that hard ;) You just have to imagine the TouchGFX Designer canvas in your head when you code.

Many things cannot be done by the Designer anyway so to some extent you will have to code yourself one way or another.

/Alexandre