How to change the text of a memo by click/dblclick ?
Hey together,
I have to change the text of a TextObject by using the click-event and a dialog.
In FastReport 4.0 (*.fr3) I solved the Problem by using the Delphi script
CallEditDialog is an user function which open a dialog and ask for the new text.
I have to change the text of a TextObject by using the click-event and a dialog.
In FastReport 4.0 (*.fr3) I solved the Problem by using the Delphi script
procedure MemoOnDblClick(Sender: TfrxView; Button: TMouseButton; Shift: Integer; var Modified: Boolean);
...
begin
  ....   Â
  Answer := CallEditDialog(...);
  ...
  if(Answer <>'<<NULL>>') then begin                                         Â
      TfrxMemoView(Sender).Text :=Answer;
      Modified := true;         Â
  end;           Â
end;
CallEditDialog is an user function which open a dialog and ask for the new text.
Comments
Every TextObjects are getting the same Click-Event-Function StringObject_Click
That's it [img]style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Searching the next Problem[/img]