Search found 9411 matches

by Sergey Tkachenko
Wed Aug 31, 2005 6:03 am
Forum: Support
Topic: No background at print, please!
Replies: 1
Views: 15551

RVPrint.TransparentBackground affects only the background color.
To remove the bitmap, call
RVPrint.rv.BackgroundBitmap := nil
after calling AssignSource.
by Sergey Tkachenko
Tue Aug 30, 2005 8:25 pm
Forum: Support
Topic: incorrect adding to undo list (continued)
Replies: 5
Views: 26270

If this problem can be reproduced, I think the simplest way to find the bug is logging a sequence of undo operations - when they were added, grouped, executed. I'll add this log feature in the next update (I'll try to upload it tomorrow)
by Sergey Tkachenko
Tue Aug 30, 2005 3:34 pm
Forum: Support
Topic: Relative hyperlinks
Replies: 9
Views: 43115

Well, really, on RTF import, TRichView adds the file path to relative links. In the next update for registered users (I hope to upload it today) I'll add a new property TRichView.RTFReadProperties.BasePathLinks: Boolean. It will work like the corresponding option of RVHtmlImporter - when set to Fals...
by Sergey Tkachenko
Tue Aug 30, 2005 1:05 pm
Forum: Support
Topic: Headers ans BCB6
Replies: 4
Views: 23346

TRVColorMode type is defined in the Rvstyle unit.
Probably the problem is again with the headers.
by Sergey Tkachenko
Tue Aug 30, 2005 1:02 pm
Forum: Examples, Demos
Topic: [How to] How to make plain text editor
Replies: 3
Views: 61015

[How to] How to make plain text editor

:?: How to make a plain text editor based on TRichViewEdit Exclude all but text from AcceptDragDropFormats property Process OnPaste event (see below) Disable all UI commands changing text and paragraph attributes procedure TForm1.rvePaste(Sender: TCustomRichViewEdit; var DoDefault: Boolean); var s: ...
by Sergey Tkachenko
Tue Aug 30, 2005 12:38 pm
Forum: Support
Topic: RVXML problem
Replies: 4
Views: 24705

DocRoot is taken from the XML tree:

MainRoot.Items.AddTag('document1', T.Items[0], T);
DocRoot := MainRoot.Items[MainRoot.Items.Count-1];
by Sergey Tkachenko
Tue Aug 30, 2005 11:35 am
Forum: Support
Topic: Headers ans BCB6
Replies: 4
Views: 23346

No, it's not normal, SetHeader() is a public method of TRVPrint, and it must be in PtblRV.hpp. I checked the header included in the trial version, it's there: void __fastcall SetHeader(Crvfdata::TCustomRVFormattedData* RVData); May be you have duplicated HPP files (HPP files of older version of TRic...
by Sergey Tkachenko
Tue Aug 30, 2005 11:30 am
Forum: Support
Topic: Relative hyperlinks
Replies: 9
Views: 43115

Which format do you use to store files? When saving to RVF, tags (where hyperlinks are stored) are not modified.
If you save to HTML and use RvHtmlImporter to read them, it has Options for full/relative paths.
by Sergey Tkachenko
Tue Aug 30, 2005 11:26 am
Forum: Support
Topic: old newsgroup archive ??
Replies: 4
Views: 25355

Good, please do not delete them :)
by Sergey Tkachenko
Mon Aug 29, 2005 5:49 pm
Forum: Support
Topic: RVXML problem
Replies: 4
Views: 24705

I am not sure that TXMLTag can be used outside of TRVXML. Some time ago I made an example how to save 2 richviews in one XML, may be it can be useful uses RichViewXML, RVXMLBase; RichView1, RichView2 - trichviews to load/save. RichViewXML1 - trichviewxml. This example saves and loads two documents i...
by Sergey Tkachenko
Mon Aug 29, 2005 4:20 pm
Forum: Support
Topic: old newsgroup archive ??
Replies: 4
Views: 25355

Unfortunately, I was not able to contact the newsgroup server owners for the quite a long time. I still do not know the status of this archive. I still hope it's not damaged when of the server was crashed. In the worst case, I have copies of all my answers to the newsgroup. In the best case, newsgro...
by Sergey Tkachenko
Sun Aug 28, 2005 11:46 am
Forum: Support
Topic: New support forums. Please read.
Replies: 23
Views: 114892

May be I'll install a mod for this forum allowing to attach files, or open a limited ftp access for registered users.
by Sergey Tkachenko
Sun Aug 28, 2005 11:43 am
Forum: Examples, Demos
Topic: [Examples] Count of characters and words
Replies: 37
Views: 237221

Calculating a number of words You can use a class from RVWordEnum.pas Create a class TWordCounter = class(TRVWordEnumerator) private FCounter: Integer; protected function ProcessWord: Boolean; override; public function GetWordCount(rve: TCustomRichViewEdit): Integer; end; function TWordCounter.Proc...
by Sergey Tkachenko
Sun Aug 28, 2005 11:42 am
Forum: Examples, Demos
Topic: [Examples] Count of characters and words
Replies: 37
Views: 237221

[Examples] Count of characters and words

Calculating a number of characters uses CRVData; function GetCharCount(RVData: TCustomRVData): Integer; var i,r,c: Integer; table: TRVTableItemInfo; begin Result := 0; for i := 0 to RVData.Items.Count-1 do if RVData.GetItemStyle(i)>=0 then begin // this is a text item inc(Result, RVData.GetItemText...
by Sergey Tkachenko
Sun Aug 28, 2005 11:40 am
Forum: Examples, Demos
Topic: [Example] Loading UTF-8 files
Replies: 0
Views: 31056

[Example] Loading UTF-8 files

Very simple example - how to load Unicode UTF-8 file: procedure LoadUTF8(rv: TCustomRichView; const FileName: String; StyleNo, ParaNo: Integer); var Stream: TFileStream; s: TRVRawByteString; ws: TRVUnicodeString; begin Stream := TFileStream.Create(FileName, fmOpenRead); SetLength(s, Stream.Size); St...