Fixed bug #8639 SynEdit was getting 3-4 messages for the mousemove and mouseup events. Only the first was correct.

git-svn-id: trunk@10910 -
This commit is contained in:
andrew 2007-04-07 14:49:20 +00:00
parent 395cbb23b9
commit cca247d50f

View File

@ -1018,6 +1018,9 @@ begin
end;
DeliverMouseMoveMessage(Widget,Event,TWinControl(Data));
{$IFDEF gtk2}
if TControl(Data).FCompStyle = csWinControl then Result := True;
{$ENDIF}
end;
{-------------------------------------------------------------------------------
@ -1618,6 +1621,12 @@ begin
end;
DeliverMouseUpMessage(Widget,Event,TWinControl(Data));
{$IFDEF gtk2}
// stop the message here because it can get sent to the parent to make
// multiple incorrect mousemove messages
if TWinControl(Data).FCompStyle = csWinControl then Result := True;
{$ENDIF}
end;
{-------------------------------------------------------------------------------