Listview Event Error for Round Images

Asked

Viewed 121 times

0

I have a listview linked to an Fdmemtable at the event :

TForm31.ListView1UpdateObjects(const Sender: TObject;
const AItem: TListViewItem);

i do the following procedure to leave the photos round :

var imagem : TListItemImage;
begin

imagem := AItem.Objects.FindObject('Image_funcionario') as TListItemImage;

Circle1.Fill.Bitmap.Bitmap := imagem.Bitmap;

Image1.Bitmap := Circle1.MakeScreenshot;

TListItemImage(AItem.Objects.FindDrawable('Image_funcionario')).Bitmap := Image1.Bitmap;

end;

The problem is this : When I upload new records to Fdmemtable, the application skips a few lines of the event and doesn’t leave the photos round.

  • What language?

  • Hello, Delphi Firemonkey

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.