Changeset 259 for trunk/NewView/MainForm.pas
- Timestamp:
- Sep 25, 2007, 1:30:41 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r252 r259 1668 1668 const DisplayFirstTopic: boolean ): boolean; 1669 1669 var 1670 Filenames: TStringList; 1671 begin 1672 Filenames := TStringList.Create; 1673 StrExtractStringsIgnoreEmpty(Filenames, TextList, ['+'], #0); 1674 if Filenames.Count > 0 then 1675 begin 1676 result := OpenFiles( Filenames, '', DisplayFirstTopic ); 1670 tmpFileNames: TStringList; 1671 begin 1672 tmpFileNames := TStringList.Create; 1673 1674 StrExtractStringsIgnoreEmpty(tmpFileNames, TextList, [HELP_FILE_DELIMITER], #0); 1675 if tmpFileNames.Count > 0 then 1676 begin 1677 result := OpenFiles(tmpFileNames, '', DisplayFirstTopic ); 1677 1678 end 1678 1679 else … … 1680 1681 CloseFile; 1681 1682 end; 1682 Filenames.Destroy;1683 tmpFileNames.Destroy; 1683 1684 end; 1684 1685 … … 4167 4168 M1: longword; 4168 4169 OpenFirstTopic: boolean; 4170 tmpFileNames : AnsiString; 4169 4171 begin 4170 4172 if Application.HelpFile = '' then … … 4209 4211 HelpManagerWindows.Add( pointer( CmdLineParameters.getHelpManagerWindow ) ); 4210 4212 4211 if CmdLineParameters.getFileNames(Settings.StartupHelp) <> '' then 4213 if CmdLineParameters.getShowIndexFlag then 4214 begin 4215 DisplayIndex; 4216 end; 4217 4218 tmpFileNames := CmdLineParameters.getFileNames(Settings.StartupHelp); 4219 if tmpFileNames <> '' then 4212 4220 begin 4213 4221 // open specified files 4214 4222 Filenames := TStringList.Create; 4215 4223 4216 StrExtractStringsIgnoreEmpty(Filenames, cmdLineParameters.getFileNames(Settings.StartupHelp), ['+'], #0);4224 StrExtractStringsIgnoreEmpty(Filenames, tmpFileNames, [HELP_FILE_DELIMITER], #0); 4217 4225 4218 4226 LogEvent(LogStartup, 'Call OpenFiles'); … … 4279 4287 LogEvent(LogStartup, 'RUN PROGRAM'); 4280 4288 end; 4289 4281 4290 4282 4291 Procedure TMainForm.MainFormOnResize (Sender: TObject); … … 5670 5679 if FileNameIndex > 0 then 5671 5680 begin 5672 MRUText := MRUText + '+';5681 MRUText := MRUText + HELP_FILE_DELIMITER; 5673 5682 end; 5674 5683 MRUText := MRUText + FileName; … … 5677 5686 if Length( MRUText ) > 50 then 5678 5687 begin 5679 MRUText := MRUText + '+...';5688 MRUText := MRUText + HELP_FILE_DELIMITER + ' ...'; 5680 5689 break; 5681 5690 end; … … 6725 6734 HelpFiles := TList.Create; 6726 6735 6727 if not LoadFiles( FileNames, 6728 HelpFiles ) then 6736 if not LoadFiles(FileNames, HelpFiles ) then 6729 6737 begin 6730 6738 ClearWaitCursor;
Note:
See TracChangeset
for help on using the changeset viewer.