ApplyStyleConversion Question

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

ApplyStyleConversion Question

Post by DavidRM »

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
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

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;
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post by DavidRM »

I found the problem. My external TRVE had the rvoClientTextWidth option set.

Thanks.

-David
Post Reply