mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:31:09 +02:00
IDE: lazdoc: enabled lazdoc hints for mouse hints in source editor
git-svn-id: trunk@13009 -
This commit is contained in:
parent
a2bedef1b0
commit
65ae8c2e56
@ -884,21 +884,15 @@ function THelpManager.GetHintForSourcePosition(const ExpandedFilename: string;
|
||||
const CodePos: TPoint; out Hint: string): TShowHelpResult;
|
||||
var
|
||||
Code: TCodeBuffer;
|
||||
{$IFDEF EnableLazDocHint}
|
||||
CacheWasUsed: boolean;
|
||||
{$ENDIF}
|
||||
begin
|
||||
Hint:='';
|
||||
Code:=CodeToolBoss.LoadFile(ExpandedFilename,true,false);
|
||||
if Code=nil then exit;
|
||||
{$IFDEF EnableLazDocHint}
|
||||
if LazDocBoss.GetHint(Code,CodePos.X,CodePos.Y,true,Hint,CacheWasUsed)=ldprSuccess
|
||||
then
|
||||
exit(shrSuccess);
|
||||
{$ENDIF}
|
||||
Hint:=CodeToolBoss.FindSmartHint(Code,CodePos.X,CodePos.Y);
|
||||
CodeToolBoss.Abortable:=false;
|
||||
Result:=shrSuccess;
|
||||
Result:=shrHelpNotFound;
|
||||
end;
|
||||
|
||||
function THelpManager.ConvertSourcePosToPascalHelpContext(
|
||||
|
Loading…
Reference in New Issue
Block a user