Changeset 105 for trunk/NewView/NavigatePointUnit.pas
- Timestamp:
- Apr 5, 2007, 8:34:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/NavigatePointUnit.pas
r33 r105 48 48 SysUtils, 49 49 ACLUtility, 50 ACLStringUtility; 50 StringUtilsUnit, 51 DebugUnit; 51 52 52 53 procedure SaveWindowList( Var F: TextFile; … … 167 168 constructor TSavedHelpWindow.Load( Var F: TextFile ); 168 169 var 169 s: string;170 tmpString : string; 170 171 TopicIndex: integer; 172 tmpParts : TStringList; 171 173 begin 172 174 inherited Create; … … 174 176 Rect:= THelpWindowRect.Create; 175 177 176 ReadLn( F, S ); 178 ReadLn( F, tmpString); 179 tmpParts := TStringList.Create; 180 StrExtractStrings(tmpParts, tmpString, [','], #0); 177 181 178 TopicIndex := StrToInt( ExtractNextValue( S, ',' ));182 TopicIndex := StrToInt(tmpParts[0]); 179 183 Topic := HelpFile.Topics[ TopicIndex ]; 180 Group := StrToInt( ExtractNextValue( S, ',' ) ); 181 Rect.Left := StrToInt( ExtractNextValue( S, ',' ) ); 182 Rect.Bottom := StrToInt( ExtractNextValue( S, ',' ) ); 183 Rect.Width := StrToInt( ExtractNextValue( S, ',' ) ); 184 Rect.Height := StrToInt( ExtractNextValue( S, ',' ) ); 185 TopCharIndex := StrToInt( ExtractNextValue( S, ',' ) ); 184 Group := StrToInt(tmpParts[1]); 185 Rect.Left := StrToInt(tmpParts[2]); 186 Rect.Bottom := StrToInt(tmpParts[3]); 187 Rect.Width := StrToInt(tmpParts[4]); 188 Rect.Height := StrToInt(tmpParts[5]); 189 TopCharIndex := StrToInt(tmpParts[6]); 190 191 tmpParts.Destroy; 186 192 187 193 LoadWindowList( F, ChildWindows, HelpFile );
Note:
See TracChangeset
for help on using the changeset viewer.