Atozed Forums

Full Version: Image AsyncMouseMove
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I would like to select an operating Point from a chart (TIWImage) with the mouse.
Like in the example "TChartDemo", but not via AsyncMousedown rather via AsyncMouseMove.
This works relatively well, but when I stop the Mouse on the Image, the Point jumps to another position.

I created an Memo to show the mouseway. Attached you will find a picture that hopefully shows what I mean.

What could be the reason for the jump at the end? And how can I prevent the jump?

Thanks,
Michael
It would help if you could provide a test case showing this behavior... Hard to guess without actually debugging it
(01-20-2022, 10:00 PM)Alexandre Machado Wrote: [ -> ]It would help if you could provide a test case showing this behavior... Hard to guess without actually debugging it

Hello,

attached you will find the TChartDemo.
(01-21-2022, 07:45 AM)Michael Wrote: [ -> ]
(01-20-2022, 10:00 PM)Alexandre Machado Wrote: [ -> ]It would help if you could provide a test case showing this behavior... Hard to guess without actually debugging it

Hello,

attached you will find the TChartDemo.

Is there already a solution here?
The mouse move event from the browser side triggers an enormous amount of requests to the server. There is a latency and the order that the messages are received on the server are not guaranteed to be exactly the same as generated on the browser.

If you move the mouse gently and slowly you get much more precise results.

I think the better solution here is to provide a delayed event trigger mechanism (similar to what we have in IWEdit KeyPress/KeyDown and KeyUp events), so the number of requests is reduced and you will get precise results.

In this case, the event will trigger after a little pause from the mouse (a few ms). Is this acceptable? This will require an update though. Are you in the latest IW 15 version?
I have a solution that is working very well in my tests. We are creating a new beta build and you can test it when ready
Please download our beta build 15.2.54 so you can test this feature:

http://downloads.atozed.com/intraweb/iw1..._BETA1.exe

Then you can set

IWImage1.DelayMouseMoveEvents := True;

in your same example. This will limit the number of requests to a reasonable number and will ensure that the mouse pointer is correctly followed by the chart coordinates.

Please let me know how it goes
(04-13-2022, 09:08 PM)Alexandre Machado Wrote: [ -> ]Please download our beta build 15.2.54 so you can test this feature:

http://downloads.atozed.com/intraweb/iw1..._BETA1.exe

Then you can set

  IWImage1.DelayMouseMoveEvents := True;

in your same example. This will limit the number of requests to a reasonable number and will ensure that the mouse pointer is correctly followed by the chart coordinates.

Please let me know how it goes

Hello,

sorry i was not in the office for the last weeks, so i can't download the Beta.
Now the file is not longer available. Can you create a new download for me?

The fact that it needs a little break is not a problem for me.

Thank you

Greeting
Michael
(05-10-2022, 11:24 AM)Michael Wrote: [ -> ]
(04-13-2022, 09:08 PM)Alexandre Machado Wrote: [ -> ]Please download our beta build 15.2.54 so you can test this feature:

http://downloads.atozed.com/intraweb/iw1..._BETA1.exe

Then you can set

  IWImage1.DelayMouseMoveEvents := True;

in your same example. This will limit the number of requests to a reasonable number and will ensure that the mouse pointer is correctly followed by the chart coordinates.

Please let me know how it goes

Hello,

sorry i was not in the office for the last weeks, so i can't download the Beta.
Now the file is not longer available. Can you create a new download for me?

The fact that it needs a little break is not a problem for me.

Thank you

Greeting
Michael

I think you should use this one: https://downloads.atozed.com/intraweb/iw15.2.54.exe
(05-10-2022, 04:17 PM)PaulWeem Wrote: [ -> ]
(05-10-2022, 11:24 AM)Michael Wrote: [ -> ]
(04-13-2022, 09:08 PM)Alexandre Machado Wrote: [ -> ]Please download our beta build 15.2.54 so you can test this feature:

http://downloads.atozed.com/intraweb/iw1..._BETA1.exe

Then you can set

  IWImage1.DelayMouseMoveEvents := True;

in your same example. This will limit the number of requests to a reasonable number and will ensure that the mouse pointer is correctly followed by the chart coordinates.

Please let me know how it goes

Hello,

sorry i was not in the office for the last weeks, so i can't download the Beta.
Now the file is not longer available. Can you create a new download for me?

The fact that it needs a little break is not a problem for me.

Thank you

Greeting
Michael

I think you should use this one: https://downloads.atozed.com/intraweb/iw15.2.54.exe

Thank you