Hi,
Using Kmemo (from latest download)
According to TK's manual. to insert an image in editor do this....
procedure TForm1.Button1Click(Sender: TObject);
begin
OpenPictureDialog1.Options := [ofEnableSizing, ofViewDetail, ofHideReadOnly];
if OpenPictureDialog1.Execute then
begin
txtRTF.Blocks.AddImageBlock(OpenPictureDialog1.FileName); //INSERT IMG CODE
end;
end;
It does insert the image but not where the cursor is. It only appends it to the end of the blocks in the editor.
It should be between Sentence 1 & Sentence 2
Not correct way to this.
Any fixes on how to make this work right?