bqoEvent object
Represents the mouse pointer horizontal position on a picture or table object when the bqoEvent passes event-related information as an optional parameter to an Event handler (OnClick handler). If the ClickX values cannot be read, 0 is returned.
Read-write, Number
This example shows to read the values on different sectors of a picture on an OnClick Event. Values are written to the Console:
TBConsole.Text = TBConsole.Text + "\r\nPic1 Start" TBConsole.Text = TBConsole.Text + "\r\nXCoord: " + bqoEvent.ClickX TBConsole.Text = TBConsole.Text + "\r\nYCoord: " + bqoEvent.ClickY if (bqoEvent.ClickX > 390 && bqoEvent.ClickX < 480 && bqoEvent.ClickY >280 && bqoEvent.ClickY <425) { TBConsole.Text = TBConsole.Text + "\r\nFront Wheel" } else { TBConsole.Text = TBConsole.Text + "\r\nNot a Wheel" } TBConsole.Text = TBConsole.Text + "\r\nXCoord: " + bqoEvent.ClickX TBConsole.Text = TBConsole.Text + "\r\nYCoord: " + bqoEvent.ClickY bqoEvent.ClickX = bqoEvent.ClickX - 50 bqoEvent.ClickY = bqoEvent.ClickY + 50 TBConsole.Text = TBConsole.Text + "\r\nXCoord: " + bqoEvent.ClickX TBConsole.Text = TBConsole.Text + "\r\nYCoord: " + bqoEvent.ClickY Picture2.OnClick(bqoEvent) TBConsole.Text = TBConsole.Text + "\r\nPic1 End"