mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:19:08 +02:00
IDE: only update fpdoc hint if control visible
git-svn-id: trunk@31627 -
This commit is contained in:
parent
26e0cb515f
commit
c36216f022
@ -99,6 +99,9 @@ var
|
|||||||
begin
|
begin
|
||||||
FBaseURL:='';
|
FBaseURL:='';
|
||||||
FHTMLHint:='';
|
FHTMLHint:='';
|
||||||
|
|
||||||
|
if (Control=nil) or (not Control.IsVisible) then exit;
|
||||||
|
//debugln(['TFPDocHintProvider.DoUpdateHint ',DbgSName(Control)]);
|
||||||
|
|
||||||
// find current completion item
|
// find current completion item
|
||||||
if (SourceEditorManagerIntf=nil) or (CodeToolBoss=nil)
|
if (SourceEditorManagerIntf=nil) or (CodeToolBoss=nil)
|
||||||
|
@ -2023,9 +2023,13 @@ begin
|
|||||||
SrcEditHintWindow.Provider:=TFPDocHintProvider.Create(SrcEditHintWindow);
|
SrcEditHintWindow.Provider:=TFPDocHintProvider.Create(SrcEditHintWindow);
|
||||||
end;
|
end;
|
||||||
SrcEditHintWindow.AnchorForm := TheForm;
|
SrcEditHintWindow.AnchorForm := TheForm;
|
||||||
|
debugln(['TSourceEditCompletion.StartShowCodeHelp ',CodeToolsOpts.IdentComplShowHelp]);
|
||||||
if CodeToolsOpts.IdentComplShowHelp then begin
|
if CodeToolsOpts.IdentComplShowHelp then begin
|
||||||
TheForm.LongLineHintType:=sclpNone;
|
TheForm.LongLineHintType:=sclpNone;
|
||||||
SrcEditHintWindow.HelpEnabled:=true;
|
SrcEditHintWindow.HelpEnabled:=true;
|
||||||
|
end else begin
|
||||||
|
TheForm.LongLineHintType:=EditorOpts.CompletionLongLineHintType;
|
||||||
|
SrcEditHintWindow.HelpEnabled:=false;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user