Changeset 420 for trunk/Components/RichTextView.PAS
- Timestamp:
- Feb 28, 2019, 4:17:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/RichTextView.PAS
r418 r420 472 472 // ALT 473 473 Offset := FCursorOffset; 474 Move toCharacterBoundary( FText, SelectionStart, FCursorOffset, Offset, FLayout.Codepage );474 MoveToCharacterBoundary( FText, SelectionStart, FCursorOffset, Offset, FLayout.Codepage, false ); 475 475 476 476 FSelectionStart := SelectionStart; … … 493 493 // ALT 494 494 Offset := FCursorOffset; 495 Move toCharacterBoundary( FText, SelectionEnd, FCursorOffset, Offset, FLayout.Codepage );495 MoveToCharacterBoundary( FText, SelectionEnd, FCursorOffset, Offset, FLayout.Codepage, false ); 496 496 497 497 if FSelectionStart = -1 then … … 1230 1230 Descender: longint; 1231 1231 MaxDescender: longint; 1232 Index: longint; // ALT 1233 RowStart: longint; // ALT 1232 1234 begin 1233 1235 RemoveCursor; … … 1252 1254 // off top 1253 1255 exit; 1256 1257 // ALT - move to nearest character boundary 1258 Index := FLayout.GetCharIndex( Line.Text ) + FCursorOffset; 1259 RowStart := FLayout.GetCharIndex( Line.Text ); 1260 MoveToCharacterBoundary( FText, Index, FCursorOffset, RowStart, FLayout.Codepage, false ); 1254 1261 1255 1262 FLayout.GetXFromOffset( FCursorOffset, CursorRow, X ); … … 2035 2042 // InsideDBC: boolean; // ALT 2036 2043 RowStart: longint; // ALT 2044 MoveRight: boolean; // ALT 2037 2045 Index: longint; 2038 2046 begin … … 2067 2075 2068 2076 RowStart := FLayout.GetCharIndex( FLayout.FLines[ Row ].Text ); 2069 MoveToCharacterBoundary( FText, Index, Offset, RowStart, FLayout.Codepage ); // ALT 2077 2078 // ALT 2079 if Offset = ( FCursorOffset + 1 ) then 2080 MoveRight := true 2081 else 2082 MoveRight := false; 2083 MoveToCharacterBoundary( FText, Index, Offset, RowStart, FLayout.Codepage, MoveRight ); 2070 2084 2071 2085 FCursorOffset := Offset;
Note:
See TracChangeset
for help on using the changeset viewer.