Skip to main content
YSN
Associate III
Dec 13, 2020 3:21 PM UTC
Question

Touchgfx Graph widget on top of Swipe Container is hard fault

I am using swipe container with two pages.

Problem 1: We are unable to swipe the pages pointing on top of the graph. I mean, swipe container is working only in the region where graph is not there? I understand that this is because of click event and drag event functions of graph widget, I only need swipe container. How to override this graph drag event function to still continue to use the Swipe container with left and right swipe option.

Problem 2: The graph works well as long as we are in same screen, when we transit to screen2 and come back to screen1 (where graph and swipe container are present) the graph creating hard fault after swiping on graph ? how to resolve this issue ?

This topic has been closed for replies.

11 replies

YSN
YSNAuthor
Associate III
Dec 18, 2020 10:00 AM UTC

Can some help me in this regards, the problem statement is explained as above

Bob Bailey
Senior
Dec 19, 2020 3:47 AM UTC

I put a graph in a swipe container in 2 projects. H735 and F746, I haven't begun using the graph yet in either one. Hard fault in the 746, 735 seems fine.

I have not investigated further, I wonder if its out of memory.

franck23
Associate III
Mar 19, 2021 10:51 AM UTC

Any update on SYann.1 Problem#1?

Problem #2 has been fixed in TouchGfx release 4.16.1.

But I am running into the same issue as SYann.1 where it is not possible to swipe the container if the graph takes the full container area.

Thanks.

YSN
YSNAuthor
Associate III
Mar 19, 2021 1:14 PM UTC

Hi Franck23,

We have figured out solution for Problem 1 as well.!

Need to send the graph back to one screen and make that screen transparent. That will still show the page layout as you have designed with graph but it will not allow you to generate graph swipe event. But works well for swiping even in graph screen.

franck23
Associate III
Mar 19, 2021 3:40 PM UTC

Hi Syann.1,

Thanks for answering.

What do you mean by "send the graph back to one screen"?

YSN
YSNAuthor
Associate III
Mar 20, 2021 5:16 AM UTC

Hi Franck23,

there is way in touchgfx designer to bring widgets front and back.

0693W000008xSYLQA2.png

franck23
Associate III
Mar 20, 2021 3:18 PM UTC

When you say "send the graph back to one screen", do you mean to get the graph directly on the screen, behind the swipe container, so that the graph is not part of the swipe container anymore?

It would work for just one graph.

However, I have 2 graphs to swipe so I would still need to have one graph inside a swipe page.

YSN
YSNAuthor
Associate III
May 30, 2021 7:18 AM UTC

Hi @Community member​ 

Were you able to figure out the Problem#1, to have multiple graphs in the swipe container along with swipe option ?

franck23
Associate III
May 31, 2021 3:10 PM UTC

Hi @YSN​ ,

I did not find a solution to have multiple graphs in a swipe container.

I had to give up and restructure the UI so that I do not use swipe containers with graph.

Lzhan.5
Visitor II
Jan 20, 2022 9:40 AM UTC

you should overload the ​below three function

void handleClickEvent(const ClickEvent& evt);

void handleDragEvent(const DragEvent& evt);

void handleGestureEvent(const GestureEvent& evt);