Search found 7590 matches

by Sergey Tkachenko
Fri Sep 09, 2005 6:18 pm
Forum: Examples, Demos
Topic: [Demo] Chat codes
Replies: 18
Views: 100456

I do not think that using font dialog is a good idea.
Ok, it's possible to add a chat code like \f"Times New Roman".
But there are on/off switches like \b, so font depends on commands which were added in the string before this place.
by Sergey Tkachenko
Fri Sep 09, 2005 5:15 pm
Forum: Examples, Demos
Topic: [Component] Using Shockwave Flash ActiveX in RichView
Replies: 22
Views: 218730

It's rather old, but I think it's up to date. About C++Builder. I believe the only way to use it in C++Builder is to rewrite it completely in C++. It's because this component uses DCU file generated on the ActiveX import, but C++Builder does not generate it. I tried to create a component for C++Buil...
by Sergey Tkachenko
Fri Sep 09, 2005 5:03 pm
Forum: Support
Topic: This code isn't working
Replies: 6
Views: 10408

It seems that this code is correct, but ApplyTextStyle generates OnChange itself, so this procedure can be called infinitely until your program runs out of stack. Add a variable to the form: Working: Boolean; in OnChange: if Working then exit; Working := True; try <your code here> finally Working :=...
by Sergey Tkachenko
Fri Sep 09, 2005 10:04 am
Forum: Support
Topic: gif image
Replies: 7
Views: 8694

Add RVGifAnimate in "uses", not RVAnimate.
by Sergey Tkachenko
Fri Sep 09, 2005 10:03 am
Forum: Support
Topic: Slow adding new items into table cells
Replies: 4
Views: 8949

Hmm, AddNLWTag (and other Add*** methods) must work in cells with exactly the same speed, because they are defined in the base class of RVData (ancestor for both the main document and the cell). The problem is in some other place.
by Sergey Tkachenko
Fri Sep 09, 2005 10:01 am
Forum: Support
Topic: Text background when saving HTML does not work?
Replies: 2
Views: 7594

HTML does not have tags for text background, it can be done only in HTML+CSS (Cascading Style Sheets).
Use SaveHTMLEx instead of SaveHTML.
by Sergey Tkachenko
Fri Sep 09, 2005 7:17 am
Forum: Support
Topic: gif image
Replies: 7
Views: 8694

Update it to the newer version
by Sergey Tkachenko
Thu Sep 08, 2005 8:39 pm
Forum: Support
Topic: Slow adding new items into table cells
Replies: 4
Views: 8949

Do you mean inserting?

After insertion, it's necessary to reformat the changed part of document. It may be the whole table, in case of insertion inside cell.

What are you trying to implement? May be there are more efficient ways to do it.
by Sergey Tkachenko
Thu Sep 08, 2005 8:36 pm
Forum: Support
Topic: gif image
Replies: 7
Views: 8694

1) Include RVGifAnimate unit in the project or in the uses clause of one of your units 2) Set rich.AnimationMode=rvaniOnFormat And do not call Format after Insert*** methods. They are editing-style methods, they reformat the changed part of document themselves. In this case, Format only slows down t...
by Sergey Tkachenko
Thu Sep 08, 2005 8:31 pm
Forum: Support
Topic: OpenDocument support
Replies: 17
Views: 18307

Currently it's not planned. May be plans will be changed.
by Sergey Tkachenko
Thu Sep 08, 2005 8:28 pm
Forum: Support
Topic: ApplyStyleConversion not working?
Replies: 2
Views: 8377

ApplyStyleConversion calls OnStyleConversion event for each selected text item, passing its parameter (TEXT_BOLD in your case) as one of parameters to this event.
If you do not process this event, ApplyStyleConversion will do nothing. Example can be found in Demos\Editors\Editor 2\
by Sergey Tkachenko
Thu Sep 08, 2005 8:25 pm
Forum: Support
Topic: Displaying a document to directly to a canvas?
Replies: 2
Views: 6876

Yes, you need TRVReportHelper.

Examples can be found in TRichView demos (Demos\Delphi\)

Example how to draw TRichView in image:
Assorted\Graphics\ToImage\

Example how to draw in TDBGrid:
DB Demo\3 DBGrid\

As I understand, the last example is almost exactly what you need.
by Sergey Tkachenko
Thu Sep 08, 2005 7:59 pm
Forum: Support
Topic: Printing question
Replies: 1
Views: 6515

I created a little FAQ about printing, I hope you'll find an answer there:
http://www.trichview.com/forums/viewtopic.php?p=255
by Sergey Tkachenko
Thu Sep 08, 2005 7:56 pm
Forum: Examples, Demos
Topic: [How to] How to print 2 documents in one printing job, etc.
Replies: 14
Views: 64436

:?: How to print the selected fragment There are no functions for printing the selection. The only way to do it is to copy it to the separate (hidden) RichView and to print it. var Stream: TMemoryStream; // copying the selection Stream := TMemoryStream.Create; try rvSource.SaveRVFToStream(Stream, Tr...
by Sergey Tkachenko
Thu Sep 08, 2005 7:50 pm
Forum: Examples, Demos
Topic: [How to] How to print 2 documents in one printing job, etc.
Replies: 14
Views: 64436

:?: How to print without background?

Set RVPrint.TransparentBackground = True. Background color will not be painted.
Call RVPrint.rv.BackgroundBitmap := nil after calling RVPrint.AssignSource. Background bitmap will not be printed.