Support Board
Date/Time: Sun, 22 Dec 2024 19:20:03 +0000
Post From: SC_POINTER_BUTTON_DOWN not firing?
[2015-02-24 20:14:36] |
onnb - Posts: 662 |
I have a custom tool that used to work in the past but is no longer working the same. The tool uses the mouse and pointer events together with the tool api to draw lines on the chart. Here is what is happening: 1. I select my tool from the tool bar menu (SC_ACS_TOOL1) (and I have the cross hair selected too) 2. I click on the chart. My study receives the pointer down event and I start to draw a line from that point. 3. As the mouse is moved on the screen, I continuously receive the pointer move event and redraw the line from the original point to the current point. Up till here no problems. 4. I now click on the chart and expect to receive the pointer down event but I don't receive it. I do continue to receive the pointer move event. A few notes on this: * I do notice that when I click on the chart, the line I draw becomes "selected". I also see that the cross hair is still active and I am still receiving "move" events. I'm just not receiving the down event. * This is not 100% consistent. Once in a while I do receive the mouse down event in step 4. Still can't figure out when. * I noticed that sometimes when I click on the chart, the cross hair tool becomes inactive and some other tools becomes active. for example, the trend line tool might become active. My tool is still active and I still receive mouse events. If the cross hair is not active, I was expecting to not receive mouse events. But the basic issue I have is that I am getting the mouse down event consistently and am not sure why. Any ideas? |