Delphi fmx how to click through image and form?

1.1k Views Asked by At

I make a transparent form with TImage and can't click mouse through image. Through transparent form I can click without problems, but no idea how to click through image.

3

There are 3 best solutions below

0
ワタルシロ On BEST ANSWER
SetWindowLong(Handle, GWL_EXSTYLE, WS_EX_LAYERED or WS_EX_TRANSPARENT);
1
Wataru Shiro On

sorry, I forget to say that I need click not only through image but through image and form (I change topic name now) so this is answer correct for me: SetWindowLong(Handle, GWL_EXSTYLE, WS_EX_LAYERED or WS_EX_TRANSPARENT);

0
qGold On

On an OnClick Event you could temporarily hide the Form/Image, then simulate a Mouseclick Event and then show the Form/Image.

This is definitive not the best solution, but it may work anyway.