mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 21:59:07 +02:00
LCL: Use "real" system capture for TMouse.capture property. Issue #28238, patch from Andrew G. Khodotov.
git-svn-id: trunk@49254 -
This commit is contained in:
parent
25db164995
commit
11612bcf6b
@ -2492,7 +2492,6 @@ type
|
|||||||
|
|
||||||
TMouse = class
|
TMouse = class
|
||||||
private
|
private
|
||||||
FCapture: HWND;
|
|
||||||
FWheelScrollLines: Integer;
|
FWheelScrollLines: Integer;
|
||||||
procedure SetCapture(const Value: HWND);
|
procedure SetCapture(const Value: HWND);
|
||||||
function GetCapture: HWND;
|
function GetCapture: HWND;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
function TMouse.GetCapture: HWND;
|
function TMouse.GetCapture: HWND;
|
||||||
begin
|
begin
|
||||||
Result := FCapture;
|
Result := LCLIntf.GetCapture;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMouse.SetCapture(const Value: HWND);
|
procedure TMouse.SetCapture(const Value: HWND);
|
||||||
@ -22,12 +22,10 @@ begin
|
|||||||
{$IFDEF VerboseMouseCapture}
|
{$IFDEF VerboseMouseCapture}
|
||||||
DebugLn('TMouse.SetCapture ');
|
DebugLn('TMouse.SetCapture ');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
FCapture := Value;
|
|
||||||
if Value = 0 then
|
if Value = 0 then
|
||||||
ReleaseCapture
|
ReleaseCapture
|
||||||
else
|
else
|
||||||
LCLIntf.SetCapture(Value);
|
LCLIntf.SetCapture(Value);
|
||||||
FCapture := GetCapture;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TMouse.GetCursorPos: TPoint;
|
function TMouse.GetCursorPos: TPoint;
|
||||||
|
Loading…
Reference in New Issue
Block a user