### ImageView Clickable

The ImageView is by default only clickable in Non-Transparent areas.
To change that, the Java API method setPickOnBounds has to be executed to change the property pickOnBounds (requires the JavaObject library).
Reference Java API Method setPickOnBounds
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/Node.html#setPickOnBounds-boolean-
Example setting PickOnBounds to True for an ImageView
`Sub Process_Globals
Private ImageView1 As ImageView
...
End Sub`
`Sub AppStart (Form1 As Form, Args() As String)
...
ImageViewSetPickInBounds(ImageView1, True)
...
End Sub`
'Set the property PickOnBounds of an ImageView
'Private ImageView1 As ImageView
'ImageViewSetPickInBounds(ImageView1, True)
`Sub ImageViewSetPickInBounds(imgv As ImageView, value As Boolean)
Dim jo As JavaObject = imgv
jo.RunMethod("setPickOnBounds", Array(value))
End Sub`
`Sub ImageView1_MouseClicked (EventData As MouseEvent)
Log($"Clicked on an empty ImageView1: X=${EventData.X}, Y=${EventData.Y}"$)
End Sub`
Output:
Clicked on an empty ImageView1: X=20.0, Y=20.0

Changed: , Category: Image and ImageView, File: T6C199M1463.htm, ID: 1463