Ignore:
Timestamp:
Jun 13, 2007, 8:33:51 PM (18 years ago)
Author:
RBRi
Message:

using StringUtilsUnit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/RichTextLayoutUnit.pas

    r15 r214  
    145145
    146146Uses
    147   SysUtils, PMWin, BseDos, Dos, ClipBrd, Printers,
    148   ACLUtility, ACLStringUtility, ACLString,
    149   ControlScrolling;
     147  SysUtils,
     148  PMWin,
     149  BseDos,
     150  Dos,
     151  ClipBrd,
     152  Printers,
     153  ACLUtility,
     154  ACLString,
     155  ControlScrolling,
     156  CharUtilsUnit;
    150157
    151158Function TRichTextLayout.GetTextEnd: longint;
     
    313320    inc( FHeight, CurrentLine.Height );
    314321
    315     CurrentLine.Length := PCharDiff( EndPoint, CurrentLine.Text );
     322    CurrentLine.Length := PCharPointerDiff( EndPoint, CurrentLine.Text );
    316323
    317324    CurrentLine.Width := EndX;
     
    771778        begin
    772779          // found
    773           Offset := PCharDiff( P, Line.Text );
     780          Offset := PCharPointerDiff( P, Line.Text );
    774781          Link := CurrentLink;
    775782          exit;
     
    10271034Function TRichTextLayout.GetCharIndex( P: PChar ): longint;
    10281035begin
    1029   Result := PCharDiff( P, FText );
     1036  Result := PCharPointerDiff( P, FText );
    10301037end;
    10311038
Note: See TracChangeset for help on using the changeset viewer.