Mouse pointer data can accessed after clicking or double-clicking the plot. Note that a double-click will also cause mouse click code to run. Mouse pointer data can be accessed with: [plotControlName.mouseX]
[plotControlName.mouseY]
In the following example, a text box named txtMark is made for user access to type in some event that takes place. In the plot's Event Code, the following code is used so when the user double-clicks the plot, the location of the click is used to mark the text on the plot with the content of the text box.
<dblClick>!this.drawText [this.mouseX], [this.mouseY], [txtMark], 10, RED
Note: Example use, the data has no relation to a pump's status.
|