Search found 9445 matches

by Sergey Tkachenko
Sun Nov 12, 2006 1:31 pm
Forum: Support
Topic: How do I place the cursor on a defined position?
Replies: 4
Views: 15172

Yes, document should be reformatted after changing "show special characters" mode. Showing/hiding spaces and paragraph marks does require reformatting, but showing/hiding some Unicode characters (such as soft hyphens) requires reformatting.

Call RichViewEdit.Reformat.
by Sergey Tkachenko
Sun Nov 12, 2006 9:43 am
Forum: Support
Topic: Highlight and delete Fields?
Replies: 2
Views: 11555

Sorry, I am not sure that I understand the question.
1) What code is in this button's OnClick
2) Please give me examples of document text:
a) text what you want
b) text what appears
by Sergey Tkachenko
Sun Nov 12, 2006 9:38 am
Forum: Support
Topic: RTF Code Optimization
Replies: 15
Views: 38658

This problem was easy to fix. In CRVData.pas, in TCustomRVData.SaveRTFToStream, the following code if (Level=0) and (StartItem<>EndItem) and IsParaStart(EndItem) and (GetItemStyle(EndItem)>=0) and (Items[EndItem]='') then RVFWrite(Stream, '\par'); was changed to: if (Level=0) then RVFWrite(Stream, '...
by Sergey Tkachenko
Sun Nov 12, 2006 9:34 am
Forum: Support
Topic: How do I place the cursor on a defined position?
Replies: 4
Views: 15172

Format does not store the caret position, because Format is usually called when document is not formatted, so the caret position is undefined before its call.
If document is already formatted, why do you can Format? :)
by Sergey Tkachenko
Fri Nov 10, 2006 10:43 pm
Forum: Support
Topic: Printing isn't correct on every printers
Replies: 61
Views: 169748

please send me a screenshot and the stored report file
by Sergey Tkachenko
Fri Nov 10, 2006 10:41 pm
Forum: Support
Topic: selecting text in document by text offsets
Replies: 2
Views: 13162

Use RVGetTextRange(rv, 0, RVGetTextLength(rv)) from RVLinear.pas
by Sergey Tkachenko
Fri Nov 10, 2006 10:37 pm
Forum: Support
Topic: RTF Code Optimization
Replies: 15
Views: 38658

Did you mention other problems, except for the ending \par?
by Sergey Tkachenko
Fri Nov 10, 2006 10:35 pm
Forum: Examples, Demos
Topic: [Demo] Sending HTML email. Saving MIME-encoded files.
Replies: 40
Views: 3310093

What version of TRichView and Delphi?

Please compile the demo with stack frames and without optimization (Compiler tab in the project options).
Run the demo. Which line of TRichView (or the demo (probably the problem is in event)) code generates the error?
by Sergey Tkachenko
Fri Nov 10, 2006 10:29 pm
Forum: Support
Topic: TRVAnimation
Replies: 1
Views: 7985

Increase RVMaxAnimations variable from RVAnimate unit. Notes: 1) Number of animated images were limited to save system resources. 2) In the latest version (available for registered users), resource and memory usage for animations (using TGifImage) was reduced dramatically. Now animated TGifImage ite...
by Sergey Tkachenko
Thu Nov 09, 2006 12:48 pm
Forum: Support
Topic: RTF Code Optimization
Replies: 15
Views: 38658

No, '\par' is fixed only in v1.9.27.2 (this is alpha version available for registered users).
By the way, why this ending \par is so important? The most if RTF readers do not require it.
by Sergey Tkachenko
Thu Nov 09, 2006 12:45 pm
Forum: Support
Topic: HELP margin and image insertion
Replies: 3
Views: 12296

First, why controls are not ok? Instead of controls, you can use images. For example, hypertext images ("hot-picture" or "hotspot") InsertControl inserts control in the position of caret. For hypertext pictures, use InsertHotPicture or InsertHotspot. TRichView does not have caret...
by Sergey Tkachenko
Wed Nov 08, 2006 11:38 am
Forum: Support
Topic: HELP margin and image insertion
Replies: 3
Views: 12296

Sorry, I am not sure that I understand your questions.
First, what do you mean by " the text is drawn as a graphics rather than a pure text"?
by Sergey Tkachenko
Tue Nov 07, 2006 9:16 pm
Forum: Support
Topic: RTF Question
Replies: 4
Views: 14478

I do not understand why the results are different in TFileStream and TMemoryStream. It should not happen.
by Sergey Tkachenko
Tue Nov 07, 2006 9:14 pm
Forum: Examples, Demos
Topic: [Demo] Sending HTML email. Saving MIME-encoded files.
Replies: 40
Views: 3310093

Answering questions here is a part of my work. Others may do it as a hobby :) In this forum ("Examples, Demos") only I can create a new topic. Other users can post their examples, demos, help and tips in "Support" forum. If they are interesting for other users, I'll repost them h...
by Sergey Tkachenko
Tue Nov 07, 2006 3:17 pm
Forum: Support
Topic: Multilevel numbering
Replies: 5
Views: 15316

const Indent = 24; begin RVStyle1.ListStyles.Clear; // adding ListStyle[0] with 4 levels with RVStyle1.ListStyles.Add do begin with Levels.Add do begin ListType := rvlstUpperAlpha; FormatString := '%0:s.'; LeftIndent := Indent*1; MarkerIndent := Indent*0; FirstIndent := 0; Font.Assign(RVStyle1.Text...