Re: [Lazarus] How to save screenshot to jpg and png format files

2021-04-29 Thread Patrick Chevalley via lazarus
Hi, Replace : MyCapture.Bitmap.SaveToFile(ChangeFileExt(ParamStr(0), '.jpg')); by : MyCapture.SaveToFile(ChangeFileExt(ParamStr(0), '.jpg')); This work because Bgrabitmap set automatically the image writer based on the extension. Patrick 29 avril 2021 17:49 "Bo Berglund via lazarus" a

Re: [Lazarus] How to hide pop-up menu before taking a screen snapshot?

2021-02-12 Thread Patrick Chevalley via lazarus
The declaration of QueueAsyncCall is: procedure QueueAsyncCall(const AMethod: TDataEvent; Data: PtrInt); You must use "arg: PtrInt" otherwise it will fail on a 32bit system. Patrick 12 février 2021 22:34 "Bo Berglund via lazarus" a écrit: > On Fri, 12 Feb 2021 21:23:19 +0100, Jean SUZINEAU

Re: [Lazarus] Which Lazarus version that uses FPC v3.2?

2020-01-30 Thread Patrick Chevalley via lazarus
Hi, I use fpc 3.2 from branches/fixes_3_2 because it is mandatory for aarch64. No problem with Lazarus 2.0.6 Just beware that at the moment fixes are merged into this branch almost daily. Any reason you want it for Mojave? for me fpc 3.0.4 work fine on this platform. Patrick --

Re: [Lazarus] How to switch a project from 32 to 64 bit (on Windows 7 x64)?

2019-05-28 Thread Patrick Chevalley via lazarus
It is probably possible to cross compile from Windows to Linux (Gtk2) but this is difficult to setup because you need to copy a lot a Linux library to your Windows system. I don't know if Fpcupdeluxe can help with that? The other way is much more easy because the win32 LCL do not expect the

Re: [Lazarus] How to switch a project from 32 to 64 bit (on Windows 7 x64)?

2019-05-28 Thread Patrick Chevalley via lazarus
I don't know your workflow and why you keep the old version of Lazarus? for maintenance of older version of your applications? In this case do not remove them but install the 2.0.2 Lazarus and cross-compiler in a new Lazarus 2.0.2 directory then create a new config for 2.0.2 as usual. Patrick

Re: [Lazarus] How to switch a project from 32 to 64 bit (on Windows 7 x64)?

2019-05-28 Thread Patrick Chevalley via lazarus
This is easy to do that, you only need one Lazarus, the 64bit version and the cross-i386 fpc compiler, you can remove Lazarus 32. The only point to be careful is the default target for a new project will be Win64 and you have to add a Win32 build mode to all your projects. But the default

Re: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian

2019-02-23 Thread Patrick Chevalley via lazarus
here my patch, it is for the original synaser so line number can differ a bit in lazsynaser: https://github.com/pchev/skychart/blob/master/skychart/component/synapse/cdc_arm.patch (https://github.com/pchev/skychart/blob/master/skychart/component/synapse/cdc_arm.patch) --

Re: [Lazarus] Lazarus installation problem on Raspberry Pi (localized to Swedish)

2018-11-22 Thread Patrick Chevalley via lazarus
This error "Can't call the assembler..." is because of insufficient memory with the RPi. Just add 1GB of swap and it will work. Patrick -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus