Changeset 395 for trunk/Components/RichTextView.PAS
- Timestamp:
- May 22, 2016, 12:17:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/RichTextView.PAS
r39 r395 428 428 429 429 Uses 430 SysUtils, PMWin, BseDos, Dos, ClipBrd, Printers, 431 ACLStringUtility, ACLString, 432 ControlScrolling, ControlsUtility, 433 RichTextDocumentUnit, RichTextDisplayUnit; 430 SysUtils, 431 PMWin, 432 BseDos, 433 Dos, 434 ClipBrd, 435 Printers, 436 ACLString, 437 ControlScrolling, 438 ControlsUtility, 439 RichTextDocumentUnit, 440 RichTextDisplayUnit, 441 442 CharUtilsUnit; 434 443 435 444 Procedure TRichTextView.SetSelectionStart( SelectionStart: longint ); … … 2050 2059 // SetCursorIndex( GetCharIndex( P ), PreserveSelection ); 2051 2060 Line := FLayout.FLines[ CursorRow ]; 2052 NewOffset := PChar Diff( P, Line.Text );2061 NewOffset := PCharPointerDiff( P, Line.Text ); 2053 2062 if NewOffset < Line.Length then 2054 2063 begin … … 2090 2099 // exit; 2091 2100 Line := FLayout.FLines[ CursorRow ]; 2092 NewOffset := PChar Diff( P, Line.Text );2101 NewOffset := PCharPointerDiff( P, Line.Text ); 2093 2102 if NewOffset >= 0 then 2094 2103 begin … … 2255 2264 255 ); 2256 2265 2257 Result := Str NPas( Buffer, Length );2266 Result := StrPasWithLength( Buffer, Length ); 2258 2267 end; 2259 2268
Note:
See TracChangeset
for help on using the changeset viewer.