117 views
in GUI Development by

Hi EW team,
I have an issue in my application. I have a time bar with graduation. A slide handler is connected to a delta offset that distribute it to two curves, each one is a component of a view. They both have a slide Offset that will cause the graduation to move, and will generate temporary graduation until the release.

This system works fine expect at one detail, when we go at different speed when sliding, the graduation doesn't have the same distance between each other.
It's an issue because I don't want the user to notice this. How can I make it to always have the same distance between the generated graduation ?

I linked a simplified version of my application as a .rar file.
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=2824702415494682166

Thank you,
Velas

1 Answer

0 votes
by

Hello Velas,

difficult to say what is wrong. I would recommend to add trace statements and so track the values calculated during the slide interaction. I suppose there is some calculation issue.

Best regards

Paul Banach

by
I am not sure about the calculation issue you raise. If I go slowly, the generation behave like intended, it's only when going fast that the issue appears.
I am using EW 9.20 by the way
by
Ok, I solved it. It was coming from a supposition I made.
In my code, I generate new graduation only when TotalOffset reach a certain value. This TotalOffset is modified by appendation of a delta to it. this delta varies depending on the speed of the slider, and I did not took this in account when generating new graduation.

The solution was to calculate the new graduation depending on the previously generated one and not placing it on the beggining of the line.
by
Hello Velas,

Great! I'm glad you were able to solve it. In fact, there is no fixed offset when the Slide Touch Handle performs the slide animation. The offset is calculated depending on the speed and on the frequency the handler performs the calculation.

Best regards

Paul

Embedded Wizard Website | Privacy Policy | Imprint

...