Changeset 375 for trunk/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- Apr 24, 2021, 1:51:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r374 r375 54 54 procedure EditFrame(ca: TCanvas; p: TRect; T: TTexture); 55 55 function HexStringToColor(S: string): integer; 56 function ExtractFileNameWithoutExt(const Filename: string): string; 56 57 function LoadGraphicFile(Bmp: TBitmap; FileName: string; Options: TLoadGraphicFileOptions = []): boolean; 57 58 function LoadGraphicSet(const Name: string): TGraphicSet; … … 493 494 end; 494 495 496 function ExtractFileNameWithoutExt(const Filename: string): string; 497 var 498 P: Integer; 499 begin 500 Result := Filename; 501 P := Length(Result); 502 while P > 0 do begin 503 case Result[P] of 504 PathDelim: Exit; 505 {$ifdef windows} 506 '/': if ('/' in AllowDirectorySeparators) then Exit; 507 {$endif} 508 '.': Exit(Copy(Result, 1, P - 1)); 509 end; 510 Dec(P); 511 end; 512 end; 513 495 514 function LoadGraphicSet(const Name: string): TGraphicSet; 496 515 var
Note:
See TracChangeset
for help on using the changeset viewer.