+ Implement Topic Search

git-svn-id: trunk@5922 -
This commit is contained in:
pierre 2007-01-12 17:07:23 +00:00
parent cbba170e61
commit 1724a37358

View File

@ -32,9 +32,29 @@ begin
end;
procedure TIDEApp.HelpTopicSearch;
var FileID: word;
Ctx : THelpCtx;
var Found: boolean;
var
EditorWindow : PSourceWindow;
S : string;
begin
EditorWindow:=FirstEditorWindow;
If assigned(EditorWindow) then
S:=LowerCaseStr(EditorWindow^.Editor^.GetCurrentWord)
else
S:='';
CheckHelpSystem;
Found:=false;
if S<>'' then
Found:=HelpFacility^.TopicSearch(S,FileID,Ctx);
if Found then
Help(FileID,Ctx,false)
else
HelpIndex('');
end;
procedure TIDEApp.HelpPrevTopic;
begin
if HelpWindow=nil then HelpContents else