Re: [Lazarus] Lazarus make clean fails...

2023-12-07 Thread Giuliano Colla via lazarus
Il 04/12/23 17:48, Michael Van Canneyt via lazarus ha scritto: Is that switch also available for startlazarus? So it can be specified inside the desktop file for the GUI menu? Like this:

Re: [Lazarus] Lazarus make clean fails...

2023-12-03 Thread Giuliano Colla via lazarus
I’m not familiar with your environment, but I’ve never seen a lazarus directory which is not named “lazarus”. Therefore I’d cd one step further: cd ~/devtools/lazarus/2.2.6/lazarus Sorry for top posting. iPhone does it! Giuliano Inviato da iPhone > Il giorno 2 dic 2023, alle ore 19:03, Bo

[Lazarus] Help request to Mac users

2023-09-09 Thread Giuliano Colla via lazarus
Recent upgrades of Lazarus have broken the automatic language detection on Lazarus. A solution has been proposed, but it's been tested on a single M1 platform. It would be helpful if some other Mac user could test it and provide feedback. Patches both for the fixes_3_0 branch and for the

Re: [Lazarus] Where is lazarus 3.0 RC2?

2023-09-04 Thread Giuliano Colla via lazarus
Il 04/09/23 18:17, Maxim Ganetsky via lazarus ha scritto: 04.09.2023 19:16, Giuliano Colla via lazarus пишет: I'd like to test lazarus 3.0 RC2, but I'm unable to locate on github the proper branch/tag. Where is it? The tag has not been created yet. Branch is `fixes_3_0`. Thanks a lot

[Lazarus] Where is lazarus 3.0 RC2?

2023-09-04 Thread Giuliano Colla via lazarus
I'd like to test lazarus 3.0 RC2, but I'm unable to locate on github the proper branch/tag. Where is it? Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. -- ___ lazarus mailing list

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Giuliano Colla via lazarus
Il 01/07/23 00:49, Maxim Ganetsky via lazarus ha scritto: 2. clDark is deprecated on 23.11.2008 with a bunch of other CLX colors. All these colors are NOT present in Delphi. Your code emitted warnings at least for 10 years! Just for clarity, CLX is part of

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Giuliano Colla via lazarus
Il 30/06/23 19:40, Mattias Gaertner via lazarus ha scritto: Michael Van Canneyt via lazarus wrote: [...] Honestly: I'll settle for actually managing to get a release out. +1000 +1000 me too. If the brilliant minds which have elaborated a new numbering scheme had spent their time in

[Lazarus] Qt5 IDE fails to build on Linux

2023-06-12 Thread Giuliano Colla via lazarus
Attempting to build latest Lazarus trunk on Linux CentOs7 with Qt5 fails with error: /home/colla/Applicazioni/lazarus_main/lcl/interfaces//qt5/qtobject.inc:44: undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled' It succeeds setting {$DEFINE QT_NO_SESSIONMANAGER} in

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Giuliano Colla via lazarus
Il 08/06/23 18:40, Ondrej Pokorny via lazarus ha scritto: And because it is so much fun, I wrote a completely general program to test it. Well you've shown that it isn't so bad. But there's another detail to consider, when resizing: font size. Font size can (and should be) specified in

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Giuliano Colla via lazarus
Il 08/06/23 12:39, Jean SUZINEAU via lazarus ha scritto: I think you can't use integer value for mm or inches. Of course you can't. But you can use integer values for hundredth of mm (that's the resolution of high quality photo-composition) or for thousandth of inch (slightly worse but

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Giuliano Colla via lazarus
Il 08/06/23 11:58, Ondrej Pokorny via lazarus ha scritto: All in all, an over-complicated approach with little gain. The gain would be that you do not add up rounding errors. We can't have fractional pixels, of course, but we may have the exact actual size at design/creation time, and for

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Giuliano Colla via lazarus
Il 08/06/2023 11:34, Giuliano Colla via lazarus ha scritto: Il 08/06/2023 08:08, Ondrej Pokorny via lazarus ha scritto: Check TCustomColorBox how it handles FColorRectWidth as an example (it uses a default value and if the user overwrites it, it gets scaled in DoAutoAdjustLayout(). I

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Giuliano Colla via lazarus
Il 08/06/2023 08:08, Ondrej Pokorny via lazarus ha scritto: Check TCustomColorBox how it handles FColorRectWidth as an example (it uses a default value and if the user overwrites it, it gets scaled in DoAutoAdjustLayout(). I believe that scaling for different DPI has been implemented with a

Re: [Lazarus] Output directories

2023-06-07 Thread Giuliano Colla via lazarus
Il 07/06/23 11:43, Michael Van Canneyt via lazarus ha scritto: Hello, There is a problem when installing Lazarus through the package manager on Linux, and when you try to install/recompile additional packages: Error: (lazarus) unable to create package output directory

[Lazarus] Build IDE "forgets" Target CPU

2023-05-17 Thread Giuliano Colla via lazarus
Recent Macs support both X86_64 and aarm64 binaries, and if you wish to compile your app one way or the other you may just select it in Project Options. You may be forced to select x86_64 if you wish to use Qt5 because Qt provides Qt5 only for x86. But if you wish to build the IDE for a

[Lazarus] Macro not defined: "Target_OS".

2023-05-16 Thread Giuliano Colla via lazarus
When launching Lazarus from console I see a number of warnings like this: Warning: (lazarus) Macro not defined: "Target_OS". It's there since the dawn of times (from Lazarus 1.8 up to the latest Lazarus trunk). Is it something to worry about? Giuliano --

Re: [Lazarus] Cannot use bookmarks in code window - why?

2023-04-24 Thread Giuliano Colla via lazarus
Il 23/04/23 20:28, Bo Berglund via lazarus ha scritto: Thanks, that worked fine! Any timetable for Lazarus 2.4.0 release? If you are impatient, you can get (via fpcupdeluxe or via git repository) the trunk version of Lazarus, where the problem has been fixed, and you'll get the popup menu

Re: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only?

2023-04-19 Thread Giuliano Colla via lazarus
Il 19/04/2023 18:34, Bo Berglund via lazarus ha scritto: Result: When I use Release the symbols are not added and when using Debug, then the symbols are added*and* the executable name is changed to originalname.dbg. This is of course on Linux, what happens on Windows I don't know.

Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-19 Thread Giuliano Colla via lazarus
Il 19/04/2023 18:24, Bo Berglund via lazarus ha scritto: On Mon, 17 Apr 2023 10:32:51 +0200, Mattias Gaertner via lazarus wrote: On Mon, 17 Apr 2023 10:11:28 +0200 Giuliano Colla via lazarus wrote: Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: You never stop learning

Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-18 Thread Giuliano Colla via lazarus
Il 18/04/2023 12:33, Mattias Gaertner ha scritto: Tools / Configure Build Lazarus / page Build / groupbox Clean up / Clean all https://wiki.lazarus.freepascal.org/IDE_Window:_Configure_Build_Lazarus#Buttons Mattias I've found why the radio buttons aren't visible anymore in my setup. My

Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-18 Thread Giuliano Colla via lazarus
Il 17/04/2023 10:32, Mattias Gaertner via lazarus ha scritto: That's why there is "Clean all" radiobutton on the configure build lazarus dialog. It building fails, try that. I did look in vain for that radiobutton. The only one available (Lazarus 2.2.6) is "clean common files": Giuliano

Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-17 Thread Giuliano Colla via lazarus
Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: You never stop learning! Another thing I have learned with experience, is that sometimes the cleanup isn't perfect and leaves some dangling ppu which creates a problem like the one you had. It occurred to me when attempting to

Re: [Lazarus] Lazarus 2.2.6/Fpc 3.2.2 Win-32 - Cannot add desktops, why?

2023-04-10 Thread Giuliano Colla via lazarus
Il 10/04/2023 16:53, Bo Berglund via lazarus ha scritto: I was following my notes on how to configure a newly installed Lazauus to my liking when I stumbled across an item I have not seen AFAICT: Normally I configure different desktops to use for different types of application, for example the

[Lazarus] IDE rebuild failure on MAC OS

2023-04-05 Thread Giuliano Colla via lazarus
I have updated Lazarus to 2.2.6 on Mac OS (Apple Silicon M1 processor). As I'm using some extra packages, I needed to rebuild the IDE in order to install those packages. But to my dismay, building of the normal IDE, without touching the original settings, failed with a rather unexpected

Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-04-01 Thread Giuliano Colla via lazarus
Il 01/04/2023 14:50, Jean SUZINEAU via lazarus ha scritto: You can uses pipes too, basically just two files no need of networking, one for reading (delphi to freepascal), one for writing(freepascal to delphi). I made last year a small app to communicate with Audacity

Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-04-01 Thread Giuliano Colla via lazarus
Il 01/04/2023 10:53, Bo Berglund via lazarus ha scritto: And I can use Indy10 sockets rather than the now since long deprecated TTcpClient and TTcpServer components. I guess I will save myself a lot of time doing this... If I were you I'd take ten minutes to give it a try. Just compile,

Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-04-01 Thread Giuliano Colla via lazarus
Il 01/04/2023 09:37, Bo Berglund via lazarus ha scritto: Where are the "internet examples of Delphi 7" located? Inside the Delphi7 installation or where? I can't find any. By the name you write it looks to me (without having found the example) that it is a*network* application using TCP/IP

Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-03-31 Thread Giuliano Colla via lazarus
Among the internet examples of Delphi 7 you should find a small app named netchat, which provides a basic IPC. It’s quite simple and bullet-proof. I’ve converted to Lazarus on Linux, and used as a base for my needs of IPC. But converting on the same Windows environment should be very simple,

Re: [Lazarus] animated splash screen for lengthy operation, works with windows, doesn't with linux

2023-03-27 Thread Giuliano Colla via lazarus
Il 27/03/23 09:46, Luca Olivetti via lazarus ha scritto: Hello, I'd like to show a splash screen with an animation during a lengthy operation. I cannot rely on a timer to show the animation since the message loop isn't running, so I'm using a thread to directly paint over the form, i.e.:

Re: [Lazarus] Lazarus Release 2.2.6

2023-03-26 Thread Giuliano Colla via lazarus
Il 26/03/2023 14:42, Bo Berglund via lazarus ha scritto: Thanks for your input! On Windows I have been using the installer for Lazarus which can be downloaded from SourceForge and this isolates the Lazarus and Fpc into its own "sandbox" such that these probnlems do not appear. My real problems

Re: [Lazarus] Lazarus Release 2.2.6

2023-03-16 Thread Giuliano Colla via lazarus
Il 16/03/2023 18:46, Bo Berglund via lazarus ha scritto: I have a number of Lazarus releases installed where 3.0.4 is the fpc used. So they all used the same and there was no problem. (This is on Ubuntu Linux 22.04 btw and I install everything from sources) I have a similar problem, needing

Re: [Lazarus] Install Lazarus 2.2.4 on Ubuntu 20.04 LTS and other Linux

2023-02-09 Thread Giuliano Colla via lazarus
Il 09/02/23 14:37, Bo Berglund via lazarus ha scritto: On Thu, 9 Feb 2023 11:50:25 +0100, John Landmesser via lazarus wrote:   git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus So I have found that this is a path forward: FPCTAG=release_3_2_2 FPCVER=3.2.2

Re: [Lazarus] ***SPAM*** Re: ***SPAM*** Re: Install of Qt5 widgetset fails on Mac Ventura

2022-12-05 Thread Giuliano Colla via lazarus
Il 28/11/2022 08:18, zeljko ha scritto: On 27. 11. 2022. 23:47, Giuliano Colla wrote: Il 26/11/22 09:20, zeljko ha scritto: On 25. 11. 2022. 23:01, Giuliano Colla wrote: Il 25/11/2022 21:58, zeljko ha scritto: On 25. 11. 2022. 19:29, Giuliano Colla via lazarus wrote: I tried

Re: [Lazarus] How to list available serial orts on Ubuuntu?

2022-11-29 Thread Giuliano Colla via lazarus
Il 29/11/2022 11:52, wkitty42--- via lazarus ha scritto: would you believe you asked almost this very same question back in 2015, 2018, 2020, and here again in 2022 :) :-):-):-) -- Do not do to others as you would have them do to you.They might have different tastes. --

Re: [Lazarus] How to list available serial orts on Ubuuntu?

2022-11-28 Thread Giuliano Colla via lazarus
Inviato da iPhone > Il giorno 28 nov 2022, alle ore 17:00, Bo Berglund via lazarus > ha scritto: > > On Mon, 28 Nov 2022 14:48:20 +0100, Giuliano Colla via lazarus > wrote: > >> /dev/tty* is pretty much useless. It's there for historical reasons. >> /dev/ttyS

Re: [Lazarus] How to list available serial orts on Ubuuntu?

2022-11-28 Thread Giuliano Colla via lazarus
Il 28/11/22 14:08, Bo Berglund via lazarus ha scritto: On Mon, 28 Nov 2022 13:31:12 +0100, Giuliano Colla via lazarus wrote: Hope that it helps, Thanks, it does. I had thought of this but it looked like an overly complicated way given that the list of tty* ports using ls -l /dev/tty* on my

Re: [Lazarus] ***SPAM*** Re: Install of Qt5 widgetset fails on Mac Ventura

2022-11-27 Thread Giuliano Colla via lazarus
Il 26/11/22 09:20, zeljko ha scritto: On 25. 11. 2022. 23:01, Giuliano Colla wrote: Il 25/11/2022 21:58, zeljko ha scritto: On 25. 11. 2022. 19:29, Giuliano Colla via lazarus wrote: I tried to install QT5 version 5.6.2 on my Mac, following the wiki instructions but installation fails

Re: [Lazarus] Install of Qt5 widgetset fails on Mac Ventura

2022-11-25 Thread Giuliano Colla via lazarus
Il 25/11/2022 21:58, zeljko ha scritto: On 25. 11. 2022. 19:29, Giuliano Colla via lazarus wrote: I tried to install QT5 version 5.6.2 on my Mac, following the wiki instructions but installation fails. qmake executes properly and generates a Makefile, but make fails with this error

[Lazarus] Install of Qt5 widgetset fails on Mac Ventura

2022-11-25 Thread Giuliano Colla via lazarus
I tried to install QT5 version 5.6.2 on my Mac, following the wiki instructions but installation fails. qmake executes properly and generates a Makefile, but make fails with this error message:  ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code

Re: [Lazarus] Debug issue on Mac Ventura

2022-11-12 Thread Giuliano Colla via lazarus
the debugger window not being hidden behind the editor window, but I'll sort it out, I hope! Giuliano Il 12/11/2022 22:00, Giuliano Colla via lazarus ha scritto: Hi folks, I just installed Lazarus (2.2.4) on my new MacBook pro 16", which runs the Ventura Os. Everything is ok, except the debugg

[Lazarus] Debug issue on Mac Ventura

2022-11-12 Thread Giuliano Colla via lazarus
Hi folks, I just installed Lazarus (2.2.4) on my new MacBook pro 16", which runs the Ventura Os. Everything is ok, except the debugger. I followed the  instructions on the wiki page, selected the LLDB debugger, but both with "Enable Dwarf 3 (-gw3)" and "Enable Dwarf2 with sets" the debugger

Re: [Lazarus] Help! Lazarus compile fails.

2020-05-09 Thread Giuliano Colla via lazarus
Il 08/05/2020 15:17, Bo Berglund via lazarus ha scritto: So whatever you do, do*not* copy the entire config dir to a new name and use it with the new Lazarus!!! Instead create a new*empty* dir to use instead and if needed copy the editoroptions.xml file and perhaps some other settings file

Re: [Lazarus] Help! Lazarus compile fails.

2020-05-08 Thread Giuliano Colla via lazarus
Il 07/05/2020 13:55, Bo Berglund via lazarus ha scritto: I would not "upgrade" an installation, rather I would install a new version along side of the existing one. And I always install fpc/lazarus inside of the home dir instead of using a global installation. I just gave a quick information.

[Lazarus] Help! Lazarus compile fails.

2020-05-07 Thread Giuliano Colla via lazarus
Hi folks, I've been stuck for a long time to lazarus 1.8 in order to maintain installed applications. Now, before starting a new development I tried to upgrade to 2.0.8 but lazarus rebuild to install my custom packages fails. Platform is Linux, OS is CentOs 6. The error reported after the

Re: [Lazarus] Cross-compile on Windows for Linux Raspbian (Raspberry Pi) - what are the requirements?

2019-11-24 Thread Giuliano Colla via lazarus
Il 24/11/2019 10:08, Bo Berglund via lazarus ha scritto: Since I never ever created an environment for cross-compiling on Lazarus I really need a simple to follow byt full description on how to accomplish the task. Is it even possible for RPi? I can't help you as far as Windows is concerned,

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Giuliano Colla via lazarus
Il 24/11/2019 11:48, Florian Klämpfl via lazarus ha scritto: What to do with extended constants and their handling in the compiler if the target platform has it but the target platform does not support it? Maybe an AND condition? Use extended type only if both platforms support it?

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Giuliano Colla via lazarus
Il 24/11/2019 01:17, Sven Barth via lazarus ha scritto: There is the plan to add software floating point support for Extended to the compiler for platforms like Win64, but it's not a trivial endeavour. Maybe a silly question, but wouldn't it much simpler to have the compiler not use the

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-23 Thread Giuliano Colla via lazarus
Il 20/11/2019 19:19, R Smith via lazarus ha scritto: The problem I've run into is a simple program (made in Lazarus) where I use floating point constants. It compiles and runs perfectly on Windows, but when cross-compiling for Linux, it fails for specific floating point values. I realise

Re: [Lazarus] Separation of source code and compiled units

2019-11-02 Thread Giuliano Colla via lazarus
Il 02/11/2019 11:26, Karl-Michael Schindler via lazarus ha scritto: I am working on the package description for lazarus for MacPorts and are struggling with the following: $PREFIX/share/lazarus contains the source code as well as the compiled units. In case lazarus is recompiled the directory

Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-25 Thread Giuliano Colla via lazarus
Il 24/01/2019 20:52, Sven Barth via lazarus ha scritto: I take it those are resistive touch screens? For those calibration is sometimes necessary (especially older ones as you said). For capacitive touch panels (be it smartphone or tablet) I haven't found the need for that. Yes they are.

Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-25 Thread Giuliano Colla via lazarus
Il 24/01/2019 21:42, Luca Olivetti via lazarus ha scritto: @Giuliano, in my case it just manages the UI, but I didn't decide the OS. That's the reason why, some decades ago, tired of being conditioned by technical decisions taken by non-technical people, me and two other guys with a similar

Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Giuliano Colla via lazarus
Il 24/01/2019 14:34, Sven Barth via lazarus ha scritto: No, Windows 10 hides the cursor if no input device (mouse, touchpad) besides a touchscreen is detected. Cause in that case a cursor "makes no sense". Note: this does not mean I agree with that, only that Microsoft thinks that. Just

Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Giuliano Colla via lazarus
Il 23/01/2019 15:49, Luca Olivetti via lazarus ha scritto: This isn't strictly a lazarus issue, but my google fu is failing me. It turns out that windows 10 with a touch screen hides the mouse cursor, so Screen.Cursor=crHourGlass does nothing. Did you try taking advantage of such Windows

Re: [Lazarus] Auto session store etc.

2019-01-04 Thread Giuliano Colla via lazarus
Il 04/01/2019 14:27, Florian Klämpfl via lazarus ha scritto: If there had been one (seems Ubuntu and derivatives removed hibernation (!!, remember, we are in 2018, not 1998) in 18.04, I didn't ask about this feature. With a good distro I didn't mean Ubuntu, which is the opposite of what a

Re: [Lazarus] Auto session store etc.

2019-01-04 Thread Giuliano Colla via lazarus
Il 04/01/2019 12:08, Florian Klämpfl via lazarus ha scritto: Is there any possibility that lazarus auto stores the current session (project file, source files, session information etc.) every s? Background is that I am starting another trial to use linux as desktop system but within in

Re: [Lazarus] Crowdfunding to speed up the development of pas2js in Lazarus Widgetset and fpDebug to FPC

2018-12-21 Thread Giuliano Colla via lazarus
Il 21/12/2018 19:15, Michael Van Canneyt via lazarus ha scritto: If we decide on using a crowdfunding platform, I would rather go for one of the sites mentioned here: Given the amount of funds raised and the number of projects involved, I believe that a simple grid in an html page, showing

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

2018-11-22 Thread Giuliano Colla via lazarus
Easy way to check: Launch the script using a different locale. E. G. : LANG=C ; whatever.sh If successful it is a matter of localization. If it fails, a matter of environment, such as missing binutils, or something of this kind. Giuliano Inviato da iPhone > Il giorno 22 nov 2018, alle ore

[Lazarus] Raw TBitmap objects vs LCL TBitmap properties inconsistencies

2018-09-12 Thread Giuliano Colla via Lazarus
Hi Lazarus experts, I have noticed a number of apparent inconsistencies which make life a bit complicate if you need to play with visual properties of LCL components. If you need a different canvas brush, you need to change a button glyph, or to dynamically change a TImage (just to make a

Re: [Lazarus] Usage of Serial in a testing program?

2018-09-10 Thread Giuliano Colla via Lazarus
Il 10/09/2018 17:30, Bo Berglund via Lazarus ha scritto: I hope that it helps. Yes it does, but it would have been even better if not full of HTML tags and stuff. I have edited out most but I guess there are some still left... For example inside the code there may be some things like rather

Re: [Lazarus] Usage of Serial in a testing program?

2018-09-10 Thread Giuliano Colla via Lazarus
Il 10/09/2018 17:30, Bo Berglund via Lazarus ha scritto: Unfortunately not possible in the real case because the file transfer protocol of the device only sends a header with the count of the data to follow and then streams all of the bytes I don't know how your application is built, but

Re: [Lazarus] Usage of Serial in a testing program?

2018-09-10 Thread Giuliano Colla via Lazarus
Il 10/09/2018 17:30, Bo Berglund via Lazarus ha scritto: This seems only to deal with ports 1..9, what about the higher numbered ports 10..255? And would it not be a long execution time for testing all 255 possible com ports on Windows? In my experience both Linux and Windows if you connect a

Re: [Lazarus] Usage of Serial in a testing program?

2018-09-10 Thread Giuliano Colla via Lazarus
Il 09/09/2018 13:33, Bo Berglund via Lazarus ha scritto: I am writing a testing application for checking out a TCP to Serial bridge component. I am using Lazarus 1.8.0 and fpc 3.0.4 on Windows 7 For the serial port handling I found the "built-in" Serial unit

Re: [Lazarus] How to use two different versions of FPC

2018-05-10 Thread Giuliano Colla via Lazarus
Il 09/05/2018 12:34, Joost van der Sluis via Lazarus ha scritto: That's more a hack then a solution I fail to grasp why startlazarus should be a feature, and fpc.sh should be a hack. Having multiple fpc.cfg files, as it may be required by multiple fpc installations requires invoking the

Re: [Lazarus] How to use two different versions of FPC

2018-05-08 Thread Giuliano Colla via Lazarus
Il 07/05/2018 16:54, Gabor Boros via Lazarus ha scritto: Hi All, My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8. Sometimes I try some things with Lazarus trunk also. It is easy. But now build up a new development

Re: [Lazarus] Qt WS on Raspberry pi 3

2018-05-05 Thread Giuliano Colla via Lazarus
Il 02/05/2018 20:52, Mark Morgan Lloyd via Lazarus ha scritto: When you say "WS" what specifically do you mean? I was meaning compiling (or cross-compiling from) and running Lazarus applications using the Qt widgetset. From your reply I gather that you've been successful with Qt designer,

[Lazarus] Qt WS on Raspberry pi 3

2018-05-02 Thread Giuliano Colla via Lazarus
Hi all, before starting from scratch, and falling in the same pitfalls someone else has already learned how to avoid, is there anyone who's already successfully managed to use the Qt WS on Rasbian for a Rapberry PI 3? Thanks in advance for any hint. Giuliano --

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread Giuliano Colla via Lazarus
Il 25/04/2018 13:05, Michael Van Canneyt via Lazarus ha scritto: Where are they located? packages/fcl-image Thanks to you and to Ondrej. Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Giuliano Colla via Lazarus
Il 22/04/2018 17:39, Mattias Gaertner via Lazarus ha scritto: And what to do with W := Image1.Picture.BItmap.Width? You're right, there's no easy way out. The original sin has been maybe to call Bitmap a TPicture property which isn't really a TBitmap, as the GetBitmap and SetBitmap methods

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Giuliano Colla via Lazarus
Il 22/04/2018 13:22, Michael Van Canneyt via Lazarus ha scritto: This is how all properties that are  TPersistent descendents work, so this behaviour should not come as a surprise. I wouldn't say so. E.g. TCanvas is a TPersistent descendent, but the Canvas property of a TCustomControl is

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Giuliano Colla via Lazarus
Il 22/04/2018 13:49, Ondrej Pokorny via Lazarus ha scritto: Do you really mean that Image1.Picture.Bitmap.SomeProperty := SomeValue; should apply SomeProperty := SomeValue on a copied object of Bitmap and produce a memory leak? No, I mean that like Image1.Picture.Bitmap := SomeBitmap;

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Giuliano Colla via Lazarus
Il 21/04/2018 18:07, Vojtěch Čihák via Lazarus ha scritto: @ MyBitmap := Image1.Picture.Bitmap; This line only copies pointer, but Image1.Picture.Bitmap belongs to Image1 and it should care itself. That's what I had guessed, but this means that there's a patent inconsistency, as shown in

Re: [Lazarus] Drag (and show) images

2018-04-13 Thread Giuliano Colla via Lazarus
Il 13/04/2018 02:40, Donald Ziesig via Lazarus ha scritto: You're right.  It gets *close* but not quite there.  I can move the control so long as the mouse is *not* over the control while it is moving :-(. I will look at this closer in the morning and see if I can work around it (or if there

Re: [Lazarus] How to catch an unhandled exception?

2018-03-09 Thread Giuliano Colla via Lazarus
Il 09/03/2018 10:14, Gabor Boros via Lazarus ha scritto: Any idea how to detect what/where is the source of the exception? I use Linux 64bit, FPC 3.0.4 and Lazarus fixes_1_8. To obtain meaningful information from gdb I do the following: 1) Compile both Lazarus LCL and fpc with debug info 2)

Re: [Lazarus] Lazarus Digest, Vol 121, Issue 49

2018-03-05 Thread Giuliano Colla via Lazarus
Il 01/03/2018 23:44, Chavoux Luyt via Lazarus ha scritto: I suppose there is some kind of magic involved that makes it work when recompiling the IDE with the new packages, but I would like to understand what. The magic is performed by Lazarus IDE, and by startlazarus. If Lazarus IDE detects

Re: [Lazarus] An expression is returning false, why?

2018-03-05 Thread Giuliano Colla via Lazarus
Il 05/03/2018 09:41, Lubos Pintes via Lazarus ha scritto: Hello and thank. And in general, if I have a TControl instance, can you tell me a reliable algorithm that tells me if the control has a focus? By definition, the focused control is the control which receives keyboard input. That's

Re: [Lazarus] Translating a small C program to pascal (on lazarus)

2018-02-26 Thread Giuliano Colla via Lazarus
Il 26/02/2018 03:51, Carlos E. R. via Lazarus ha scritto: Ah! I didn't realize it could translate the declarations on a .c file, I thought it was only for .h files. I just had a quick test, but... I'll have to read on it, the quick test crashes: Well actually it is only for .h files, but as

Re: [Lazarus] Translating a small C program to pascal (on lazarus)

2018-02-25 Thread Giuliano Colla via Lazarus
Il 25/02/2018 20:52, Carlos E. R. via Lazarus ha scritto: I want to translate a little Linux C program (600 lines) to pascal (so that I can then add my parts in comfort). I failed to find a good automated tool in Linux. I had a look here: Did you consider h2pas (which comes with

Re: [Lazarus] component for database ADS

2018-02-21 Thread Giuliano Colla via Lazarus
Il 22/02/2018 01:23, Paola Bruccoleri via Lazarus ha scritto: Hello everyone In the company where we work, we use the ADS database (advantage database server) version 11.1 I have downloaded version 1.8 of lazarus. Is there any component for that database? I would like to be able to migrate

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Giuliano Colla via Lazarus
Il 18/02/2018 19:06, Graeme Geldenhuys via Lazarus ha scritto: Are there any defined tests or test projects that can confirm LCL-Win32 is compatible with Delphi's VCL? I'm talking about events, order of events firing. I hope that nobody will spend time which could be used for constructive

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Giuliano Colla via Lazarus
Il 18/02/2018 19:42, Ondrej Pokorny via Lazarus ha scritto: Do you mean TForm.OnPaint? Yes, sorry for the typo. Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Giuliano Colla via Lazarus
Il 18/02/2018 11:54, Ondrej Pokorny ha scritto: What events are generated? onFormPaint Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Giuliano Colla via Lazarus
Il 18/02/2018 11:09, Ondrej Pokorny via Lazarus ha scritto: On 18.02.2018 0:59, Graeme Geldenhuys via Lazarus wrote: Now comes the BIG question... Does LCL have a reference implementation? Yes, it does. It is Delphi. That's not true, as far as events triggering is concerned. Delphi

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Giuliano Colla via Lazarus
Il 18/02/2018 00:59, Graeme Geldenhuys via Lazarus ha scritto: Now comes the BIG question... Does LCL have a reference implementation? Which LCL widgetset gives the correct behaviour and feature list, that the other LCL widgetsets need to follow or mimic? IMHO that's impossible to achieve.

Re: [Lazarus] High-DPI TImageList

2018-02-05 Thread Giuliano Colla via Lazarus
Il 05/02/2018 16:01, Ondrej Pokorny via Lazarus ha scritto: No, it's not needed if no extra resolutions are stored. I'll check if it can be omitted (it's a manually added entry and not a normal property). If not, I'll add an ignore entry for 1.8.2. In the past undefined properties were

[Lazarus] Run parameters and Launching application bug?

2018-01-02 Thread Giuliano Colla via Lazarus
I seldom use launching applications from a terminal window, so I happened to notice only recently what appears to me to be a regression from older Lazarus versions. In the Run Parameters window, selecting "Use launching application" currently disables "Command line parameters" (Lazarus 1.6,

Re: [Lazarus] How to strip debug symbols from exe file?

2017-12-30 Thread Giuliano Colla via Lazarus
Il 30/12/2017 12:54, Bo Berglund via Lazarus ha scritto: Because the server I use is located in Austin, Tx and I am in Sweden. Have to use a VPN, which is not fast at all. In that case you might consider: 1) To use git in place of svn. It is unbelievably

Re: [Lazarus] TTrackbar and Wine

2017-12-22 Thread Giuliano Colla via Lazarus
> Il giorno 22 dic 2017, alle ore 14:02, zeljko via Lazarus > ha scritto: > >> On 12/22/2017 01:26 PM, Vojtěch Čihák via Lazarus wrote: >> I can confirm behavior in Wine. When you change trVertical to trHorizotal - >> everything OK. But oppositely, trackbar

[Lazarus] TTrackbar and Wine

2017-12-22 Thread Giuliano Colla via Lazarus
Sorry, this is almost OT, but I don't know where else to ask. While checking an application, I found a strange problem: under Windows WS when TTrackbar Orientation is trVertical, it doesn't behave properly under Wine. The widget size is correct, but Tick Marks and bar movement behave

[Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread Giuliano Colla via Lazarus
This snippet of code, which executes as expected with GTK2 WS, fails with QT WS: procedure TForm1.btnWsizeClick(Sender: TObject); var  aHandle: THandle;   aWidth,aHeight: Integer;   aRect: TRect; begin   aHandle:= Form1.Handle;   if GetWindowSize(aHandle,aWidth,aHeight) then begin    

Re: [Lazarus] Note to new high-DPI icons

2017-12-10 Thread Giuliano Colla via Lazarus
Il 10/12/2017 11:45, zeljko via Lazarus ha scritto: No way, in that case we must split Translators, Developers etc ...there's simply no point to touch contributions.txt. +1 Of all the things that can be done to improve Lazarus and fpc, I believe that contribution.txt ranks in a very low

Re: [Lazarus] External/out-of-tree LCL widgetset

2017-12-01 Thread Giuliano Colla via Lazarus
Il 01/12/2017 08:01, Graeme Geldenhuys via Lazarus ha scritto: And your last 3 words is the most important part - "if done right". In my 20+ years of using Delphi, I can count of one hand how many company products I've seen "done right" using the RAD style approach. And I've worked at plenty

[Lazarus] Ping

2017-11-26 Thread Giuliano Colla via Lazarus
Just a test to see if server is still alive -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Weird object variables access [SOLVED] - Sorry for the noise!

2017-11-03 Thread Giuliano Colla via Lazarus
Il 25/10/2017 14:12, Giuliano Colla via Lazarus ha scritto: I raised some noise about procedural variables in Delphi mode, but it turns out that I had failed to notice some discrepancies while porting code back and forth from Delphi to Lazarus. 1. I had failed to notice that RAD Studio

Re: [Lazarus] Who is using Object Pascal in production?

2017-10-29 Thread Giuliano Colla via Lazarus
Il 28/10/2017 16:45, Marcos Douglas B. Santos via Lazarus ha scritto: Do you have problems to find new Pascal programmers? Experienced Pascal programmers are hard to find here in Italy. But we've found that a good young programmer (usually trained in C) usually appreciates the beauty of

Re: [Lazarus] Who is using Object Pascal in production?

2017-10-28 Thread Giuliano Colla via Lazarus
Il 28/10/2017 02:42, Luiz Americo Pereira Camara via Lazarus ha scritto: I have similar issue. I'm looking for third party companies to accelerate development of my current app (used in production by around 200 people a day) and they all say that is obsolete technology and will not find

Re: [Lazarus] Who is using Object Pascal in production?

2017-10-27 Thread Giuliano Colla via Lazarus
Il 27/10/2017 14:26, Marcos Douglas B. Santos via Lazarus ha scritto: I would like to propose a discussion about "What is the relevance of Object Pascal nowadays". I don't want waste your time. I just want to know if we are growing and being more relevant or not. I use Object Pascal (mostly

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-26 Thread Giuliano Colla via Lazarus
Il 25/10/2017 17:15, Sven Barth ha scritto: That's not what I asked. The documentation used a procedure pointer type, thus the documentation would still be correct if it works as the allowed usage of a method pointer type in past versions would then indeed have been a bug in Delphi. In

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-25 Thread Giuliano Colla via Lazarus
Il 25/10/2017 14:20, Sven Barth via Lazarus ha scritto: Did you test with a procedure pointer type or a method pointer type? Cause this might be the important difference here as the example uses a procedure pointer type. I tested assigning an untyped pointer to a method pointer type, because

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-25 Thread Giuliano Colla via Lazarus
Il 25/10/2017 14:17, Sven Barth via Lazarus ha scritto: 1) The syntax @ProcIdentifier := whatever is no more valid. It's no more possible to assign a pointer to a method type without typecasting. Probably for good reason. You're right. It was misleading. I was misled. Giuliano

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-25 Thread Giuliano Colla via Lazarus
Il 25/10/2017 13:41, Mattias Gaertner via Lazarus ha scritto: No. The Delphi syntax is "ProcIdentifier:=Proc" or "ProcIdentifier:=@Proc". The "@Some:=" means assign something to address of Some. Which is bogus. I guess Delphi's auto dereference actually translates this to @Some^:=. Still bogus,

  1   2   >