Changeset 396 for trunk/Components


Ignore:
Timestamp:
May 22, 2016, 12:18:33 PM (9 years ago)
Author:
RBRi
Message:

remove usage of ACLStringUtility

Location:
trunk/Components
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/CanvasFontManager.pas

    r15 r396  
    55Uses
    66  OS2Def,
    7   Classes, Forms, PMWIN, Graphics;
     7  Classes,
     8  Forms,
     9  PMWIN,
     10  Graphics;
    811
    912Const
     
    132135
    133136uses
    134   PMWin, PMGpi, OS2Def, PmDev,
     137  PMWin,
     138  PMGpi,
     139  OS2Def,
     140  PmDev,
    135141  SysUtils,
    136   ACLStringUtility;
     142  StringUtilsUnit;
    137143
    138144Imports
     
    243249    Face := FontFaces[ FaceIndex ];
    244250
    245     if StringsSame( Face.pName^, Name ) then
     251    if StrEqualIgnoringCase( Face.pName^, Name ) then
    246252    begin
    247253      Result := Face;
     
    477483function SubstituteBitmapFontToOutline( const FaceName: string ): string;
    478484begin
    479   if StringsSame( FaceName, 'Helv' ) then
     485  if StrEqualIgnoringCase( FaceName, 'Helv' ) then
    480486    result := 'Helvetica'
    481   else if StringsSame( FaceName, 'Tms Rmn' ) then
     487  else if StrEqualIgnoringCase( FaceName, 'Tms Rmn' ) then
    482488    result := 'Times New Roman'
    483   else if StringsSame( FaceName, 'System Proportional' ) then
     489  else if StrEqualIgnoringCase( FaceName, 'System Proportional' ) then
    484490    result := 'Helvetica'
    485   else if StringsSame( FaceName, 'System Monospaced' ) then
     491  else if StrEqualIgnoringCase( FaceName, 'System Monospaced' ) then
    486492    result := 'Courier'
    487   else if StringsSame( FaceName, 'System VIO' ) then
     493  else if StrEqualIgnoringCase( FaceName, 'System VIO' ) then
    488494    result := 'Courier'
    489495  else
  • trunk/Components/MultiColumnListBox.pas

    r15 r396  
    175175
    176176uses
    177   ACLStringUtility;
     177  StringUtilsUnit;
    178178 
    179179{ TMultiColumnListBox }
     
    292292  Dest: TRect;
    293293  LineClipRect: TRect;
     294  tmpColumns : TStringList;
     295  i : longint;
    294296begin
    295297  LineClipRect := FListBox.Canvas.ClipRect;
     
    317319  end;
    318320
    319   while Line <> '' do
     321  tmpColumns := TStringList.Create;
     322  StrExtractStrings(tmpColumns, Line, [#9], #0);
     323
     324  for i := 0 to tmpColumns.Count - 1 do
    320325  begin
    321     ItemToDraw := ExtractNextValue( Line,
    322                                    #9 );
     326    ItemToDraw := tmpColumns[i];
    323327    if ColumnIndex < FHeader.Sections.Count then
    324328      ColumnWidth := FHeader.Sections[ ColumnIndex ].Width
     
    349353        end
    350354        else
     355        begin
     356          tmpColumns.Destroy;
    351357          raise Exception.Create( 'Bitmap index out of range in MultiColumnListBox' )
     358        end
    352359      else
     360      begin
     361        tmpColumns.Destroy;
    353362        raise Exception.Create( 'No imagelist assigned in MultiColumnListBox' );
    354 
     363      end
    355364    end
    356365    else
     
    362371    inc( ColumnIndex );
    363372  end;
     373  tmpColumns.Destroy;
    364374end;
    365375
Note: See TracChangeset for help on using the changeset viewer.