adding image to stringgrid fails lazarus / 31-LCL ---------------------------------------------------------------------- liewald · 2019-01-24 10:27 OK not on the machine at the moment but it's Windows 10 using latest Laz download : I'm trying to read in a number of images and show them in a string grid using stretchdraw and it's failing. I fired up delphi xe5 and got exactly the same behaviour. Nothing appears and the imported image vanishes . to get the prog working I reverted to using a number of bitbuttons and the copy works fine. also tried resizing the image followed by a draw and it failed as well Anyone Else had this issue? Interesting feature of windows 10? ---------------------------------------------------------------------- liewald · 2019-01-24 11:44 OK Just tried in linux same problem simple form with a button and a string grid here's the code Quoteprocedure TForm1.loadClick(Sender: TObject); var image : timage; begin   image := timage.create(self);   if openpicture.execute then   begin     image.picture.LoadFromFile(openpicture.FileName);     StringGrid1.Canvas.StretchDraw(StringGrid1.CellRect(1,1),image.Pic ture.Bitmap);   end;   image.destroy; .end; ---------------------------------------------------------------------- wp · 2019-01-24 11:57 Painting from an OnClick event will not work: in some widget sets this is forbidden at all, and in those where it works at first the drawing is not persistent and will disappear the next time the OS decides to repaint the grid. Have a look at the demo project in folder examples/grid_examples/embedded_images to see how images could be shown within a stringgrid. ---------------------------------------------------------------------- liewald · 2019-01-24 12:12 thanks