Thank you for all the responses. I tried all of them and this is what worked for me:
MySCRcap : THandle;
procedure TForm1.Button1Click(Sender: TObject);
begin
MySCRcap := GetDC(Form1.StringGrid1.Handle);
Image1.Picture.Bitmap.LoadFromDevice(MySCRcap);
ReleaseDC(Self.Handle, MySCRcap);
end;
I click on the button and the StringGrid is displayed on the TImage.
I can take it from here to make it on a separate window and save it in HD.
For me "Get DC(self.handle)" gives me the image of the button.
"GetWindowDC" is not recognized. Is it Delphi instead of Lazarus? Not listed with CTRL-Space Bar.
"GetFormImage" says I have the wrong number of parameters...
Similar with other sugestions.
Thanks. All's well that ends well.