IDE: lazdoc: enabled lazdoc hints for mouse hints in source editor

git-svn-id: trunk@13009 -
This commit is contained in:
mattias 2007-11-24 21:17:17 +00:00
parent a2bedef1b0
commit 65ae8c2e56

View File

@ -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(