104 views
in Embedded Wizard Studio by

Like the this project:   https://ask.embedded-wizard.de/9206/a-specific-gui-use-case

      At my project have 2 page: MainPage and DoubleFingerSlidePage.  MainPage will been default show when screen power ON, DoubleFingerSlidePage have 2 list that been control by 2 finger slide. When double finger slide at MainPage, EW will PresentDialog the DoubleFingerSlidePage

      MainPage is been divided to left area and right area,   if SlideTouchHandler.HittingPos at left area,  DoubleFingerSlidePage will show List1. if SlideTouchHandler.HittingPos at right area,  DoubleFingerSlidePage will show List2.

      I have many widgets such as buttons and sliders( use SimpleTouchHandler ) integrated into the MainDialog. So if two fingers touch the screen one after another, it will often come to the case that the first finger touches a widget, and the second touches elsewhere, which may be MainPage or another widget. In this case, recognition of 2 finger slide is also required.

       To overcome the difficulty,  I introduced a signal counting the finger number on the screen from the touch driver. My idea was to have the event that the finger number increases from 1 to 2  trigger Presenting the Dialog.

       For this way, when two finger touch at MainPage,  the DoubleFingerSlidePage will been PresenDialog Immediately. But if One of the two finger touch a widget, the widget function will been trigger before PresenDialog DoubleFingerSlidePage.  The widget function been trigger isn't we want to see.

       How to Avoid The widget function been trigger?

 

2 Answers

0 votes
by

To Avoid The widget function been trigger, I set all the SimpleTouchHandler property LimitToFinger = 0. When the screen check more than 1 finger touch, forbid the SimpleTouchHandler trigger it's function.

We release this test fucntion to our customer , our customer find a new problem:

1. When one finger touch at MainPage,  other widget can't use at the same time

0 votes
by

Hello ke007,

I have many widgets such as buttons and sliders( use SimpleTouchHandler ) integrated into the MainDialog. So if two fingers touch the screen one after another, it will often come to the case that the first finger touches a widget, and the second touches elsewhere, which may be MainPage or another widget. In this case, recognition of 2 finger slide is also required.

...

The widget function been trigger isn't we want to see.

Have you tested out the example I have prepared for you in the thread grab cycle and touch influence with another touch. It demonstrates how this is done.

To Avoid The widget function been trigger, I set all the SimpleTouchHandler property LimitToFinger = 0. When the screen check more than 1 finger touch, forbid the SimpleTouchHandler trigger it's function.

This will have the effect of the handler reacting only on the first finger (finger with number 0).

When one finger touch at MainPage,  other widget can't use at the same time

I'm not sure what behavior is your customer expecting. But from your description it seems to be contradictory. You can processes either two fingers as a composed 2-finger gesture or you process the touches as individual interactions. The UI can't deduce your intention what to do when the user touches the screen with two fingers.

Best regards

Paul Banach

ago by

2. the first time 2-finger slide, the test list on the DialogPanel can't move, when 2-finger slide again, the test list can move.

this problem also happen on my preject, now it's have been resolved by a coincide way, but i don't know the right way to resolve this problem.

The same time, i  hope you try to resolve the problem1 first:

1. the TempList and SpinList move at the same time

ago by
About the idea to move our project to a EW Version 12,  it's have too many work to do, and need too many time. My leader reject this way.
ago by

I run this   WashingMachine_change project on EW version 12,Find this 2 problem on it:

1. the TempList and SpinList move at the same time

2. the first time 2-finger slide, the test list on the DialogPanel can't move, when 2-finger slide again, the test list can move.

ago by
Hello ke007,

as mentioned already, I don't really know how to help you. Your problem seems to be very unique and diffus. Is it a problem related to the hardware, touch driver, EW software, some misunderstanding, misconfiguration, .. ? I don't know. It could eventually help me when you at least answers my question which I repeat once more:

1. Have you tested the example I have prepared for you?

2. Have you tested this example also in the Prototyper?

3. Do the problems appear during Prototyping or/and in the target system?

4. If you have a concrete suspect error case, can you create a minimal example demonstrating it and upload it here for further investigation?

Trying to test the problem using Washing Maschine example is from my point of few less effective. It is a complex example. It is difficult to deduce what happens when you just add new touch handler to this application. Therefore:

5. Does Washing Maschine behave correctly when running the original example?

Best regards

Paul Banach
ago by

Is it a problem related to the hardware, touch driver, EW software, some misunderstanding, misconfiguration, .. ?

So i creat a demonstrating. For the simple demonstrating the interval is not happen, but on Washing Maschine example WashingMachine_change is happen.

I think for this test, we can focus on the EW software, the Washing Maschine example run normal before add 2-finger-slide present DialogPanel function, this is the only change at the example project. 

I have try to reproduction the interval problem on a sample demonstrate, but unlucky it's failed.  Maybe the interval problem just happen on complex project, at the same time my project also a complex project.

On the Washing Maschine example, I use the simplest way and least change to reproduction the interval problem, i have pay more time on this problem and try too many way to resolve this problem or makesure the reasons. It's very lucky to reproduction  on a example,i need your help!!!

 

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...