Search found 9409 matches

by Sergey Tkachenko
Thu Feb 07, 2008 6:39 pm
Forum: ScaleRichView
Topic: <CTRL-Z> falls off end of list and generates errors
Replies: 5
Views: 21028

Please wait for the next update, it must fix this problem
by Sergey Tkachenko
Thu Feb 07, 2008 6:35 pm
Forum: Support
Topic: How to protect paragraph against deletion?
Replies: 13
Views: 26865

rvprModifyProtect does not allow editing text, so probably you should remove it.
rvprDeleteProtect does not allow deleting item (at least one character must remain), so this is probably what you need.
Also consider using rvprParaStartProtect.
by Sergey Tkachenko
Thu Feb 07, 2008 2:53 pm
Forum: Support
Topic: Adding additional formatting when inserting RVF from stream
Replies: 3
Views: 12297

No, there is only way: loading in offscreen TRichView and modifying paragraph properties. It is quite simple. But you need to decide what to do with list markers that can be in the document. Or what if it is started from table or break (they cannot be markered)
by Sergey Tkachenko
Thu Feb 07, 2008 11:43 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 15912

Try changing TCustomRVPrint.DrawPreview to: procedure TCustomRVPrint.DrawPreview(pgNo: Integer; Canvas: TCanvas; const PageRect: TRect); var OldMapMode, OldPPI: Integer; OldWindowExt, OldViewportExt: TSize; OldViewportOrg: TPoint; begin OldMapMode := GetMapMode(Canvas.Handle); SetMapMode(Canvas.Hand...
by Sergey Tkachenko
Tue Feb 05, 2008 3:11 pm
Forum: Support
Topic: Table Properties Dialog - Where is it?
Replies: 2
Views: 8479

ItemPropRVFrm unit. Open this unit when RichViewActions package is an active project, otherwise you'll need to open other units (containing ancestor forms) before it.
by Sergey Tkachenko
Tue Feb 05, 2008 12:27 pm
Forum: Support
Topic: Editor initialization at app. start up time
Replies: 2
Views: 8592

If you use RichViewActions, call
rvActionNew1.ExecuteTarget(RVE);
when the application starts (in Form.OnCreate)
by Sergey Tkachenko
Tue Feb 05, 2008 11:35 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 15912

Preview100PercentWidth/Height just perform some calculations, they should not affect coordinates.
What is DrawTransparentPreview?
by Sergey Tkachenko
Tue Feb 05, 2008 11:33 am
Forum: Support
Topic: List index out of bounds when deleting cell text
Replies: 2
Views: 11271

AppendRVFFromStream may produce invalid documents when used incorrectly.
You can call NormalizeRichView (RVNormalize.pas, included in RichViewActions) after this operation but before formatting TRichView containing this cell. This procedure will fix errors in the document.
by Sergey Tkachenko
Tue Feb 05, 2008 11:28 am
Forum: Support
Topic: richviewactions, TRichView
Replies: 1
Views: 7309

First, turn of autocompletion:
cmbFont.AutoComplete := False;

In RichViewEdit1.OnCurTextStyleChanged, assign the current text style to cmbFont.Text.
In cmbFont.OnClick, apply the chosen font (using rvActionFontEx).

You can see how it is implemented in the ActionTest demo.
by Sergey Tkachenko
Mon Feb 04, 2008 4:03 pm
Forum: Support
Topic: How to enable action shortcut
Replies: 2
Views: 9497

When actions are placed on the form, shortcuts work even if they are not assigned to any menu item or button
(I just checked in D6)
by Sergey Tkachenko
Sun Feb 03, 2008 6:11 pm
Forum: ScaleRichView
Topic: srve + embedded hyperlinks not rendering to PDF
Replies: 3
Views: 17721

In PDF, you can define some rectangular areas as hyperlinks (LLPDFLib: pdf.Page .SetUrl method). When exporting to PDF using TRVReportHelper, you can use TRVReportHelper.OnDrawHyperlink event. Unfortunately, this feature is not implemented in ScaleRichView yet (will be implemented in one of next upd...
by Sergey Tkachenko
Sun Feb 03, 2008 6:06 pm
Forum: ScaleRichView
Topic: more RVAction Hyperlink questions
Replies: 11
Views: 36349

This dialog is included in RichViewActions (HypRVFrm.pas). You can use your own dialog instead of it, use rvActionInsertHyperlink.OnHyperlinkForm event.

You can use OnItemHint event to display hints when mouse is above some item.
CTRL key is used by default.
by Sergey Tkachenko
Sun Feb 03, 2008 5:26 pm
Forum: Support
Topic: Finding a StyleNo
Replies: 1
Views: 8048

Code: Select all

Result := RVStyle1.TextStyles.FindStyleWithFont(Edit1.Font);
if Result<0 then begin
  RVStyle1.TextStyles.Add;
  Result := RVStyle1.TextStyles.Count-1;
  RVStyle1.TextStyles[Result].Assign(Edit1.Font);
  RVStyle1.TextStyles[Result].Standard := False;
end;
by Sergey Tkachenko
Sun Feb 03, 2008 5:13 pm
Forum: Support
Topic: rveTable.Cells[r,c].BestWidth
Replies: 1
Views: 7965

1. Widths of table columns are calculated taking into account both BestWidth properties and cells contents. If you want to use only BestWidth, ignoring content, include rvtoIgnoreContentWidth in table.Options. 2. Any number of RichViews can use one RVStyle component. But in this case you need to und...
by Sergey Tkachenko
Sun Feb 03, 2008 4:48 pm
Forum: Support
Topic: Insert gif-image(animated) into TRichViewEdit from stream
Replies: 5
Views: 15794

Please send me a simple project to reproduce