Search found 7662 matches

by Sergey Tkachenko
Tue Sep 06, 2005 8:45 pm
Forum: Examples, Demos
Topic: [Example] DeleteBlankLines, RemoveParagraphBreaks, etc.
Replies: 16
Views: 66726

[Example] DeleteBlankLines, RemoveParagraphBreaks, etc.

This code deletes all empty lines: procedure DeleteBlankLines(RVData: TCustomRVData); var i,r,c: Integer; table: TRVTableItemInfo; begin for i := RVData.ItemCount-1 downto 0 do if RVData.IsFromNewLine(i) and (RVData.GetItemStyle(i)>=0) and (RVData.GetItemText(i)='') and (RVData.ItemCount>1) and ((i ...
by Sergey Tkachenko
Tue Sep 06, 2005 8:00 pm
Forum: Support
Topic: Relative hyperlinks
Replies: 9
Views: 16139

Strange, which version number is displayed on TRichView controls at designtime? It should be 1.9.16
by Sergey Tkachenko
Tue Sep 06, 2005 5:49 pm
Forum: Examples, Demos
Topic: [Demo] Drawing RTF in metafile, including header and footer
Replies: 0
Views: 17025

[Demo] Drawing RTF in metafile, including header and footer

Update: this demo is removed from here, because it is included in viewtopic.php?t=327 (a4.zip)
by Sergey Tkachenko
Tue Sep 06, 2005 5:47 pm
Forum: Examples, Demos
Topic: [Example] Saving additional information in RTF files
Replies: 3
Views: 36547

[Example] Saving additional information in RTF files

Use OnSaveRTFExtra event: Saving margins procedure TForm3.RichViewEdit1SaveRTFExtra(Sender: TCustomRichView; Area: TRVRTFSaveArea; Obj: TObject; Index1, Index2: Integer; InStyleSheet: Boolean; var RTFCode: TRVUnicodeString); function MMToTwips(mm: Integer): Integer; begin Result := Round(mm*1440*5/1...
by Sergey Tkachenko
Tue Sep 06, 2005 5:40 pm
Forum: Examples, Demos
Topic: [Demo] Chat codes
Replies: 18
Views: 102645

[Demo] Chat codes

1. Simple demo http://www.trichview.com/support/files/chatcodes.zip This demo shows how to add text with some codes: \b - bold on/off \i - italic on/off \u - underline on/off \cRRGGBB - text color \kRRGGBB - text background color 2. Advanced demo with plain text input chatcodes2.zip https://www.tri...
by Sergey Tkachenko
Tue Sep 06, 2005 5:37 pm
Forum: Examples, Demos
Topic: [Demos] Expanding-collapsing
Replies: 7
Views: 56632

[Demos] Expanding-collapsing

This demo hides/shows certain paragraphs when user clicks hyperlinks http://www.trichview.com/support/files/collapsible.png http://www.trichview.com/support/files/collapsible/collapsible.zip Multilevel collapsible paragraphs In addition to collapsible.zip , we've created a new demo: http://www.tric...
by Sergey Tkachenko
Tue Sep 06, 2005 5:30 pm
Forum: Examples, Demos
Topic: Modifications of "CreateHyperlink" demo [obsolete]
Replies: 0
Views: 12036

Modifications of "CreateHyperlink" demo [obsolete]

This topic is deleted, because all described improvements are added in the main set of demos.
by Sergey Tkachenko
Tue Sep 06, 2005 5:26 pm
Forum: Examples, Demos
Topic: [Demo] Dual editor for translators
Replies: 7
Views: 23932

[Demo] Dual editor for translators

Demo: http://www.trichview.com/support/files/dualeditor.zip A helper for human translators. It has two editors - one for the original text and one for the translated text. This screenshot shows English text and its Russian translation: http://www.trichview.com/support/files/dualeditor.gif This demo ...
by Sergey Tkachenko
Tue Sep 06, 2005 5:23 pm
Forum: Examples, Demos
Topic: [RvXML] How to save several documents in one XML file
Replies: 10
Views: 43592

[RvXML] How to save several documents in one XML file

uses RichViewXML, RVXMLBase; RichView1, RichView2 - trichviews to load/save. RichViewXML1 - trichviewxml. This example saves and loads two documents in 'd:\1.xml' // Saving procedure TForm1.Button1Click(Sender: TObject); var T: TXMLTree; MainRoot, DocRoot: TXMLTag; begin T := TXMLTree.Create(RichVi...
by Sergey Tkachenko
Tue Sep 06, 2005 5:21 pm
Forum: Examples, Demos
Topic: [Demo] Printing images using OnPagePrepaint event
Replies: 0
Views: 13330

[Demo] Printing images using OnPagePrepaint event

http://www.trichview.com/support/files/crocoprint.zip

(2008-Dec-9: updated for compatibility with TRichView 11)
(2011-Apr-1: updated for compatibility with TRichView 13)
by Sergey Tkachenko
Tue Sep 06, 2005 5:18 pm
Forum: Examples, Demos
Topic: [Example] Modification of "Search and Mark" demo
Replies: 16
Views: 113528

[Example] Modification of "Search and Mark" demo

"Search & Mark" - the last subdemo of the demo located in Demos\Delphi\Multidemo\. It searches for the given word in text and marks all its occurences by applying the specified text style: rve.SetSelectionBounds(0,rve.GetOffsBeforeItem(0), 0, rve.GetOffsBeforeItem(0)); while rve.SearchText(txt.Text,...
by Sergey Tkachenko
Tue Sep 06, 2005 1:33 pm
Forum: Support
Topic: Error on SaveText
Replies: 2
Views: 8346

This error occurs if a string that is supposed to contain Unicode text does not contain it. It is a result of incorrect document generation. Check - may be you use AddNL or SetItemText to add/modify text of Unicode style. It will lead to the corrupted document. Use AddNLATag (or AddNLWTag) and SetIt...
by Sergey Tkachenko
Tue Sep 06, 2005 1:29 pm
Forum: Support
Topic: Printing of labels
Replies: 1
Views: 7449

Actually, the possibility of printing several documents on one page already exists (but not documented): Printer.BeginDoc; RVPrint.StartAt := 0; RVPrint.TransparentBackground := True; RVPrint.AssignSource(RichView1); RVPrint.FormatPages(rvdoALL); RVPrint.ContinuousPrint; RVPrint.StartAt := RVPrint.E...
by Sergey Tkachenko
Tue Sep 06, 2005 10:29 am
Forum: Support
Topic: Problem positioning bullets
Replies: 1
Views: 7125

There were no known problems related to the bullet positioning. Please note that for bulleted paragraphs, LeftIndent and FirstIndent properties of paragraph style are ignored, and corresponding properties of list level are used. To set the position of the bullet itself, use MarkerIndent property of ...
by Sergey Tkachenko
Mon Sep 05, 2005 2:51 pm
Forum: Support
Topic: Getting Name of HotPicture!
Replies: 3
Views: 9484

RVData.GetItemTextA(ItemNo)