Search found 9411 matches

by Sergey Tkachenko
Tue May 20, 2008 6:46 pm
Forum: Support
Topic: Cursor movement
Replies: 10
Views: 24743

I just asked where do you want to move the caret.

You said, for example, to the position 80 on the line. It is possible, but not very trivial. But there may be simpler methods, I can try to help if you tell me what do you want to implement.
by Sergey Tkachenko
Tue May 20, 2008 5:52 pm
Forum: Support
Topic: Cursor movement
Replies: 10
Views: 24743

How do you want to define the position where to move the caret?
by Sergey Tkachenko
Tue May 20, 2008 5:21 pm
Forum: Support
Topic: "file:///" type urls don't work
Replies: 1
Views: 10265

First, check that the hyperlink is really correct. Visible text for the hyperlink may be different from its target. I can add this code in TrvActionInsertHyperlink.GoToLink in RichViewActions.pas, before calling ShellExecute: if AnsiLowerCase(Copy(URL, 1, 8))='file:///' then URL := Copy(URL, 9, Leng...
by Sergey Tkachenko
Tue May 20, 2008 4:47 pm
Forum: Support
Topic: Replace text part of RichViewEdit1 by text part of RichViewE
Replies: 3
Views: 9819

Sorry, what do you mean by replacing text part? If you want to copy document as a plain text (without all text and paragraph attributes, images, tables, etc.) use this code: var Stream: TStringStream; begin Stream := TStringStream.Create(''); RichViewEdit1.SaveTextToStream('', Stream, 80, False, Fal...
by Sergey Tkachenko
Tue May 20, 2008 12:02 pm
Forum: Support
Topic: Printing Problem with tables!
Replies: 47
Views: 142132

Yes, it does.
I opened access to the member section for your account.
by Sergey Tkachenko
Sat May 17, 2008 4:49 pm
Forum: Support
Topic: rve.GetItemCoords identifies 1st line of multline Paragraph
Replies: 4
Views: 12108

Units DLines and CRVFData must still be added in "uses" of the unit where these functions are defined, otherwise the compiler will report error on lines with .Item2DrawItem and .Top. There is nothing wrong with using these units, they are already used by trichview code. Without the line rv...
by Sergey Tkachenko
Sat May 17, 2008 1:27 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19741

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

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

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

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

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

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

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

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

[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...