B4J Question Empty Imageview not responsive

boten

Active Member
Licensed User
Longtime User
I have an imageview on a form.
If left empty (no setimage) then it does not repond to mousedclicked event.
If filled with an image - it DOES respond.
If filled with image and then "written on" with canvas.drawtext then again does NOT respond.

How to make an imageview responsive to mouseclick when empty or when drawtext on it?
 

boten

Active Member
Licensed User
Longtime User
I tried. Can u tell what's wrong with this code? (project attached)
 

Attachments

  • ivclk.zip
    2.2 KB · Views: 185
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You are adding a canvas above the imageview. The canvas is above your imageview and the click will be absorbed by the canvas

Edit: dammit; too slow :)
 
Last edited:
Upvote 0
Top