Support Board
Date/Time: Fri, 27 Dec 2024 18:42:09 +0000
Post From: How to see is the user drawing 'selected' or not ?
[2016-03-01 13:29:18] |
Al SC Developer - Posts: 434 |
You can not just blindly use sc.ActiveToolIndex on an ACS button press, because it likely no longer contains the original point you were interested in. This is because the value is updated with mouse movement and clicks (it changed as you moved to your button). The interface is designed so that you first enter into ACS tool mode by selecting your button, and then monitor for mouse events. Then when you see the SC_POINTER_DOWN event, you can record the value of sc.ActiveToolIndex on each mouse click and then continue with your processing. Currently, the selection state of a drawing is not provided in the UseTool struct. |