InsertPicture help
Posted: Thu Jul 23, 2015 8:23 pm
Hello Sergey, see the problem I'm having to use the function InsertPicture:
this is the source code:
Thanks!
Português:
Olá Sergey, veja o problema que estou tendo ao usar a função InsertPicture:
--
este é o código fonte:
this is the source code:
Code: Select all
procedure TFrmCadEditorRegistro.ListaImagensDblClick(Sender: TObject);
var gr: TGraphic;
var image: TImage;
var ultimalinha: Integer;
begin
inherited;
ultimalinha := RetornaLinha;
image := TImage.Create(Application);
image.Picture.Assign(TBitmap(ImageList[ListaImagens.ItemIndex]));
SRichViewEdit1.RichViewEdit.BeginUndoGroup(rvutInsert);
SRichViewEdit1.RichViewEdit.SetUndoGroupMode(True);
gr := RV_CreateGraphics(TGraphicClass(image.Picture.Graphic.ClassType));
gr.Assign(image.Picture.Graphic);
rvActionAlignJustify1.Execute;
if SRichViewEdit1.RichViewEdit.InsertPicture('',gr,rvvaBaseline) then
begin
SRichViewEdit1.RichViewEdit.SetCurrentItemExtraIntProperty(rvepImageHeight,600,True);
SRichViewEdit1.RichViewEdit.SetCurrentItemExtraIntProperty(rvepImageWidth,500,True);
SRichViewEdit1.RichViewEdit.SetUndoGroupMode(false);
SRichViewEdit1.RichViewEdit.InsertText('-');
end;
FreeAndNil(image);
end;
Português:
Olá Sergey, veja o problema que estou tendo ao usar a função InsertPicture:
--
este é o código fonte: