For example, say I have 6 words, arranged like this:
Word1 Word2 Word3 Word4
Word5 Word6
If I select Word5 and apply a style change, the text shifts like this after the style is applied:
Word1 Word2 Word3
Word4 Word5 Word6
The problem seems to depend on how close Word4 is to the right margin.
I can cause the problem using this code:
Code: Select all
With RVStyle1 do
begin
TextStyles[1].Assign(TextStyles[0]);
TextStyles[1].Color := clBlue;
end;
ApplyTextStyle(1);
Is there a way to prevent this ?
Thanks