Search found 9405 matches

by Sergey Tkachenko
Sat May 17, 2008 1:27 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19722

Well, if you need I can post code for for fast splitting text item (not as an editing operation).

But all stored positions become invalid after editing...
by Sergey Tkachenko
Sat May 17, 2008 12:14 pm
Forum: Support
Topic: rve.GetItemCoords identifies 1st line of multline Paragraph
Replies: 4
Views: 12105

uses CRVFData, DLines; procedure GetCaretY(rve: TCustomRichViewEdit): Integer; var DItemNo, DItemOffs, X, Y: Integer; begin rve := rve.TopLevelEditor; rve.RVData.Item2DrawItem(rve.CurItemNo, rve.OffsetInCurItem, DItemNo, DItemOffs); rve.RVData.GetOriginEx(X, Y); Result := rve.RVData.DrawItems[DItemN...
by Sergey Tkachenko
Sat May 17, 2008 12:09 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19722

The method InsertCheckpoint inserts the checkpoint at the caret position. If it is in the middle of the item, the item will be splitted.

The methods GetFirstCheckpoint and GetNextCheckpoint allow to enumerate checkpoints without enumerating all items. But they ignore checkpoints in table cells.
by Sergey Tkachenko
Sat May 17, 2008 11:04 am
Forum: Support
Topic: www.trichview.com can not be visited from China. why ?
Replies: 2
Views: 8361

The site moving procedure is started. After transferring is complete (1-2 days), I believe the site will be available in China.
by Sergey Tkachenko
Sat May 17, 2008 10:46 am
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19722

May be it makes sense to mark these places with Checkpoints?
by Sergey Tkachenko
Sat May 17, 2008 10:44 am
Forum: Support
Topic: "#13#10" or (only) "#13"
Replies: 1
Views: 7435

First, in trichview itself, these characters are not stored. They are converted to internal flag "this item starts a paragraph". As for using them in methods like InsertText or AddTextNL, it does not matter. TRichView understands line breaks defined as #13, or as #10, or as #13#10, or as #...
by Sergey Tkachenko
Thu May 15, 2008 6:50 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19722

How do you fill this listbox initially? Do each paragraph in ScaleRichView correspond to one listbox item, or how?
by Sergey Tkachenko
Thu May 15, 2008 6:48 pm
Forum: Support
Topic: How to Insert CR LF when writing to TRichView
Replies: 1
Views: 8451

RichViewEditIn.InsertText('This is line 1'#13'This is line 2', False);
by Sergey Tkachenko
Thu May 15, 2008 1:45 pm
Forum: Examples, Demos
Topic: [Demo] Advanced RTF to PDF demo using LLPDFLib (open source)
Replies: 10
Views: 112482

[Demo] Advanced RTF to PDF demo using LLPDFLib (open source)

Update 2017-Dec-4 ] TRichView setup now includes better version of this demo in <TRichViewDir>\ThirdParty\Export\LLPDFLib\Demos\RV2PDF\ folder. This better version reads all page properties from source RTF (or RVF) files and applies them to PDF, supports headers, footers, footnotes and endnotes, di...
by Sergey Tkachenko
Wed May 14, 2008 3:19 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 23495

I do not understand the first questions. All these lines (header, item text, image class, etc.) represents one item in RVF. The link for detailed RVF specification is http://www.trichview.com/help/index.html?rvf_specification.html If you use TMemoryStream, you can access data as Stream.Memory. The c...
by Sergey Tkachenko
Tue May 13, 2008 8:28 pm
Forum: ScaleRichView
Topic: Speed problem - at the table search - replace operation
Replies: 1
Views: 12917

You can do field replacement much faster without SearchText method.
See http://www.trichview.com/forums/viewtopic.php?t=8 , it had example with fields defined by {} characters.
by Sergey Tkachenko
Tue May 13, 2008 3:28 pm
Forum: Support
Topic: cursor is hidden after using rve.scrollTo
Replies: 4
Views: 12580

Do you want to move caret to the specified Y position?

Code: Select all

var RVData:TCustomRVFormattedData;
  ItemNo, OffsetInItem: Integer;

rv.GetItemAt(0, Y, RVData, ItemNo, OffsetInItem, False);
RVData := TCustomRVFormattedData(RVData.Edit);
RVData.SetSelectionBounds(ItemNo, OffsetInItem, ItemNo, OffsetInItem);
by Sergey Tkachenko
Tue May 13, 2008 2:50 pm
Forum: Support
Topic: RvHtmlImporter v0.0027 bugs
Replies: 27
Views: 57308

I cannot reproduce this problem with spaces. Please send me this HTML file to [email protected]
by Sergey Tkachenko
Tue May 13, 2008 2:46 pm
Forum: Support
Topic: gif animation
Replies: 1
Views: 9547

It's very simple. 1) Set RichView1.AnimationMode := rvaniOnFormat. 2) Include the unit RVGifAnimate2007 in your project. 3) Call RegisterClass(TGifImage) one time, before the first loading. Now you can insert gif animations like any other graphic in TRichView, using TGifImage class (from GifImg unit...
by Sergey Tkachenko
Tue May 13, 2008 2:39 pm
Forum: Support
Topic: cursor is hidden after using rve.scrollTo
Replies: 4
Views: 12580

ScrollTo just scrolls the editor's window to the specified scrollbar position.
The caret is still in the same location as before, and if this is location becomes invisible, the caret becomes invisible too.

You need to deside what do you want to change - the caret location of vertical position.