mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:28:19 +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
|
||||
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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user