Support Board
Date/Time: Wed, 22 Oct 2025 12:31:01 +0000
Post From: Detecting mouse events for a specific Text tool in ACSIL
[2025-10-17 06:54:00] |
bozo_j - Posts: 30 |
Hi guys, I want to detect the end of a drag event in ACSIL for a Text tool, so that I can reposition it to the new location on the chart. Exactly the same functionality as in "Clock - Real Time" built-in study where after the clock has been placed on the chart with the initial coordinates first, user can later move it by dragging it, and the new position will be stored in persistent variables. I have investigated sc.ReceivePointerEvents option (and POINTER_BUTTON_UP event), but even if this is a correct way to implement it, I don't see how to limit it to only one tool (Text) I am interested in, or to detect that the POINTER_BUTTON_UP is indeed even related to the specific Text tool on the chart I am interested in (if it cannot be limited to a specific Tool). Any ideas how to implement dragging of a Text tool to a new position? Thanks in advance! Date Time Of Last Edit: 2025-10-17 06:55:06
|