Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image AsyncMouseMove
#1
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


Attached Files Thumbnail(s)
   
Reply
#2
It would help if you could provide a test case showing this behavior... Hard to guess without actually debugging it
Reply
#3
(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.


Attached Files
.zip   TChart.zip (Size: 37.89 KB / Downloads: 5)
Reply
#4
(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?
Reply
#5
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?
Reply
#6
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
Reply
#7
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
Reply
#8
(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
Reply
#9
(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
Reply
#10
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)