Changeset 214 for trunk/Components/RichTextLayoutUnit.pas
- Timestamp:
- Jun 13, 2007, 8:33:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/RichTextLayoutUnit.pas
r15 r214 145 145 146 146 Uses 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; 150 157 151 158 Function TRichTextLayout.GetTextEnd: longint; … … 313 320 inc( FHeight, CurrentLine.Height ); 314 321 315 CurrentLine.Length := PChar Diff( EndPoint, CurrentLine.Text );322 CurrentLine.Length := PCharPointerDiff( EndPoint, CurrentLine.Text ); 316 323 317 324 CurrentLine.Width := EndX; … … 771 778 begin 772 779 // found 773 Offset := PChar Diff( P, Line.Text );780 Offset := PCharPointerDiff( P, Line.Text ); 774 781 Link := CurrentLink; 775 782 exit; … … 1027 1034 Function TRichTextLayout.GetCharIndex( P: PChar ): longint; 1028 1035 begin 1029 Result := PChar Diff( P, FText );1036 Result := PCharPointerDiff( P, FText ); 1030 1037 end; 1031 1038
Note:
See TracChangeset
for help on using the changeset viewer.