I'm trying to understand the ControlStyle
property in Delphi 2007, but I'm having trouble grasping the csClickEvents
and csCaptureMouse
attributes.
According to specifications, csCaptureMouse
makes the control capture mouse events when it is clicked, whereas csClickEvents
enables the control to receive and answer to mouse clicks. It also mentions explicitly that TButton
does not inherit this attribute (I've checked the source code: this is indeed the case).
What exactly do csCaptureMouse
and csClickEvents
do, and what is the difference? Thanks for any answer.