Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-27 Thread Michael W. Vogel via Lazarus
The method TWinControl.PaintTo doesn't refresh the RawImage.Data, like it is done in TRasterImage.Draw. It isn't only a issue for the method GetFormImage. I fixed it in revision 53790. As far as I can see, there are no additional calls done, as the needed one (e.g. TWin32WidgetSet.RawImage_From

[Lazarus] Initial NoGUI LCL support for Amiga Systems

2016-12-27 Thread Marcus Sackrow via Lazarus
Hi, I implemented a basic support for Amiga systems with FPC 3.0+: Amiga 3.x m68k, MorphOS PowerPC, AROS i386 with FPC 3.1.1: additionally AROS ARM, AROS x86_64, AmigaOS 4 PowerPC at the moment it only compiles NoGUI of course, but I would like to also add the MUI LCL interface to the officia

Re: [Lazarus] Old Lazarus code fail at runtime

2016-12-27 Thread DougC via Lazarus
Has OpenDialog been created at this point? Better to double check by changing to if Assigned(OpenDialog) then OpenDialog.Execute else raise Exception.Create('OpenDialog not yet created'); On Tue, 27 Dec 2016 16:00:19 -0500 Giuliano Colla via Lazarus

Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-27 Thread Giuliano Colla via Lazarus
Il 27/12/2016 17:49, Juha Manninen via Lazarus ha scritto: Somebody with good knowledge of the graphics code should fix it. I remember I tried over 2 years ago but failed. Just adding a line to GetFormImage does the trick: function TForm1.GetFormImage: TBitmap; var ARect: TRect; begin R

Re: [Lazarus] Old Lazarus code fail at runtime

2016-12-27 Thread Giuliano Colla via Lazarus
Il 27/12/2016 12:26, Chavoux Luyt via Lazarus ha scritto: Hi, I wrote a small program for Linux in a previous version of Lazarus which compiled and ran without problems before. I have now updated to fpc 3.0.0 and Lazarus 1.6 (backports version for Debian X86_64 Jessie). The code still compil

Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-27 Thread Juha Manninen via Lazarus
Somebody with good knowledge of the graphics code should fix it. I remember I tried over 2 years ago but failed. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-27 Thread Michael W. Vogel via Lazarus
Am 27.12.2016 um 11:17 schrieb Balázs Székely via Lazarus: But Delphi does not require the bmp.Canvas.Changed. Shouldn't it be added to the GetFormImage internally to make this simple code Delphi-compatible? That's a good idea. The current behavior is confusing. See comments: http

[Lazarus] Old Lazarus code fail at runtime

2016-12-27 Thread Chavoux Luyt via Lazarus
Hi, I wrote a small program for Linux in a previous version of Lazarus which compiled and ran without problems before. I have now updated to fpc 3.0.0 and Lazarus 1.6 (backports version for Debian X86_64 Jessie). The code still compiles perfectly (it had a number of warnings, but these have now di

[Lazarus] Anchordocking -> CloseAll is hiding the mainform and close all forms

2016-12-27 Thread Andreas Frieß via Lazarus
Hello, i use the anchordocking with manual docking and i see, if i use DockManager.CloseAll ALL forms are closed and the mainform is hidden. Q: Is this expected ? I expect only the docked forms are closed and the mainform wil hold their own state (visible/hidden). Andreas -- _

Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-27 Thread Balázs Székely via Lazarus
> > But Delphi does not require the bmp.Canvas.Changed. Shouldn't it be added > to the GetFormImage internally to make this simple code Delphi-compatible? That's a good idea. The current behavior is confusing. On Tue, Dec 27, 2016 at 1:40 AM, Werner Pamler via Lazarus < lazarus@lists.lazarus-ide.