mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 17:51:50 +02:00
LCL: add TControlAtPosFlag.capfOnlyWinControls
git-svn-id: trunk@52355 -
This commit is contained in:
parent
522085a524
commit
0897600234
@ -1862,7 +1862,8 @@ type
|
|||||||
capfAllowWinControls,// include TWinControls
|
capfAllowWinControls,// include TWinControls
|
||||||
capfOnlyClientAreas, // use the client areas, not the whole child area
|
capfOnlyClientAreas, // use the client areas, not the whole child area
|
||||||
capfRecursive, // search recursively in grand childrens
|
capfRecursive, // search recursively in grand childrens
|
||||||
capfHasScrollOffset // do not add the scroll offset to Pos (already included)
|
capfHasScrollOffset, // do not add the scroll offset to Pos (already included)
|
||||||
|
capfOnlyWinControls // include only TWinControls (ignore TControls)
|
||||||
);
|
);
|
||||||
TControlAtPosFlags = set of TControlAtPosFlag;
|
TControlAtPosFlags = set of TControlAtPosFlag;
|
||||||
|
|
||||||
|
@ -5199,7 +5199,7 @@ begin
|
|||||||
and GetControlAtPos(TControl(FControls[I])) then
|
and GetControlAtPos(TControl(FControls[I])) then
|
||||||
Break;
|
Break;
|
||||||
// check controls
|
// check controls
|
||||||
if (LControl = nil) then
|
if (LControl = nil) and not(capfOnlyWinControls in Flags) then
|
||||||
for I := FControls.Count - 1 downto 0 do
|
for I := FControls.Count - 1 downto 0 do
|
||||||
if (not (TObject(FControls[i]) is TWinControl))
|
if (not (TObject(FControls[i]) is TWinControl))
|
||||||
and GetControlAtPos(TControl(FControls[I])) then
|
and GetControlAtPos(TControl(FControls[I])) then
|
||||||
|
Loading…
Reference in New Issue
Block a user