using dialog for editing text

I give my users some liberties to change some text in a prepared script. Normally I use this code when double click on a memo-item
var s: String;
begin
  s := TfrxMemoView(Sender).Text;
  SetLength(s, Length(s) - 2); // cut off #13#10
  TfrxMemoView(Sender).Text := InputBox('', 'change or delete text', s);
  Modified := True;
end;
But this only works with a single line.

Now I have a memofield with more than 4 lines. I can not use a inputbox for it, because the line is too long and there's no carriage return in it.
So I want to create a dialog which has the text copied from the memofield into a TMemo in a dialog. With double click on the item, the dialog should be appear.
But a dialog is executed before my prepared script is on screen.

Is it possible to start a dialog in prepared script manually to change my memofield values?

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.