Changeset 329 for branches/2.19_branch/NewView/MainForm.pas
- Timestamp:
- Aug 17, 2008, 8:23:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.