mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 02:21:04 +02:00
LCL: Handle mouse events through shaped TWinControl. Issue #35270, patch from ptvs.
git-svn-id: trunk@61053 -
This commit is contained in:
parent
c966415648
commit
6096106179
@ -4709,15 +4709,7 @@ begin
|
||||
else
|
||||
begin
|
||||
// do query wincontrol children, in case they overlap
|
||||
Control := ControlAtPos(SmallPointToPoint(MouseMessage.Pos),
|
||||
[capfAllowWinControls]);
|
||||
if Control is TWinControl then
|
||||
begin
|
||||
// there is a TWinControl child at this position
|
||||
// TWinControl children get their own messages
|
||||
// => ignore here
|
||||
Control := nil;
|
||||
end;
|
||||
Control := ControlAtPos(SmallPointToPoint(MouseMessage.Pos), []);
|
||||
end;
|
||||
|
||||
//DebugLn(['TWinControl.IsControlMouseMsg B ',DbgSName(Self),' Control=',DbgSName(Control),' Msg=',TheMessage.Msg]);
|
||||
|
Loading…
Reference in New Issue
Block a user