Search found 7775 matches

by Sergey Tkachenko
Sun Sep 22, 2019 9:09 am
Forum: Support
Topic: Vertical scroll position in TRichView
Replies: 1
Views: 38

Re: Vertical scroll position in TRichView

OnVScrolled event, check VScrollPos property (it is in range 0...VScrollMax)
by Sergey Tkachenko
Fri Sep 20, 2019 8:50 am
Forum: Support
Topic: Support for DevExpresss VCL v19.1.2
Replies: 4
Views: 206

Re: Support for DevExpresss VCL v19.1.2

Yes, the change is in this place. DevExpress removed "DELPHI6" define from their INC file, so "Variants" is not included in "uses", but it is necessary to compile. So I suggested to replace it with the define from TRichView's INC file, RICHVIEWDEF6. If it does not help, open the package in RAD Studi...
by Sergey Tkachenko
Wed Sep 18, 2019 7:11 pm
Forum: Support
Topic: Support for DevExpresss VCL v19.1.2
Replies: 4
Views: 206

Re: Support for DevExpresss VCL v19.1.2

In <TRichView Dir>\ThirdParty\DevExpress\Source\cxTRichView.pas, change the line
{$IFDEF DELPHI6}
to
{$IFDEF RICHVIEWDEF6}
Save this unit.
Run "Install TRichView in Delphi IDE" shortcut in Windows Start menu.
by Sergey Tkachenko
Sat Sep 14, 2019 12:46 pm
Forum: Support
Topic: Word Insert at Cursor
Replies: 2
Views: 214

Re: Word Insert at Cursor

The code looks correct. With the obvious exception: GetAlignedParaNo/GetColoredTextStyleNo require the second parameter (Alignment/Color). If you want to insert in the caret position, use SRichViewEdit1.ActiveEditor instead of SRichViewEdit1.RichViewEdit, like in the last example (because the caret ...
by Sergey Tkachenko
Thu Sep 12, 2019 6:19 pm
Forum: Support
Topic: Issue with table cell borders
Replies: 3
Views: 427

Re: Issue with table cell borders

I fixed it in my working version.
The fix will be included in the next update (I hope it will be released in the next week)
by Sergey Tkachenko
Wed Sep 11, 2019 6:19 am
Forum: Support
Topic: Issue with table cell borders
Replies: 3
Views: 427

Re: Issue with table cell borders

I need some time to check this problem and see if it can be solved. In RTF tables, each cell may have completely different border at each side. In TRichView, all cells have identical borders (but some sides can be hidden). When importing RTF tables, outer borders are emulated by combination of cell ...
by Sergey Tkachenko
Sun Sep 08, 2019 10:59 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 837

Re: Update formatting in multiple editors with a single style

Loading and insertion methods process style templates differently. On loading, ST from RVF replace ST in TRichView. On insertion, ST are merged (according to StyleTemplateInsertMode property). If you need merging, use Clear;InsertRVFFromStream instead of LoadRVFromStream. -- IDs are used to refer to...
by Sergey Tkachenko
Fri Sep 06, 2019 10:07 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 837

Re: Update formatting in multiple editors with a single style

I think you can do the following. Load an old files in a separate TRichView. Save style templates from this TRichView's RVStyle in a temporal file (SaveToRVST) or a stream (as it was discussed). Then call InsertFromRVST(<name of this temporal file>) for RVStyle containing the common collection of st...
by Sergey Tkachenko
Wed Sep 04, 2019 7:22 pm
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 837

Re: Update formatting in multiple editors with a single style

RVST files (that contain StyleTemplates) are ini-files basically, so SaveToRVST and LoadFromRVST use TIniFile internally. There are several possibilities to store StyleTemplates to a stream. One of them is using TMemIniFile instead of TIniFile. You need to implement procedures - copies of SaveToRVST...
by Sergey Tkachenko
Wed Sep 04, 2019 9:00 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 837

Re: Update formatting in multiple editors with a single style

2) Another approach can be used if all RVStyles are linked to a main RVStyle, and only names of style templates are stored in RVF (include rvfoSaveStyleTemplatesOnlyNames in RVFOptions. When switching tabs from an editor, save its content to TMemoryStream (using SaveRVFToStream). When switching to a...
by Sergey Tkachenko
Wed Sep 04, 2019 8:53 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 837

Re: Update formatting in multiple editors with a single style

I can suggest two solutions. Let we have rve1 and rve2: TRichViewEdit. 1) All editors are linked to independent RVStyles, with their own collections of style templates. MainRVStyle is not assigned. You can synchronize style templates in all editors. For example, assign rve1's OnStyleTemplateChange e...
by Sergey Tkachenko
Tue Sep 03, 2019 4:39 pm
Forum: RVMedia
Topic: AXIS M5525-E
Replies: 3
Views: 389

Re: AXIS M5525-E

Can you open this camera for us for testing?
You can answer by a private message or to email richviewgmailcom.
by Sergey Tkachenko
Tue Sep 03, 2019 11:34 am
Forum: RVMedia
Topic: AXIS M5525-E
Replies: 3
Views: 389

Re: AXIS M5525-E

Does FFmpeg available for the application?
What version of RVMedia?
by Sergey Tkachenko
Sun Sep 01, 2019 7:27 am
Forum: Support
Topic: Is there a RichView->BeginUpdate ?
Replies: 1
Views: 446

Re: Is there a RichView->BeginUpdate ?

Add*** methods do not redraw document (moreover, redrawing after calling Add***methods but before formatting might crash the application). The obvious speed improvement is moving FormatTail() out of the cycle to the end of the method. You cannot just free inserted controls while they are in a docume...