ScaleRichView and Reportbuilder

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

ScaleRichView and Reportbuilder

Post by BernhardRoos »

If I call the Editor within Reportbuilder (I'm using the Unit of ActionTest from the demos) then it don't work correct. Only if I click with the mouse somewhere I see the text I have written before.
If I compile the ActionTest then it works good.
Have I forgotten something.

I've done the following things :

The form is inherited from tfrmCustomppRichViewEditor

I'm overwriting the GetRichView function with :

Result := SRichViewEdit1.RichViewEdit;

In my Report Designer I have the following code :
PPRichViewEditorClass := TFormReportGeneratorRichViewEditScale;

Best wishes
Bernhard
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post by BernhardRoos »

It is the line 206 in ppRichviewReportDesign :
formrv.AssignEvents(rvrh.RichView)
If I delete this line, it works good.
But for what is this line?
Best wishes
Bernhard
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

As I understand, the problem in that that Reportbuilder replaces events in RichView with others, not causing old which has established ScaleRichView.
Line formrv.AssignEvents(rvrh.RichView) replace events in RichView new values.
Sergey Tkachenko
Site Admin
Posts: 17553
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, this line assigns events of one TRichView to another.
Remove it, if you use ScaleRichView
Post Reply