mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 13:28:04 +02:00
LCL: fixing endless loop in win32: TWinControl.IsControlMouseMsg recognizes overlapping TWinControl, but will ignore them
git-svn-id: trunk@12713 -
This commit is contained in:
parent
c6c16d5bbd
commit
22b7128760
@ -4063,6 +4063,12 @@ begin
|
||||
// do query wincontrol childs, in case they overlap
|
||||
Control := ControlAtPos(SmallPointToPoint(TheMessage.Pos),
|
||||
[capfAllowWinControls]);
|
||||
if Control is TWinControl then begin
|
||||
// there is a TWinControl child at this position
|
||||
// TWinControl childs get their own messages
|
||||
// => ignore here
|
||||
Control:=nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
//DebugLn('TWinControl.IsControlMouseMsg B ',DbgSName(Self),' Control=',DbgSName(Control));
|
||||
|
@ -308,8 +308,6 @@ begin
|
||||
w := (ClientWidth - 3 * x) div 2;
|
||||
InstallPkgGroupBox.SetBounds(x, x, w, Height - 150);
|
||||
AvailablePkgGroupBox.SetBounds(2 * x + w, x, w, Height - 150);
|
||||
|
||||
SaveAndRebuildButton.Left := (Width - SaveAndRebuildButton.Width) div 2 ;
|
||||
end;
|
||||
|
||||
procedure TInstallPkgSetDialog.SaveAndExitButtonClick(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user