Registriert seit: 5. Feb 2005
Ort: Barsbüttel
34 Beiträge
Delphi XE6 Professional
|
Re: Smileys in JvRichEdit einfügen
28. Jun 2005, 20:16
Hallo Spider!
Das ist AddImageToRichEdit:
Delphi-Quellcode:
procedure TForm2.AddImageToRichEdit(const AImageIndex: Integer);
var
Bitmap: TBitmap;
begin
Bitmap := TBitmap.Create;
try
ImageList1.GetBitmap(AImageIndex, Bitmap);
JvRichEdit1.InsertGraphic(Bitmap, False);
{ Move cursor }
with JvRichEdit1.GetSelection do
JvRichEdit1.SetSelection(cpMin + 1, cpMin + 1, False);
finally
Bitmap.Free;
end;
end;
|