mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 05:20:23 +02:00
LCL: TScrollingWinControl: Fixed ControlAtPos after Delphi compatible change of ScreenToClient and ClientToScreen. Issue #32392.
git-svn-id: trunk@55857 -
This commit is contained in:
parent
fef3d14b6d
commit
f4679b14e6
@ -2219,7 +2219,7 @@ type
|
||||
function ControlAtPos(const Pos: TPoint; AllowDisabled: Boolean): TControl;
|
||||
function ControlAtPos(const Pos: TPoint;
|
||||
AllowDisabled, AllowWinControls: Boolean): TControl;
|
||||
function ControlAtPos(const Pos: TPoint; Flags: TControlAtPosFlags): TControl;
|
||||
function ControlAtPos(const Pos: TPoint; Flags: TControlAtPosFlags): TControl; virtual;
|
||||
function ContainsControl(Control: TControl): Boolean;
|
||||
procedure DoAdjustClientRectChange(const InvalidateRect: Boolean = True);
|
||||
procedure InvalidateClientRectCache(WithChildControls: boolean);
|
||||
|
@ -181,6 +181,7 @@ type
|
||||
public
|
||||
constructor Create(TheOwner : TComponent); override;
|
||||
destructor Destroy; override;
|
||||
function ControlAtPos(const Pos: TPoint; Flags: TControlAtPosFlags): TControl; override;
|
||||
function ScreenToClient(const APoint: TPoint): TPoint; override;
|
||||
function ClientToScreen(const APoint: TPoint): TPoint; override;
|
||||
procedure UpdateScrollbars;
|
||||
|
@ -316,6 +316,12 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
function TScrollingWinControl.ControlAtPos(const Pos: TPoint;
|
||||
Flags: TControlAtPosFlags): TControl;
|
||||
begin
|
||||
Result := inherited ControlAtPos(Pos, Flags - [capfHasScrollOffset]);
|
||||
end;
|
||||
|
||||
function TScrollingWinControl.ScreenToClient(const APoint: TPoint): TPoint;
|
||||
var
|
||||
P: TPoint;
|
||||
|
Loading…
Reference in New Issue
Block a user