Hi,
I've a Tmemo in a form, in which one can enter some text. Also there is a button, which onclick puts some standard text in the memo with memo->lines->Insert(row, "blahblah"). And it works almost fine.
However, in the case that I put some text on a new line in the memo, without leaving that line, and click the button then no text is Inserted!
How can that happen?
I think it could be the memo is then in a sort of edit mode wherein one is working in a buffer. This mode should then first be ended.
Thanks for help
Henk
I've a Tmemo in a form, in which one can enter some text. Also there is a button, which onclick puts some standard text in the memo with memo->lines->Insert(row, "blahblah"). And it works almost fine.
However, in the case that I put some text on a new line in the memo, without leaving that line, and click the button then no text is Inserted!
How can that happen?
I think it could be the memo is then in a sort of edit mode wherein one is working in a buffer. This mode should then first be ended.
Thanks for help
Henk