Search found 7265 matches

by Sergey Tkachenko
Tue Dec 12, 2017 12:28 pm
Forum: RVMedia
Topic: Мессенджер через Интернет.
Replies: 10
Views: 273

Re: Мессенджер через Интернет.

Во-первых, нужно включить в CmdOptions сервера rvcpUseSystemCmd и rvcpUseSystemCmdAllOnline.
Во-вторых, юзерами онлайн считаются те, кто вызвал HelloToAllowedSenders. Ее нужно вызвать перед получением списка.
by Sergey Tkachenko
Tue Dec 12, 2017 12:13 pm
Forum: Support
Topic: Setting <a> target for hyperlinks
Replies: 1
Views: 23

Re: Setting <a> target for hyperlinks

Yes, you can customize links before saving to HTML using OnWriteHyperlink event, see http://www.trichview.com/help/idh_trichview_onwritehyperlink.html As for "target" vs "URL". "Target" is more common word, it can include URLs, bookmarks/anchors/checkpoint, local files, or application-specific targe...
by Sergey Tkachenko
Tue Dec 05, 2017 9:46 am
Forum: Examples, Demos
Topic: Chat with speech balloons
Replies: 1
Views: 80

Re: Chat with speech balloons

And here is a modified version of this demo:
callouts-ex.zip
(104.81 KiB) Downloaded 7 times
It draws speech bubbles around the message text.
speech-bubbles-ex.png
speech-bubbles-ex.png (85.13 KiB) Viewed 65 times
Unlike the original project, this demo uses some undocumented methods.
by Sergey Tkachenko
Mon Dec 04, 2017 3:07 pm
Forum: Examples, Demos
Topic: Chat with speech balloons
Replies: 1
Views: 80

Chat with speech balloons

A new demo is included in TRichView 17.2. It is in <TRichView Dir>\TRichView\Demos\Assorted\CustomDraw\Callouts\ This demo uses a custom drawing event to draw speech balloons. Each message is a table having 1 row and 2 columns. balloons.png Avatars are "shared images" - only one copy of each avatar ...
by Sergey Tkachenko
Mon Dec 04, 2017 2:57 pm
Forum: Announcements
Topic: TRichView 17, RichViewActions 7, ScaleRichView 8
Replies: 13
Views: 1067

TRichView 17.2

One more minor update: TRichView 17.2. It adds OnDrawBackground event to table. This even allows custom drawing of backgrounds of tables and cells. A new demo is added in <TRichView Dir>\TRichView\Demos\Assorted\CustomDraw\Callouts\ This demos uses table.OnDrawBackground to draw speech balloons. bal...
by Sergey Tkachenko
Mon Dec 04, 2017 10:33 am
Forum: Examples, Demos
Topic: [Demo] Making PDF using Synopse PDF Engine
Replies: 8
Views: 14298

Re: [Demo] Making PDF using Synopse PDF Engine

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, displays preview before...
by Sergey Tkachenko
Mon Dec 04, 2017 9:25 am
Forum: Examples, Demos
Topic: [Demo] Advanced RTF to PDF demo using LLPDFLib (open source)
Replies: 10
Views: 58514

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

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, displays preview before...
by Sergey Tkachenko
Mon Dec 04, 2017 9:20 am
Forum: Examples, Demos
Topic: PDF export demos
Replies: 0
Views: 37

PDF export demos

Demo projects allowing to export TRichView to PDF (converting RTF and RVF files to PDF) were added in TRichView setup. They can be found in <TRichView Dir>\ThirdParty\Export folder. There are 3 projects, using different third-party PDF libraries: - LLPDFLib - Synopse PDF Engine (SynPDF) - eDocEngine...
by Sergey Tkachenko
Sat Dec 02, 2017 1:02 pm
Forum: Support
Topic: Scroll selection to center after calling SearchText method
Replies: 2
Views: 115

Re: Scroll selection to center after calling SearchText method

You can implement it using undocumented methods: // searching for 'a' and centering the found line vertically var rve: TCustomRichViewEdit; ItemNo, Offs: Integer; begin RichViewEdit1.BeginUpdate; if RichViewEdit1.SearchText('a', [rvseoDown]) then begin rve := RichViewEdit1.TopLevelEditor; ItemNo := ...
by Sergey Tkachenko
Fri Dec 01, 2017 12:59 pm
Forum: Support
Topic: Need advice from Team_RichView
Replies: 4
Views: 163

Re: Need advice from Team_RichView

I attached a sample project converting hyperlinks to footnotes.
Before:
Links.png
Links.png (4.71 KiB) Viewed 116 times
After:
Footnotes.png
Footnotes.png (5.88 KiB) Viewed 116 times
by Sergey Tkachenko
Thu Nov 30, 2017 6:24 pm
Forum: RVMedia
Topic: Мессенджер через Интернет.
Replies: 10
Views: 273

Re: Мессенджер через Интернет.

Я прикладываю демку. Запускаете одну копию на компьютере с известным IP. Выбираете "I will wait for connection" и нажимаете на кнопку "Listen". Запускаете вторую копию на другом компьютере. Не важно, известен его IP или нет. "I will connect to remote client", вводите адрес первого компьютера в поле ...
by Sergey Tkachenko
Thu Nov 30, 2017 4:48 pm
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 258

Re: loading html to non-empty rve - possible?

Your original code saves HTML in UTF-8 encoding. But HTMLViewer does not understand that it is UTF-8, and loads it in another encoding, so text becomes corrupted. When we change encoding, HTML is saved in UTF-16 encoding. HTMLViewer detects it, and loads correctly. When you call HTMLViewer.LoadFromS...
by Sergey Tkachenko
Thu Nov 30, 2017 10:22 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 258

Re: loading html to non-empty rve - possible?

As you can see, the garbage is already in THTMLViewer. It does not detected that your HTML has UTF-8 encoding. Possible solutions 1) Specify UTF-8 encoding in HTML: LoadHTMLContent( '<head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></head>'+ '<b>Привет</b>'); 2) Adding UTF-8 b...
by Sergey Tkachenko
Thu Nov 30, 2017 9:48 am
Forum: Examples, Demos
Topic: [Demos] Mail Merge
Replies: 16
Views: 76932

Re: [Demos] Mail Merge

One more mail merging demo: http://www.trichview.com/support/files/mailmerge-coloredtext.zip Field codes: text in {}, for example {NAME}. Field values: multiline text, optionally with the specified color. Unlike previous mailmerge-text demos, it uses RVInsertString function from RVInsertItems unit, ...