mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 03:58:14 +02:00
LCL carbon: fixed bug [Lazarus 0010968]: Carbon TSpinEdit TFloatSpinEdit do not work correctly
git-svn-id: trunk@14455 -
This commit is contained in:
parent
d48518abac
commit
ab8a4c647c
@ -120,13 +120,13 @@ begin
|
|||||||
|
|
||||||
if Widget <> nil then
|
if Widget <> nil then
|
||||||
begin
|
begin
|
||||||
P := Widget.GetMousePos;
|
|
||||||
if (LastMousePos.X = P.X) and (LastMousePos.Y = P.Y) then Exit;
|
|
||||||
LastMousePos := P;
|
|
||||||
|
|
||||||
if Widget is TCarbonControl then
|
if Widget is TCarbonControl then
|
||||||
if cceDoAction in (Widget as TCarbonControl).GetValidEvents then
|
if cceDoAction in (Widget as TCarbonControl).GetValidEvents then
|
||||||
(Widget as TCarbonControl).DoAction(APartCode);
|
(Widget as TCarbonControl).DoAction(APartCode);
|
||||||
|
|
||||||
|
P := Widget.GetMousePos;
|
||||||
|
if (LastMousePos.X = P.X) and (LastMousePos.Y = P.Y) then Exit;
|
||||||
|
LastMousePos := P;
|
||||||
|
|
||||||
FillChar(Msg, SizeOf(TLMMouseMove), 0);
|
FillChar(Msg, SizeOf(TLMMouseMove), 0);
|
||||||
Msg.Msg := LM_MOUSEMOVE;
|
Msg.Msg := LM_MOUSEMOVE;
|
||||||
|
Loading…
Reference in New Issue
Block a user