- Timestamp:
- May 22, 2016, 2:09:18 PM (9 years ago)
- Location:
- trunk/Components
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/CanvasFontManager.pas
r396 r403 140 140 PmDev, 141 141 SysUtils, 142 142 143 StringUtilsUnit; 143 144 -
trunk/Components/Components.spr
r141 r403 1 1 [Application Options] 2 2 3 ApplicationIcon=D:\ Development\Sibyl\BIN\SIBYL.ICO3 ApplicationIcon=D:\progs\develop\SIBYL_FP3\BIN\SIBYL.ICO 4 4 5 5 [Breakpoints] … … 106 106 [Component Library OS/2] 107 107 108 CompLibName=D:\ Development\Sibyl\bin\CompLib.dll108 CompLibName=D:\progs\develop\SIBYL_FP3\bin\CompLib.dll 109 109 110 110 [Debugger Options] … … 120 120 LastDir=P:\NEWVIEW_DEV\COMPONENTS 121 121 OutDir=P:\newview_dev\build\components 122 LibDir=P:\newview_dev\build\sibyl\lib;P:\newview_dev\build\library ;122 LibDir=P:\newview_dev\build\sibyl\lib;P:\newview_dev\build\library 123 123 LibSrcDir=P:\newview_dev\Sibyl\RTL;P:\newview_dev\Sibyl\SPCC;P:\newview_dev\library 124 124 IncSrcDir= … … 127 127 [Find History] 128 128 129 Find0= Br130 Find1= .exec131 Find2= OnThreadTerminate132 Find3= onterminate133 Find4= jobproc134 Find5= onterm135 Find6= doterminate136 Find7= ontermin137 Find8=on job138 Find9= .upda139 Find10=. synch140 Find11= syncho141 Find12= execute142 Find13= tthread.exe143 Find14=tthread 144 Find15= .GetOffsetFromX129 Find0=StringUtilsUnit 130 Find1=Br 131 Find2=.exec 132 Find3=OnThreadTerminate 133 Find4=onterminate 134 Find5=jobproc 135 Find6=onterm 136 Find7=doterminate 137 Find8=ontermin 138 Find9=onjob 139 Find10=.upda 140 Find11=.synch 141 Find12=syncho 142 Find13=execute 143 Find14=tthread.exe 144 Find15=tthread 145 145 146 146 [General] 147 147 148 148 Version=Sibyl Project Ver2.02 149 ProjectName=P:\NEWVIEW_DEV\C omponents\Components.spr149 ProjectName=P:\NEWVIEW_DEV\COMPONENTS\Components.spr 150 150 ProjectType=Visual 151 CompLibName=D:\ Development\Sibyl\bin\CompLib.dll152 Win32CompLibName=D:\ Development\Sibyl\bin\CompLib.dll151 CompLibName=D:\progs\develop\SIBYL_FP3\bin\CompLib.dll 152 Win32CompLibName=D:\progs\develop\SIBYL_FP3\bin\CompLib.dll 153 153 RunParameter= 154 154 InActiveLanguages= … … 170 170 File0.Left=-4 171 171 File0.Bottom=-5 172 File0.Width=13 06173 File0.Height=5 48172 File0.Width=1388 173 File0.Height=582 174 174 File0.Column=1 175 175 File0.Line=8 … … 177 177 File1.Left=-4 178 178 File1.Bottom=-5 179 File1.Width=13 06180 File1.Height=5 48179 File1.Width=1388 180 File1.Height=582 181 181 File1.Column=56 182 182 File1.Line=104 … … 184 184 File2.Left=-4 185 185 File2.Bottom=-5 186 File2.Width=13 06187 File2.Height=5 48186 File2.Width=1388 187 File2.Height=582 188 188 File2.Column=21 189 189 File2.Line=216 190 File3=.\CanvasFontManager.pas 191 File3.Left=-4 192 File3.Bottom=-5 193 File3.Width=1388 194 File3.Height=582 195 File3.Column=3 196 File3.Line=143 190 197 191 198 [Linker Options] … … 208 215 MainFile0=.\Components.pas 209 216 MainFile0.Ext=.EXE 210 MainFile0.Checksum= 20992217 MainFile0.Checksum=0 211 218 MainFile0.Expanded=False 212 219 MainFile0.File0=.\ACLDialogs.pas … … 356 363 [Repository] 357 364 358 Page0= Projects365 Page0=[Object Repository] 359 366 Page0.Installed=True 360 Page0.Object0=SpeedSoft.AppExpert361 Page0.Object0.NewProject=False362 Page0.Object0.NewForm=False363 Page0.Object0.MainForm=False364 Page0.Object0.InPage=True365 Page0.Object0.Title=AppExpert366 Page0.Object0.Description=(C) 1997 SpeedSoft.367 Page0.Object0.Author=SpeedSoft368 Page1=[Object Repository]369 Page1.Installed=True370 Page1.Object0=SpeedSoft.AppExpert371 Page1.Object0.NewProject=False372 Page1.Object0.NewForm=False373 Page1.Object0.MainForm=False374 Page1.Object0.InPage=True375 Page1.Object0.Title=AppExpert376 Page1.Object0.Description=(C) 1997 SpeedSoft.377 Page1.Object0.Author=SpeedSoft378 367 379 368 [SCU] … … 382 371 MainForm=ComponentsTestForm 383 372 384 [Watch]385 386 Watch0=+font.pfacename^387 Watch1=+font.fonttype388 Watch2=+achild.fname^389 Watch3=+afont.ffontinfo.fsselection390 Watch4=+afont.ffontinfo.usweightclass391 Watch5=+afont.ffontinfo392 393 373 [Win32 Application Options] 394 374 395 ApplicationIcon=D:\ Development\Sibyl\BIN\SIBYL.ICO375 ApplicationIcon=D:\progs\develop\SIBYL_FP3\BIN\SIBYL.ICO 396 376 397 377 [Win32 Compiler Options] -
trunk/Components/CustomFileControls.pas
r15 r403 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 ACLUtility, 353 BitmapUtility, 354 StringUtilsUnit; 349 355 350 356 var … … 459 465 While S<>'' Do 460 466 Begin 461 NextFilter:=Pos( ';',S);467 NextFilter:=Pos(PATH_SEPARATOR,S); 462 468 If NextFilter<>0 Then 463 469 Begin … … 471 477 End; 472 478 473 Status := SysUtils.FindFirst(FDirectory + '\'+ ThisFilter, Attr,Search);479 Status := SysUtils.FindFirst(FDirectory + DIRECTORY_SEPARATOR + ThisFilter, Attr,Search); 474 480 While Status = 0 Do 475 481 Begin … … 484 490 While S<>'' Do 485 491 Begin 486 If Pos( ';',S)<>0 Then492 If Pos(PATH_SEPARATOR,S)<>0 Then 487 493 Begin 488 494 s1:=S; 489 Delete(s1,1,Pos( ';',S));490 SetLength(S,Pos( ';',S)-1);495 Delete(s1,1,Pos(PATH_SEPARATOR,S)); 496 SetLength(S,Pos(PATH_SEPARATOR,S)-1); 491 497 End 492 498 Else s1:=''; 493 499 494 Status := SysUtils.FindFirst(FDirectory + '\'+ S, Attr,Search);500 Status := SysUtils.FindFirst(FDirectory + DIRECTORY_SEPARATOR + S, Attr,Search); 495 501 While Status = 0 Do 496 502 Begin … … 554 560 GetDir(Ord(UpCase(Drive))-Ord('A')+1,s); 555 561 {$I+} 556 If (s[length(s)])= '\'Then dec(s[0]);557 If not (NewDir[1] In ['/', '\']) Then s:=s+'\';562 If (s[length(s)])=DIRECTORY_SEPARATOR Then dec(s[0]); 563 If not (NewDir[1] In ['/',DIRECTORY_SEPARATOR]) Then s:=s+DIRECTORY_SEPARATOR; 558 564 NewDir:=s+NewDir; 559 565 End; 560 566 561 If NewDir[Length(NewDir)] = '\'Then SetLength(NewDir,Length(NewDir)-1);567 If NewDir[Length(NewDir)] = DIRECTORY_SEPARATOR Then SetLength(NewDir,Length(NewDir)-1); 562 568 If FDirectory=NewDir Then exit; 563 569 FDirectory := NewDir; … … 602 608 Else Result := Items[ idx ]; 603 609 s:=Directory; 604 If s[Length(s)] In [ '\','/'] Then dec(s[0]);605 If s<>'' Then If Result<>'' Then Result:=s+ '\'+Result;610 If s[Length(s)] In [DIRECTORY_SEPARATOR,'/'] Then dec(s[0]); 611 If s<>'' Then If Result<>'' Then Result:=s+DIRECTORY_SEPARATOR+Result; 606 612 End; 607 613 … … 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; … … 882 888 IndentLevel: longint; 883 889 PathSoFar: string; 890 tmpPathElements : TStringList; 891 i : integer; 884 892 Begin 885 893 Screen.Cursor := crHourGlass; … … 897 905 Path := Copy( Directory, 4, 255 ); 898 906 PathSoFar := Copy( Directory, 1, 3 ); 899 While Path <> '' Do 900 Begin 907 908 tmpPathElements := TStringList.Create; 909 StrExtractStrings(tmpPathElements, Path, [DIRECTORY_SEPARATOR], #0); 910 911 for i := 0 to tmpPathElements.Count - 1 do 912 begin 901 913 inc( IndentLevel ); 902 S := ExtractNextValue( Path, '\' );914 S := tmpPathElements[i]; 903 915 904 916 if not DirectoryExists( PathSoFar + S ) then … … 909 921 end; 910 922 Items.AddObject( S, pointer( IndentLevel ) ); 911 PathSoFar := PathSoFar + S + '\';923 PathSoFar := PathSoFar + S + DIRECTORY_SEPARATOR; 912 924 End; 913 925 926 tmpPathElements.Destroy; 914 927 ItemIndex:= Items.Count - 1; 915 928 … … 918 931 SubDirs:= TStringList.Create; 919 932 920 Status := SysUtils.FindFirst( Add Slash( Directory ) + '*.*', faDirectory, Search);933 Status := SysUtils.FindFirst( AddDirectorySeparator( Directory ) + '*.*', faDirectory, Search); 921 934 While Status = 0 Do 922 935 Begin … … 967 980 GetDir(Ord(UpCase(Drive))-Ord('A')+1,s); 968 981 {$I+} 969 S:= Remove Slash( S );970 S:= Add Slash( S );982 S:= RemoveRightDirectorySeparator( S ); 983 S:= AddDirectorySeparator( S ); 971 984 NewDir:=s+NewDir; 972 985 End; 973 986 974 NewDir:= Remove Slash( NewDir );987 NewDir:= RemoveRightDirectorySeparator( NewDir ); 975 988 976 989 FDirectory := NewDir; … … 1116 1129 begin 1117 1130 try 1118 DriveLabel := GetVolumeLabel( DriveNumberTo Letter( DriveNumber ) );1131 DriveLabel := GetVolumeLabel( DriveNumberToDriveLetter( DriveNumber ) ); 1119 1132 DriveString := DriveString + DriveLabel; 1120 1133 except … … 1142 1155 on EInOutError do 1143 1156 // Current drive inaccessible 1144 Drive := GetBootDrive ;1157 Drive := GetBootDriveLetter; 1145 1158 end; 1146 1159 End; … … 1261 1274 // and the user doesn't want to retry, 1262 1275 // so go back to boot drive. 1263 SetDrive( GetBootDrive);1276 SetDrive(GetBootDriveLetter); 1264 1277 Screen.Cursor := crDefault; 1265 1278 Exit;
Note:
See TracChangeset
for help on using the changeset viewer.