IDE: only update fpdoc hint if control visible

git-svn-id: trunk@31627 -
This commit is contained in:
mattias 2011-07-09 22:34:26 +00:00
parent 26e0cb515f
commit c36216f022
2 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,9 @@ var
begin
FBaseURL:='';
FHTMLHint:='';
if (Control=nil) or (not Control.IsVisible) then exit;
//debugln(['TFPDocHintProvider.DoUpdateHint ',DbgSName(Control)]);
// find current completion item
if (SourceEditorManagerIntf=nil) or (CodeToolBoss=nil)

View File

@ -2023,9 +2023,13 @@ begin
SrcEditHintWindow.Provider:=TFPDocHintProvider.Create(SrcEditHintWindow);
end;
SrcEditHintWindow.AnchorForm := TheForm;
debugln(['TSourceEditCompletion.StartShowCodeHelp ',CodeToolsOpts.IdentComplShowHelp]);
if CodeToolsOpts.IdentComplShowHelp then begin
TheForm.LongLineHintType:=sclpNone;
SrcEditHintWindow.HelpEnabled:=true;
end else begin
TheForm.LongLineHintType:=EditorOpts.CompletionLongLineHintType;
SrcEditHintWindow.HelpEnabled:=false;
end;
end;