How to edit TfrxRichView at runtime?
Anu de Deus
Hampshire, UK
How can I allow the user to edit the contents of a TfrxRichView at runtime, during preview?
It's identical to the Interactive demo, but instead of a TfrxMemoView, it's for a TfrxRichView, with a RichText editor.
I even tried using TfrxRichEditorForm in my code (not the script), but I didn't get far as I get an error saying it can't find the DesgnButtons resources when I try to display it, so this didn't go very far:
procedure TForm1.Button2Click(Sender: TObject);
var
lfrxRichEditorForm: TfrxRichEditorForm;
begin
lfrxRichEditorForm := TfrxRichEditorForm.Create(self);
lfrxRichEditorForm.showmodal; << raises exception can't find the DesgnButtons resources
lfrxRichEditorForm.free;
end;
Also, it would be nice to know if it's possible to have similar functionality (edit/select at runtime) for a TFrxPictureView.
Additionally, what's the purpose of the TfrxRichObject?
It doesn't have any relevant property, and there is no reference to it in any manual or demo.
Even in the Main Demo, where there is a TfrxRichObject component on the form, it doesn't seem to do anything at all, I deleted it and didn't notice anything different.
What does it do?
I'm using FR 4.7.37 Standard VCL Components with D7.
Any ideas?
It's identical to the Interactive demo, but instead of a TfrxMemoView, it's for a TfrxRichView, with a RichText editor.
I even tried using TfrxRichEditorForm in my code (not the script), but I didn't get far as I get an error saying it can't find the DesgnButtons resources when I try to display it, so this didn't go very far:
procedure TForm1.Button2Click(Sender: TObject);
var
lfrxRichEditorForm: TfrxRichEditorForm;
begin
lfrxRichEditorForm := TfrxRichEditorForm.Create(self);
lfrxRichEditorForm.showmodal; << raises exception can't find the DesgnButtons resources
lfrxRichEditorForm.free;
end;
Also, it would be nice to know if it's possible to have similar functionality (edit/select at runtime) for a TFrxPictureView.
Additionally, what's the purpose of the TfrxRichObject?
It doesn't have any relevant property, and there is no reference to it in any manual or demo.
Even in the Main Demo, where there is a TfrxRichObject component on the form, it doesn't seem to do anything at all, I deleted it and didn't notice anything different.
What does it do?
I'm using FR 4.7.37 Standard VCL Components with D7.
Any ideas?
Comments
from preview screen select edit select the tfrxrichview object right click select edit.
I added the following text to my original message, but I probably did it after you did your post, so I'm retyping it here,
I was hoping you could clarify me this doubt:
Additionally, what's the purpose of the TfrxRichObject?
It doesn't have any relevant property, and there is no reference to it in any manual or demo.
Even in the Main Demo, where there is a TfrxRichObject component on the form, it doesn't seem to do anything at all, I deleted it and didn't notice anything different.
What does it do?
and the main demo uses it for the rtf memo in the add in objects richtext report.