Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TImage 上的图片分为许多小矩形,我需要检查用户是否单击其中一个。基本上,我需要在没有按钮本身的图像上创建按钮。所以,问题是:如何检查光标是否在 Image 组件的某个部分上?
添加一个OnMouseDown或OnMouseUp事件处理程序TImage并检查X和Y参数。
OnMouseDown
OnMouseUp
TImage
X
Y