I'm using SRVE with an external TRVE. I'm not using RVActions.
When I apply a style using ApplyStyleConversion that would change the layout for an item (say, by making the font size 1 bigger), the right margin is getting messed up. The text wraps at the edge of the page, not at the right margin.
Is there some SRVE call I should make when adding a new text or paragraph style that would address this?
Thanks.
-David
ApplyStyleConversion Question
Write an example how you do it? For example, it is a code at me does not cause this problem:
Code: Select all
procedure TFExternalRV.Button2Click(Sender: TObject);
begin
SRichViewEdit1.RichViewEdit.ApplyStyleConversion(1);
SRichViewEdit1.Format;
end;
procedure TFExternalRV.SRichViewEdit1StyleConversion(
Sender: TSRichViewEdit; StyleNo, UserData: Integer;
AppliedToText: Boolean; var NewStyleNo: Integer);
begin
SRichViewEdit1.RichViewEdit.Style.TextStyles.Items[StyleNo].Size := 14;
end;