If I place a ScrollBox on the form, then when you press and hold the mouse button within the boundaries of the ScrollBox, the ScrollBox continues to respond to mouse movement outside the boundaries of the ScrollBox in the same way.
But if I dynamically create
MyControl := TMyWinControl.Create(Form1);
MyControl.OnMouseMove := @ScrollBox1MouseMove;
my component
TMyWinControl = class(TScrollingWinControl)
published
property OnMouseMove;
end;
on the form, then the effect disappears.
Can you please tell me what ensures the response to mouse movement outside the component boundary?P.S.: Sorry for my English