Search found 9406 matches

by Sergey Tkachenko
Thu Feb 07, 2008 11:43 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 15897

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: 8474

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: 8586

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: 15897

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: 11265

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: 7307

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: 9491

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: 17712

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: 36335

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: 8042

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: 7963

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: 15783

Please send me a simple project to reproduce
by Sergey Tkachenko
Sun Feb 03, 2008 4:45 pm
Forum: Support
Topic: rvActionSaveAs1 - Filename?
Replies: 1
Views: 7286

The best way is to use rvActionSave.OnDocumentFileChange event, and store FileName.
This event occurs when the opened file name is changed (by New, Open and SaveAs commands)
by Sergey Tkachenko
Sun Feb 03, 2008 4:41 pm
Forum: Support
Topic: Save and load document(TRicViewEdit)
Replies: 1
Views: 6974

Please send me a simple project to reproduce.
by Sergey Tkachenko
Sun Feb 03, 2008 4:38 pm
Forum: Support
Topic: Selected text
Replies: 1
Views: 7475

1. See the help file, the topic "Selecting Part of RichView Document". Selected text may have several different fonts. Of course, you can enumerate all selected text items and find common properties, but I suggest simply to use attributes of text at the position of caret, like RichViewActi...