- Timestamp:
- Aug 17, 2008, 8:23:09 PM (17 years ago)
- Location:
- branches/2.19_branch/NewView
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.19_branch/NewView/HelpFile.pas
r325 r329 681 681 var 682 682 i: longint; 683 tmpIndex: String; 683 684 begin 684 685 result := nil; … … 686 687 for i := 0 to _Index.Count - 1 do 687 688 begin 688 if StrStartsWithIgnoringCase( SearchText, _Index.ValuePtrs[ i ] ^ ) then 689 tmpIndex := _Index.ValuePtrs[i]^; 690 if StrStartsWithIgnoringCase(tmpIndex, SearchText) then 689 691 begin 690 692 // found … … 730 732 if tmpLevel = tmpTopic.ContentsLevel then 731 733 begin 732 if StrStartsWithIgnoringCase( SearchText, tmpTopic.TitlePtr ^) then734 if StrStartsWithIgnoringCase(tmpTopic.TitlePtr^, SearchText) then 733 735 begin 734 736 result := tmpTopic; -
branches/2.19_branch/NewView/MainForm.pas
r298 r329 2381 2381 Filename := THelpFile( CurrentOpenFiles[ 0 ] ).Filename; 2382 2382 NamePart := ExtractFileName( Filename ); 2383 Result := StrStartsWithIgnoringCase( 'newview', NamePart);2383 Result := StrStartsWithIgnoringCase(NamePart, 'newview'); 2384 2384 end; 2385 2385 … … 4551 4551 Procedure TMainForm.IndexSearchEditOnChange (Sender: TObject); 4552 4552 var 4553 MatchIndex: longint;4554 IndexINdex: longint;4555 SearchText: string;4553 tmpMatchIndex : longint; 4554 tmpSearchText: string; 4555 i : longint; 4556 4556 Begin 4557 4557 if InIndexSearch then 4558 4558 exit; 4559 4559 4560 MatchIndex:= -1; 4561 SearchText:= trim( IndexSearchEdit.Text ); 4562 for IndexIndex:= 0 to DisplayedIndex.Count - 1 do 4563 begin 4564 if StrStartsWithIgnoringCase( SearchText, DisplayedIndex[ IndexIndex ] ) then //IndexEntry ) then 4560 tmpMatchIndex := -1; 4561 tmpSearchText := trim(IndexSearchEdit.Text); 4562 4563 for i := 0 to DisplayedIndex.Count - 1 do 4564 begin 4565 if StrStartsWithIgnoringCase(DisplayedIndex[i], tmpSearchText) then 4565 4566 begin 4566 MatchIndex:= IndexIndex;4567 tmpMatchIndex := i; 4567 4568 break; 4568 4569 end; 4569 4570 end; 4570 4571 4571 if MatchIndex = -1 then4572 if tmpMatchIndex = -1 then 4572 4573 exit; 4573 4574 4574 4575 InIndexSearch:= true; 4575 4576 4576 if IndexListBox.ItemIndex <> MatchIndex then4577 IndexListBox.ItemIndex :=MatchIndex;4577 if IndexListBox.ItemIndex <> tmpMatchIndex then 4578 IndexListBox.ItemIndex := tmpMatchIndex; 4578 4579 4579 4580 InIndexSearch:= false;
Note:
See TracChangeset
for help on using the changeset viewer.