LCL carbon: fixed bug [Lazarus 0010968]: Carbon TSpinEdit TFloatSpinEdit do not work correctly

git-svn-id: trunk@14455 -
This commit is contained in:
tombo 2008-03-07 12:24:46 +00:00
parent d48518abac
commit ab8a4c647c

View File

@ -120,13 +120,13 @@ begin
if Widget <> nil then
begin
P := Widget.GetMousePos;
if (LastMousePos.X = P.X) and (LastMousePos.Y = P.Y) then Exit;
LastMousePos := P;
if Widget is TCarbonControl then
if cceDoAction in (Widget as TCarbonControl).GetValidEvents then
(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);
Msg.Msg := LM_MOUSEMOVE;