Topic: Rich Text Editor InsertTextA
Hello, can someone provide an example for RichEdit1.InsertTextA.
For example, i'm trying to insert a time stamp to a Rich Text Editor in bold and in red. But I keep getting the error message
Incompatible Types: 'AnsiString', 'String'
procedure Form1_RichEdit1_OnKeyUp (Sender: TObject; var Key: Word; Shift, Alt, Ctrl: boolean);
begin
if (Key=112) then
begin
frm_main.RichEdit1.InsertTextA('Time Stamp will be inserted here in bold and red',0);
end;
end;
How can I insert formatted text to a RichText Box?