mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 10:39:21 +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
|
||||
capfOnlyClientAreas, // use the client areas, not the whole child area
|
||||
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;
|
||||
|
||||
|
@ -5199,7 +5199,7 @@ begin
|
||||
and GetControlAtPos(TControl(FControls[I])) then
|
||||
Break;
|
||||
// check controls
|
||||
if (LControl = nil) then
|
||||
if (LControl = nil) and not(capfOnlyWinControls in Flags) then
|
||||
for I := FControls.Count - 1 downto 0 do
|
||||
if (not (TObject(FControls[i]) is TWinControl))
|
||||
and GetControlAtPos(TControl(FControls[I])) then
|
||||
|
Loading…
Reference in New Issue
Block a user