ide: don't hide hint if user input handler passes a hint window as a source of messages (issue #0020185), also don't explicitly hide hint if source editor notifies about scroll event - hint will hide anyway because of user input notification

git-svn-id: trunk@35501 -
This commit is contained in:
paul 2012-02-20 06:24:01 +00:00
parent bbb4a0f776
commit 19acb2a8de

View File

@ -7359,7 +7359,6 @@ end;
procedure TSourceNotebook.EditorMouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
begin
HideHint;
//handled:=true; //The scrolling is not done: it's not handled! See TWinControl.DoMouseWheel
end;
@ -7448,7 +7447,9 @@ end;
procedure TSourceNotebook.OnApplicationUserInput(Sender: TObject; Msg: Cardinal);
begin
//debugln('TSourceNotebook.OnApplicationUserInput');
HideHint;
// don't hide hint if Sender is a hint window
if Sender <> FHintWindow then
HideHint;
end;
procedure TSourceNotebook.EditorKeyDown(Sender: TObject; var Key: Word;