Search found 7262 matches

by Sergey Tkachenko
Tue Dec 05, 2017 9:46 am
Forum: Examples, Demos
Topic: Chat with speech balloons
Replies: 1
Views: 72

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 57 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: 72

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

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

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

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

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

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

Re: Need advice from Team_RichView

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

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

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

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

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, ...
by Sergey Tkachenko
Thu Nov 30, 2017 9:42 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 222

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

LoadFromFile always erases all content before loading.
AppendHtmlViewer never erases.
by Sergey Tkachenko
Thu Nov 30, 2017 9:37 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 222

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

Make HTMLViewer and SRichViewEdit visible. Is the text corrupted in HtmlViewer? If the text corrupted in SRichViewEdit?
And I do not understand, why do you call LoadFromClipboard?
by Sergey Tkachenko
Wed Nov 29, 2017 2:58 pm
Forum: Examples, Demos
Topic: [Demo] HTML to RTF demo
Replies: 0
Views: 45

[Demo] HTML to RTF demo

This demo shows how to convert HTML to RTF using TRichView and HTMLViewer