I would like to create a control (now an ImageView) that pass through the user interactions to the underlying controls. Here is an XCode example how to implement it, but I don't know how to make it in Delphi (or it can be made).
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the fast reply, but I think I tried it. Now I'm not at home, so I can't test it, but yesterday I set UserInteraction to false, but I can't tap through it. I only tested it in simulator. The ImageView has a PNG which is empty in the middle (it's a 20 px width border with a shadow), and there are several controls under it. Should I set anything else from the default values?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Fenistil
All your controls under this ImageView should not be its child, must be have a other parent,
When we set false to ImageView, all taps on imageview and childrens controls disabled and passed to under controls of imageview.
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You were right, it's working. I've forgot to set this property to false, because I have 2 ImageView and I didn't set it on the second one. Sorry for bothering you with it.
Thanks a lot!
Have a nice day! :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I would like to create a control (now an ImageView) that pass through the user interactions to the underlying controls. Here is an XCode example how to implement it, but I don't know how to make it in Delphi (or it can be made).
Thanks
Hi, Fenistil
If you have a transparent imageView and you want to pass through clicks to behind of this control just set imageView.UserInteraction := false
regards
Hi!
Thanks for the fast reply, but I think I tried it. Now I'm not at home, so I can't test it, but yesterday I set UserInteraction to false, but I can't tap through it. I only tested it in simulator. The ImageView has a PNG which is empty in the middle (it's a 20 px width border with a shadow), and there are several controls under it. Should I set anything else from the default values?
Thanks
Hi Fenistil
All your controls under this ImageView should not be its child, must be have a other parent,
When we set false to ImageView, all taps on imageview and childrens controls disabled and passed to under controls of imageview.
regards
Yes I know. The underlying controls have a different Parent. I'll test it today, and will report. Thx
You were right, it's working. I've forgot to set this property to false, because I have 2 ImageView and I didn't set it on the second one. Sorry for bothering you with it.
Thanks a lot!
Have a nice day! :)