mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 16:16:00 +02:00
LCL-CustomDrawn: Corrects the z-order of clicking
git-svn-id: trunk@35975 -
This commit is contained in:
parent
11a6c128d9
commit
eee15bd691
@ -602,7 +602,8 @@ begin
|
|||||||
Result := AForm;
|
Result := AForm;
|
||||||
lEventPos := Point(AX, AY); // Don't adjust for the scrolling because the regions are scrolled too
|
lEventPos := Point(AX, AY); // Don't adjust for the scrolling because the regions are scrolled too
|
||||||
|
|
||||||
for i := 0 to AControlsList.Count-1 do
|
// The order of this loop is important to respect the Z-order of controls
|
||||||
|
for i := AControlsList.Count-1 downto 0 do
|
||||||
begin
|
begin
|
||||||
lCurCDControl := TCDWinControl(AControlsList.Items[i]);
|
lCurCDControl := TCDWinControl(AControlsList.Items[i]);
|
||||||
if lCurCDControl.Region = nil then Continue;
|
if lCurCDControl.Region = nil then Continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user