Several calls of this event make no problem in all demos and real applications that use TRichViewEdit/ScaleRichView. And none of them implement special processing for this.
This event is never called with incorrect parameters, so they are called several times with the same value of CurTextStyleNo.
Search found 9411 matches
- Fri Aug 24, 2007 5:48 pm
- Forum: ScaleRichView
- Topic: OnCurTextStyleChange??
- Replies: 5
- Views: 23212
- Fri Aug 24, 2007 5:34 pm
- Forum: ScaleRichView
- Topic: How To Print / Print Preview??
- Replies: 5
- Views: 26286
Certainly, TrvActionPrint, TrvActionQuickPrint, TrvActionPrintPreview, TrvActionPageSetup do not work with ScaleRichView properly. It's obvious, because they use TRVPrint's repagination procedure and properties instead of ScaleRichView's procedure and properties. The most of these actions can be imp...
- Fri Aug 24, 2007 5:24 pm
- Forum: Support
- Topic: changing control item to a picture
- Replies: 1
- Views: 7169
- Fri Aug 24, 2007 5:24 pm
- Forum: Examples, Demos
- Topic: [Demo] Replacing controls with text
- Replies: 1
- Views: 28876
Similar code can be used to change controls to images. In this code, GetControlGraphic is your function returning graphic representation of the given control. You can use DrawControl function from CtrlImg unit, but it is not able to create images for all types of controls. { Inserting graphic item i...
- Fri Aug 24, 2007 5:08 pm
- Forum: Support
- Topic: More than 1 Richview page on 1 pdf page using eDocEngine
- Replies: 5
- Views: 16471
Do you want to create PDF document consisting of several TRichView documents, with (or without) page breaks between them?
I am not sure how eDocEngine generates document, so I suggest simply to add all documents in the same TRichView, see http://www.trichview.com/forums/viewtopic.php?p=1002
I am not sure how eDocEngine generates document, so I suggest simply to add all documents in the same TRichView, see http://www.trichview.com/forums/viewtopic.php?p=1002
- Fri Aug 24, 2007 5:05 pm
- Forum: Support
- Topic: Strange problem
- Replies: 4
- Views: 12205
Is it possible to create a project reproducing the problem and send it to me? You can use this code to detect error. It checks if the RichViewEdit1 content's Unicode mode corresponds to TextStyles[].Unicode. Only the first item is checked. uses RVItem; RichViewEdit1.Format; if (RichViewEdit1.GetItem...
- Fri Aug 24, 2007 4:56 pm
- Forum: Support
- Topic: Problem in Saving RV as RTF
- Replies: 3
- Views: 10944
Controls are saved in RVF by default (all their published properties are stored, except for links to other components and events).
In order to load controls, they must be registered using RegisterClass.
For example:
RegisterClass(TButton);
Call registering code one time before the first RVF loading.
In order to load controls, they must be registered using RegisterClass.
For example:
RegisterClass(TButton);
Call registering code one time before the first RVF loading.
- Wed Aug 22, 2007 3:58 pm
- Forum: Support
- Topic: Problem in Saving RV as RTF
- Replies: 3
- Views: 10944
- Wed Aug 22, 2007 3:55 pm
- Forum: Support
- Topic: Auto calculate reporter height
- Replies: 2
- Views: 9154
- Wed Aug 22, 2007 3:51 pm
- Forum: ScaleRichView
- Topic: OnCurTextStyleChange??
- Replies: 5
- Views: 23212
- Tue Aug 21, 2007 4:30 pm
- Forum: Support
- Topic: Print a defined rtf
- Replies: 3
- Views: 10216
- Tue Aug 21, 2007 10:02 am
- Forum: Support
- Topic: Bug in RVRuler.pas
- Replies: 2
- Views: 8819
- Mon Aug 20, 2007 1:16 pm
- Forum: Support
- Topic: Changing the fontname of text in a document
- Replies: 4
- Views: 13677
This code must work. But if you want to replace content of Document, call: Document.Clear; VRichView.SaveRVFToStream( Document, False ); instead of VRichView.SaveRVFToStream( Document, True ); Without clearing the stream, new information will be written to the end of the existing content. It may pro...
- Mon Aug 20, 2007 12:39 pm
- Forum: ScaleRichView
- Topic: TScaleRichView - EListIndex out of Bounds Error
- Replies: 6
- Views: 25474
- Mon Aug 20, 2007 11:16 am
- Forum: Support
- Topic: TRVTextItemInfo
- Replies: 5
- Views: 11974