Changing on report preview

Hello.

This is big trouble for me, can you help me ?

I have TfrxMemoView on Report and conecting event:

procedure MemoOnPreviewClick(Sender: TfrxView; Button: TMouseButton; Shift: Integer; var Modified: Boolean);
begin
TfrxMemoView(Sender).Text := CountSomething;
Modified := True;
end;

CountSomething is function witch give a some result.

It works when I click on Prewiev on this MemoView. At this moment everything is OK.

Problem is:

I want execute this procedure when I click on other Memo on report. How Can I do this ??

In other words. I have 2 MemoView on report (memo1, memo2). I want do change memo2.text when i click on memo1. Is it possible ?
When I make direct memo2.text := 'something' in OnPreviewClick event memo1 this isn't work.

Best regards:

Jaromir Będkowski

Comments

  • edited 2:29PM
    I have the same problem, it`s possible ?

    Thanx
  • edited 2:29PM
    uxer wrote: »
    I have the same problem, it`s possible ?

    Thanx

    Hi ,
    In designer's script code you cant do that. You can do that in Delphi .

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.