Page 1 of 1

ScaleRichView and Reportbuilder

Posted: Wed Dec 12, 2007 8:39 am
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

Posted: Wed Dec 12, 2007 9:35 am
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

Posted: Wed Dec 12, 2007 11:28 am
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.

Posted: Wed Dec 12, 2007 3:57 pm
by Sergey Tkachenko
Yes, this line assigns events of one TRichView to another.
Remove it, if you use ScaleRichView