Atozed Forums
Image AsyncMouseMove - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Image AsyncMouseMove (/thread-2626.html)



Image AsyncMouseMove - Michael - 01-18-2022

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


RE: Image AsyncMouseMove - Alexandre Machado - 01-20-2022

It would help if you could provide a test case showing this behavior... Hard to guess without actually debugging it


RE: Image AsyncMouseMove - Michael - 01-21-2022

(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.


RE: Image AsyncMouseMove - Michael - 04-11-2022

(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?


RE: Image AsyncMouseMove - Alexandre Machado - 04-12-2022

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?


RE: Image AsyncMouseMove - Alexandre Machado - 04-13-2022

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


RE: Image AsyncMouseMove - Alexandre Machado - 04-13-2022

Please download our beta build 15.2.54 so you can test this feature:

http://downloads.atozed.com/intraweb/iw15.2.54_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


RE: Image AsyncMouseMove - Michael - 05-10-2022

(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/iw15.2.54_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


RE: Image AsyncMouseMove - PaulWeem - 05-10-2022

(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/iw15.2.54_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


RE: Image AsyncMouseMove - Michael - 05-12-2022

(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/iw15.2.54_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