Changeset 188 for trunk/Components/CustomFileControls.pas
- Timestamp:
- Jun 5, 2007, 8:28:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/CustomFileControls.pas
r15 r188 7 7 8 8 Uses 9 Dos, SysUtils, Classes, Forms, StdCtrls, CustomListBox, Graphics; 9 Dos, 10 SysUtils, 11 Classes, 12 Forms, 13 StdCtrls, 14 CustomListBox, 15 Graphics; 10 16 11 17 … … 337 343 338 344 Uses 339 {$IFDEF OS2} 340 BseDos, OS2Def, DriveInfoUnit, 341 BseDev, BseErr, 342 {$ENDIF} 343 344 {$IFDEF Win95} 345 WinBase, 346 {$ENDIF} 345 BseDos, 346 OS2Def, 347 BseDev, 348 BseErr, 349 347 350 Dialogs, 348 ACLStringUtility, ACLUtility, ACLFileUtility, BitmapUtility; 351 FileUtilsUnit, 352 ACLStringUtility, 353 ACLUtility, 354 BitmapUtility; 349 355 350 356 var … … 864 870 Data:= longint( Items.Objects[ Index ] ); 865 871 if ( Data and dfSubDir ) = 0 then 866 FullPath:= Add Slash( S ) + FullPath;872 FullPath:= AddDirectorySeparator( S ) + FullPath; 867 873 dec( Index ); 868 874 end; … … 918 924 SubDirs:= TStringList.Create; 919 925 920 Status := SysUtils.FindFirst( Add Slash( Directory ) + '*.*', faDirectory, Search);926 Status := SysUtils.FindFirst( AddDirectorySeparator( Directory ) + '*.*', faDirectory, Search); 921 927 While Status = 0 Do 922 928 Begin … … 967 973 GetDir(Ord(UpCase(Drive))-Ord('A')+1,s); 968 974 {$I+} 969 S:= Remove Slash( S );970 S:= Add Slash( S );975 S:= RemoveRightDirectorySeparator( S ); 976 S:= AddDirectorySeparator( S ); 971 977 NewDir:=s+NewDir; 972 978 End; 973 979 974 NewDir:= Remove Slash( NewDir );980 NewDir:= RemoveRightDirectorySeparator( NewDir ); 975 981 976 982 FDirectory := NewDir; … … 1116 1122 begin 1117 1123 try 1118 DriveLabel := GetVolumeLabel( DriveNumberTo Letter( DriveNumber ) );1124 DriveLabel := GetVolumeLabel( DriveNumberToDriveLetter( DriveNumber ) ); 1119 1125 DriveString := DriveString + DriveLabel; 1120 1126 except … … 1142 1148 on EInOutError do 1143 1149 // Current drive inaccessible 1144 Drive := GetBootDrive ;1150 Drive := GetBootDriveLetter; 1145 1151 end; 1146 1152 End; … … 1261 1267 // and the user doesn't want to retry, 1262 1268 // so go back to boot drive. 1263 SetDrive( GetBootDrive);1269 SetDrive(GetBootDriveLetter); 1264 1270 Screen.Cursor := crDefault; 1265 1271 Exit;
Note:
See TracChangeset
for help on using the changeset viewer.