Re: [Lazarus] Using Microsoft Excel workbooks with Lazarus

2024-02-20 Thread Michael Van Canneyt via lazarus
On Tue, 20 Feb 2024, Larry Dalton via lazarus wrote: I am writing an application that requires extensive use of Microsoft Excel .xlsx worksheets. I have no success using OCDB connections. Does anyone use TODBCConnection with excel? There are reports that it works. Why not use the

Re: [Lazarus] DBGrid displays Float as integer

2024-02-01 Thread Michael Van Canneyt via lazarus
On Thu, 1 Feb 2024, John Landmesser via lazarus wrote: In my SQlite Database laufdaten.db column "km_gelaufen"  is of Type float. But SQlite does not know this type and if i understood that correct SQLite  creates this type as needed?! If i execute: "SELECT CAST(AVG(km_gelaufen) *AS REAL*)

Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-14 Thread Michael Van Canneyt via lazarus
On Sun, 14 Jan 2024, Bo Berglund via lazarus wrote: On Sat, 13 Jan 2024 17:03:55 +0100 (CET), Michael Van Canneyt via lazarus wrote: You could also use Synapse. I always prefer synapse over Indy. So I have now verified that I cannot use Indy10 for email sending anymore :( ... I have

Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-13 Thread Michael Van Canneyt via lazarus
On Sat, 13 Jan 2024, Bo Berglund via lazarus wrote: On Sat, 13 Jan 2024 17:03:55 +0100 (CET), Michael Van Canneyt via lazarus wrote: Or you use the system installed mailer. That's what I do. I write the mail to file and invoke sendmail. No hassle with TLS, failed connections and whatnot

Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-13 Thread Michael Van Canneyt via lazarus
On Sat, 13 Jan 2024, Bo Berglund via lazarus wrote: Indy 10 uses a completely outdated version of the SSL library, which does not have the most recent cryptographic routines (notably for tls). Most likely the server was updated and now rejects this old version. It looks likely. I will

Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-13 Thread Michael Van Canneyt via lazarus
On Sat, 13 Jan 2024, Bo Berglund via lazarus wrote: I wrote a commit reporting application for Windows Server16 back in 2018 using then current Lazarus/Fpc. It is a command line program called from a hook in subversion to distribute the log message and details of commits among co-workers.

[Lazarus] Changes to TProcess

2024-01-03 Thread Michael Van Canneyt via lazarus
Hello, I merged a significant evolution of the TProcess component to FPC trunk. Until recently, there were 2 options for TProcess when starting a new process: - use the parent process standard input/output/error - use pipes to make the standard input/output/error available as streams in the

Re: [Lazarus] Lazarus and Wayland display manager

2024-01-01 Thread Michael Van Canneyt via lazarus
On Mon, 1 Jan 2024, Juha Manninen via lazarus wrote: On Sun, Dec 31, 2023 at 3:36 PM John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: Is that still true ... ? Wayland in general has strange issues?! As LCL binds to widgetsets like QT5 and GTK3, it should depend on

Re: [Lazarus] Dbnavigator won't post to MSACESS db

2023-12-10 Thread Michael Van Canneyt via lazarus
and transaction commit. The ApplyUpdates can be automated with the sqoAutoApplyUpdates option of the TSQLQuery, but the transaction commit should be implemented for example in the AfterApplyUpdates event. Michael. Sent from my iPhone On Dec 10, 2023, at 03:29, Michael Van Canneyt via lazarus

Re: [Lazarus] Dbnavigator won't post to MSACESS db

2023-12-10 Thread Michael Van Canneyt via lazarus
On Fri, 8 Dec 2023, Larry Dalton via lazarus wrote: I am using lazarus v2.2.6 on Windows 11. The form uses the following components: MBCCGator: TDBNavigator; MBCCGrid: TDBGrid; MBCCSource: TDataSource; MBCC_Connector: TODBCConnection; MBCCQuery: TSQLQuery; MBCC_Trans:

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

2023-12-04 Thread Michael Van Canneyt via lazarus
On Mon, 4 Dec 2023, Bo Berglund via lazarus wrote: On Mon, 4 Dec 2023 11:40:02 +0100 (CET), Michael Van Canneyt via lazarus wrote: If you have multiple compilers on your system, you may be using a different compiler compared to when you do not specify this parameter. I have several

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

2023-12-04 Thread Michael Van Canneyt via lazarus
On Mon, 4 Dec 2023, Bo Berglund via lazarus wrote: (preferably use the full path to the ppcarm compiler) If you then still get the error, it means the makefiles for Lazarus indeed do not support your target, but how to fix that is up to the lazarus team to answer. Michael. Thanks!

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

2023-12-03 Thread Michael Van Canneyt via lazarus
On Sun, 3 Dec 2023, Bo Berglund via lazarus wrote: On Sat, 02 Dec 2023 19:03:41 +0100, Bo Berglund via lazarus wrote: And concerning the compiler: $ which fpc /home/bosse/bin/fpc $ which ppcarm /home/bosse/bin/ppcarm $ fpc Free Pascal Compiler version 3.2.2 [2023/11/29] for arm $

Re: [Lazarus] PasLibVLC based video player does not run on Linux...

2023-11-21 Thread Michael Van Canneyt via lazarus
On Tue, 21 Nov 2023, Bo Berglund via lazarus wrote: So something is not working in the Linux environment and I don't understand what. And whatever it is it does not generate any errors during compile/build on Linux. Thanks for responding! Much appreciated. I developed it on linux, so at

Re: [Lazarus] PasLibVLC based video player does not run on Linux...

2023-11-21 Thread Michael Van Canneyt via lazarus
On Tue, 21 Nov 2023, Bo Berglund via lazarus wrote: As I have written in other posts I am trying to port a video application from Windows to Linux, specifically on Raspberry Pi4B with either bullseye or bookworm operating systems. The application runs very well on Windows and is based on

Re: [Lazarus] Building lazarus broken ?

2023-11-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Nov 2023, Maxim Ganetsky via lazarus wrote: 19.11.2023 19:07, Michael Van Canneyt via lazarus пишет: Hi, I did some changes to the fpcunit support. All worked in the IDE. In order to push my changes, I did a git pull. The change broke the "make bigide" command, so

Re: [Lazarus] Building lazarus broken ?

2023-11-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Nov 2023, Maxim Ganetsky via lazarus wrote: 19.11.2023 19:21, Michael Van Canneyt via lazarus пишет: On Sun, 19 Nov 2023, Michael Van Canneyt via lazarus wrote: Hi, I did some changes to the fpcunit support. All worked in the IDE. In order to push my changes, I did a git

Re: [Lazarus] Building lazarus broken ?

2023-11-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Nov 2023, Michael Van Canneyt via lazarus wrote: Hi, I did some changes to the fpcunit support. All worked in the IDE. In order to push my changes, I did a git pull. The change broke the "make bigide" command, so I was told by the CI/CD. Turns out the mak

[Lazarus] Building lazarus broken ?

2023-11-19 Thread Michael Van Canneyt via lazarus
Hi, I did some changes to the fpcunit support. All worked in the IDE. In order to push my changes, I did a git pull. The change broke the "make bigide" command, so I was told by the CI/CD. Turns out the makefiles did not respect the lazarus dependencies in the packages: the new dependency

Re: [Lazarus] Running FPC in the browser...

2023-10-23 Thread Michael Van Canneyt via lazarus
On Sun, 22 Oct 2023, Juha Manninen via lazarus wrote: How big is the difference in performance? I guess it is very big. Ten-fold maybe? I doubt that it will be so much. Webassembly engines are highly optimized. But compilation with the webassembly binary still needs some work before we

[Lazarus] Running FPC in the browser...

2023-10-22 Thread Michael Van Canneyt via lazarus
Hello, Thanks to the efforts of Nikolay Nikolov, the FPC compiler can now recompile itself to webassembly (the support for the goto statement made this possible). As a consequence, this means FPC can now be run in a browser. See the screenshot at

Re: [Lazarus] Window Position

2023-09-22 Thread Michael Van Canneyt via lazarus
On Fri, 22 Sep 2023, Timothy Groves via lazarus wrote: Whenever a program I have written opens a created form, that form always appears precisely where it sat at design time, even if that would be way off the screen (my workstation has a 3440x1440 display, but the laptop I run many programs

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-29 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Sergey Bodrov wrote: So far, nothing catchy has been offered. WideChar RTL Note, that WinAPI says: * A Windows code page version with the letter "A" used to indicate "ANSI" * A Unicode version with the letter "W" used to indicate "wide". so, it perfectly matches

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Mattias Gaertner via lazarus wrote: On 28.07.23 13:42, Michael Van Canneyt via lazarus wrote: On Fri, 28 Jul 2023, Alexey Torgashin via lazarus wrote: Objection duly noted. Yes, 'Unicode RTL' sounds very bad. Before it was Unicode too. So, "UTF16

Re: [Lazarus] Compilation failed : PolygonNonZeroWindingRule unknown

2023-07-28 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Maxim Ganetsky via lazarus wrote: 28.07.2023 16:10, Michael Van Canneyt via lazarus пишет: On Fri, 28 Jul 2023, Werner Pamler via lazarus wrote: Am 28.07.2023 um 11:37 schrieb Michael Van Canneyt via lazarus: I updated my lazarus today, and the following fails

Re: [Lazarus] Compilation failed : PolygonNonZeroWindingRule unknown

2023-07-28 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Werner Pamler via lazarus wrote: Am 28.07.2023 um 11:37 schrieb Michael Van Canneyt via lazarus: I updated my lazarus today, and the following fails: procedure TLazCanvas.Polygon(const Points: array of TPoint; Winding: Boolean); begin   PolygonNonZeroWindingRule

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Alexey Torgashin via lazarus wrote: Objection duly noted. Yes, 'Unicode RTL' sounds very bad. Before it was Unicode too. So, "UTF16 RTL", "WideChar RTL" or so. The "Unicode" refers to String = UnicodeString. The latter has been in use for what, 15-20 years ? The

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via lazarus
On Fri, 28 Jul 2023, Adriaan van Os via fpc-devel wrote: Michael Van Canneyt via fpc-devel wrote: Hello, I have just completed phase one of the "Unicode RTL" effort. I object to the name "Unicode" RTL. Where people talk about what they call "Unicode" they usually mean UCS-16 or UTF-16

[Lazarus] Compilation failed : PolygonNonZeroWindingRule unknown

2023-07-28 Thread Michael Van Canneyt via lazarus
Hi, I updated my lazarus today, and the following fails: procedure TLazCanvas.Polygon(const Points: array of TPoint; Winding: Boolean); begin PolygonNonZeroWindingRule := Winding; inherited Polygon(Points); end; it does not know PolygonNonZeroWindingRule. I removed that line, and all

[Lazarus] FPC compiler error messages file update

2023-07-27 Thread Michael Van Canneyt via lazarus
Hello, We're preparing FPC fixes release 3.2.4. There are some new error messages in the compiler/msg/errore.msg file, they need to be translated to other available languages: errorct.msg (Catalan) errorda.msg (Danish) errord.msg (German, CP 850) errordu.msg (German, UTF8) errores.msg

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-25 Thread Michael Van Canneyt via lazarus
On Tue, 25 Jul 2023, Luca Olivetti via lazarus wrote: El 24/7/23 a les 23:20, Michael Van Canneyt via lazarus ha escrit: To this end, it would be helpful to add a paragraph on the wiki page underlining how to retain the single-byte RTL; or, if no user action is necessary, mention

Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via lazarus
On Mon, 24 Jul 2023, Kirinn via fpc-devel wrote: Hi, A "unicode" RTL is of course great for targeting legacy Windows platforms, but for those of us on Linux, UTF-8 is the way. It is not only for legacy windows platforms. The target platform is secondary. What to use depends more on your

[Lazarus] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via lazarus
Hello, I have just completed phase one of the "Unicode RTL" effort. The 'Unicode RTL' is an effort to be more Delphi compatible: - Char = Unicode Char and String = UnicodeString - Provide dotted filenames. Basically closer to the RTL as it exists in more recent versions of Delphi

Re: [Lazarus] MJPEG streamer

2023-07-23 Thread Michael Van Canneyt via lazarus
On Sun, 23 Jul 2023, Steve Gatenby via lazarus wrote: Would anybody know if there is a component / code to enable reading an mjpeg stream from a http camera to a Lazarus form/panel (or anything really) Dont mind installing libraries etc - Looking to suit Linux specifically though vlc

Re: [Lazarus] Lazarus trunk version number

2023-07-01 Thread Michael Van Canneyt via lazarus
On Sat, 1 Jul 2023, Sven Barth via lazarus wrote: Maxim Ganetsky via lazarus schrieb am Fr., 30. Juni 2023, 15:48: 30.06.2023 16:44, Maxim Ganetsky via lazarus пишет: 30.06.2023 14:27, Martin Frb via lazarus пишет: On 30/06/2023 12:51, Michael Van Canneyt via lazarus wrote: On Fri, 30

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Michael Van Canneyt via lazarus
On Fri, 30 Jun 2023, Maxim Ganetsky via lazarus wrote: 30.06.2023 16:55, Michael Van Canneyt via lazarus пишет: On Fri, 30 Jun 2023, Maxim Ganetsky via lazarus wrote: Basically, version numbering is all about "marketing". By always increasing major version we tell to the genera

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Michael Van Canneyt via lazarus
On Fri, 30 Jun 2023, Maxim Ganetsky via lazarus wrote: Basically, version numbering is all about "marketing". By always increasing major version we tell to the general audience that major release indeed contains major changes (which is always the case). So we solve/improve "marketing"

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Michael Van Canneyt via lazarus
On Fri, 30 Jun 2023, Maxim Ganetsky via lazarus wrote: 30.06.2023 14:27, Martin Frb via lazarus пишет: On 30/06/2023 12:51, Michael Van Canneyt via lazarus wrote: On Fri, 30 Jun 2023, Juha Manninen via lazarus wrote: On Friday, June 30, 2023, John Landmesser via lazarus < laza

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Michael Van Canneyt via lazarus
On Fri, 30 Jun 2023, Martin Frb via lazarus wrote: On 30/06/2023 13:27, Martin Frb via lazarus wrote: But, there was no need (anymore) to reserve 2 digits for major releases. When 1.0 was released there was no need for further major releases to be 1.2 instead of 2.0. I forgot to add

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Michael Van Canneyt via lazarus
On Fri, 30 Jun 2023, Juha Manninen via lazarus wrote: On Friday, June 30, 2023, John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: perhaps that should have become 3.00 ? Lazarus *3.99* (rev main_3_99-41-g3d8dd85474) FPC 3.2.2 x86_64-linux-gtk2 You are looking at trunk,

Re: [Lazarus] Sciter for Lazarus: VCL Handle vs. LCL Handle

2023-06-14 Thread Michael Van Canneyt via lazarus
On Wed, 14 Jun 2023, Marcos Douglas B. Santos wrote: On windows, the handle should work the same. If you're working on another platform, then it works very different, and then you'll need to see what sciter actually expects. I would like it to work on Windows, Linux and MacOS, but for now

Re: [Lazarus] Sciter for Lazarus: VCL Handle vs. LCL Handle

2023-06-14 Thread Michael Van Canneyt via lazarus
On Tue, 13 Jun 2023, Marcos Douglas B. Santos via lazarus wrote: Hi, I'm trying to run Sciter.TIS https://sciter.com/download/ on Lazarus, which could be an open source project in the future — yes, not the newer version (named Sciter.JS) as I don't need these new features. I've started

[Lazarus] Output directories

2023-06-07 Thread Michael Van Canneyt via lazarus
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 "/usr/share/lazarus/2.2.4/components/fpweb/lib/x86_64-linux" of package "weblaz 1.0"

Re: [Lazarus] Who uses "caret past EOL"?

2023-06-02 Thread Michael Van Canneyt via lazarus
On Fri, 2 Jun 2023, Martin Frb via lazarus wrote: On 02/06/2023 15:07, Michael Van Canneyt via lazarus wrote: On Fri, 2 Jun 2023, Martin Frb via lazarus wrote: If you do, do you use it within the range of the "longest line" only? What if I want to add a comment at column

Re: [Lazarus] Who uses "caret past EOL"?

2023-06-02 Thread Michael Van Canneyt via lazarus
On Fri, 2 Jun 2023, Martin Frb via lazarus wrote: If you do, do you use it within the range of the "longest line" only? What if I want to add a comment at column 60 (think explanation about enumerated value) but the max line length is 40 ? Now I click at col 60 and add the comment. Will

Re: [Lazarus] locate command for dBase

2023-05-26 Thread Michael Van Canneyt via lazarus
On Fri, 26 May 2023, wkitty42--- via lazarus wrote: On 5/25/23 8:12 PM, john Ward via lazarus wrote:   if   temp.Locate('temp_no', (tempid),[loPartialkey])   then   begin     showmessage('we found the field or Partial' + tempid);     showmessage('current temp_no is ');     tno :=

Re: [Lazarus] Some source editor context menu items broken

2023-05-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 May 2023, Mattias Gaertner via lazarus wrote: On Sun, 21 May 2023 10:48:30 +0200 (CEST) Michael Van Canneyt via lazarus wrote: [...] I saw a remark in main.pp that this is supposed to be faster than using the codetools: CurWordAtCursor := ASrcEdit.GetWordAtCurrentCaret

Re: [Lazarus] Some source editor context menu items broken

2023-05-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 May 2023, Luca Olivetti via lazarus wrote: El 21/5/23 a les 10:48, Michael Van Canneyt via lazarus ha escrit: Any solutions ? I found this issue a while ago (and I think I reported it here but I cannot find the message right now) and even if the context menu is greyed out

[Lazarus] Some source editor context menu items broken

2023-05-21 Thread Michael Van Canneyt via lazarus
Hello, The refactoring context menu item and the find identifier references context menu are broken. Type TSourceParser = Class(TObject) function ParseSource: TPasModule; end; With the cursor on "ParseSource", the 'Find identifier references' and 'Rename identifier' menu items in the

[Lazarus] Source Hint Popup window markup ?

2023-05-18 Thread Michael Van Canneyt via lazarus
Hi, The IDE - in its desire to be helpful - shows a popup whenever you hover your mouse over an identifier. It seems to me the popup contains some markdown (e.g. underscores): see attached screenshot. I assume this is supposed to be formatted ? If so, how to enable that formatting ?

Re: [Lazarus] Copilot, VS Code, and OmniPascal

2023-05-15 Thread Michael Van Canneyt via lazarus
On Mon, 15 May 2023, Anthony Walter via lazarus wrote: Hello all! I would very much like to use Github Copilot with Free Pascal, and possibly within the Lazarus IDE. I have been using Github Copilot a lot recently with my C and C# coding projects and have found it to be an immensely useful

Re: [Lazarus] Resources without RC files

2023-05-04 Thread Michael Van Canneyt via lazarus
On Thu, 4 May 2023, Ondrej Pokorny wrote: On 04.05.2023 08:38, Michael Van Canneyt wrote: On Thu, 4 May 2023, Ondrej Pokorny via lazarus wrote: How is it possible that the LFM files are included directly but *.SQL files are parsed as RC files? Because the file extension is recognized ?

Re: [Lazarus] Resources without RC files

2023-05-04 Thread Michael Van Canneyt via lazarus
On Thu, 4 May 2023, Ondrej Pokorny via lazarus wrote: Hello, I see that the LCL includes LFM files as resources directly without a *.RC file: {$R *.lfm} --- But if I do this with my custom file. E.g.: {$R *.sql} I get an "error when compiling resources": Compile Project, Mode:

Re: [Lazarus] TSQLConnector for MySQL non-standard port

2023-04-25 Thread Michael Van Canneyt via lazarus
On Mon, 24 Apr 2023, Koenraad Lelong via lazarus wrote: Hi, I would like to use a non-standard port for my MySQL-connection. Is this possible ? If so, how ? Standard port is 3306. I tried to add my non-standard port to the hostname (:), but that does not work: 'TMySQL57Connection :

Re: [Lazarus] TLS connection to MySQL

2023-04-20 Thread Michael Van Canneyt via lazarus
On Thu, 20 Apr 2023, Koenraad Lelong via lazarus wrote: Hi, I'm updating an application that uses TSQLConnector to connect to MySQL 5.7. The MySQL server (5.7.42) will be restricted to use only TSLv1.2 (or higher). Is this possible with TSQLConnector ? TLSv1.1 works without configuring

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

2023-03-27 Thread Michael Van Canneyt via lazarus
On Tue, 28 Mar 2023, Luca Olivetti via lazarus wrote: El 28/3/23 a les 0:01, Michael Van Canneyt ha escrit: My bad, I made a typo, it should have been MyException:=ExceptionClass(ut.FatalException).ClassType).Create(Exception(ut.FatalException).message) Thank you. Actually it is

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

2023-03-27 Thread Michael Van Canneyt via lazarus
On Mon, 27 Mar 2023, Luca Olivetti via lazarus wrote: El 27/3/23 a les 17:26, Luca Olivetti via lazarus ha escrit: El 27/3/23 a les 16:50, Michael Van Canneyt ha escrit: Ehm. In case of an exception, ut will never be freed ? That's what I said. I was looking for a way to free it *and*

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

2023-03-27 Thread Michael Van Canneyt via lazarus
On Mon, 27 Mar 2023, Luca Olivetti via lazarus wrote: El 27/3/23 a les 16:13, Michael Van Canneyt via lazarus ha escrit: On Mon, 27 Mar 2023, Luca Olivetti via lazarus wrote: El 27/3/23 a les 11:59, Luca Olivetti via lazarus ha escrit: [*] instead of opening the query I spawn a thread

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

2023-03-27 Thread Michael Van Canneyt via lazarus
On Mon, 27 Mar 2023, Luca Olivetti via lazarus wrote: El 27/3/23 a les 11:59, Luca Olivetti via lazarus ha escrit: [*] instead of opening the query I spawn a thread that opens it, wait for it to finish while executing Application.ProcessMessages and eventually reraise the exception that

Re: [Lazarus] Lazarus fails to build

2023-03-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Mar 2023, Mattias Gaertner via lazarus wrote: On Sun, 19 Mar 2023 00:00:02 +0100 (CET) Michael Van Canneyt wrote: [...] As this happens seldom there is no detection built in (yet) to handle this automatically. I added a simple detection, so in the future the IDE will not add

Re: [Lazarus] Lazarus fails to build

2023-03-18 Thread Michael Van Canneyt via lazarus
On Sat, 18 Mar 2023, Mattias Gaertner via lazarus wrote: On Sat, 18 Mar 2023 23:39:02 +0100 Martin Frb via lazarus wrote: [...] This error happens everytime, when packages become part of the core list. Because older IDE are not forward compatible with that sort of change. As this happens

Re: [Lazarus] Lazarus fails to build

2023-03-18 Thread Michael Van Canneyt via lazarus
On Sat, 18 Mar 2023, Martin Frb via lazarus wrote: If some functionality of the IDE uses laz.virtualtreeview then the IDE should properly list a depencency on that package, instead of adding it hardcoded in the IDE uses clause. As soon as a user installs the package in question (s)he will

[Lazarus] Lazarus fails to build

2023-03-18 Thread Michael Van Canneyt via lazarus
Hi, I did a git pull of latest lazarus sources. Someone added laz.virtualtreeview and fpdebuggerfp to the IDE uses clause. This caused the compilation to fail, since these units are also in the installed packages. For instance the online packagemanager also used laz.virtualtreeview, so

Re: [Lazarus] version `GLIBC_2.34' not found error when running app on different PC

2023-03-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Mar 2023, Bo Berglund via lazarus wrote: On Fri, 17 Mar 2023 08:43:55 +0100 (CET), Michael Van Canneyt via lazarus wrote: FPC has not changed. It still works the same. Everything that is under control of FPC is linked statically. But a complex GUI system like the LCL uses GTK

Re: [Lazarus] version `GLIBC_2.34' not found error when running app on different PC

2023-03-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Mar 2023, Bo Berglund via lazarus wrote: On Fri, 17 Mar 2023 08:53:01 +0300, Mehmet Erol Sanliturk via lazarus wrote: Some portability is obtained if the libraries are linked as "static" . If "dynamic" linking is selected , during execution of the program , the "same" library

Re: [Lazarus] small issue

2023-03-02 Thread Michael Van Canneyt via lazarus
On Thu, 2 Mar 2023, John Landmesser via lazarus wrote: if i try to compile an application with qt5 LCLwidgetType i get an error messages and thats ok: Error: /home/john1/lazarus/lcl/interfaces//qt5/qtobject.inc:43: undefined reference to

Re: [Lazarus] questioning ARequest: TFPHTTPConnectionRequest :)

2023-02-26 Thread Michael Van Canneyt via lazarus
On Sun, 26 Feb 2023, duilio foschi via lazarus wrote: my simple BE server uses this function to handle all inbound calls: procedure TTestHTTPServer.HandleRequest( var ARequest: TFPHTTPConnectionRequest; var AResponse: TFPHTTPConnectionResponse ); When the call is a POST, I want to read

Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-24 Thread Michael Van Canneyt via lazarus
On Fri, 24 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 17:16, Michael Van Canneyt ha escrit: write a TDataset descendant tailor made for this application, any pointer on how to write a minimal descendant? I'm looking at the TMemDataset implementation as an example, is it a

Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 13:52, Michael Van Canneyt via lazarus ha escrit: On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 11:11, Michael Van Canneyt via lazarus ha escrit: But IMO: in the first place you should ask

Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 11:11, Michael Van Canneyt via lazarus ha escrit: But IMO: in the first place you should ask yourself if displaying 10.000 records is what you actually want to do. No, I just need to display 20 or so records

Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 9:43, Michael Van Canneyt via lazarus ha escrit: Something like this: https://docwiki.embarcadero.com/RADStudio/Rio/en/Browsing_Tables_(FireDAC)#Live_Data_Window_Mode This is not something that the grid handles

Re: [Lazarus] TFPHTTPServer

2023-02-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Feb 2023, duilio foschi via lazarus wrote: I wrote a simple server using TFPHTTPServer. All incoming calls are processed using procedure HandleRequest(var ARequest: TFPHTTPConnectionRequest; var AResponse: TFPHTTPConnectionResponse); My first tests were ok and

Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote: El 23/2/23 a les 9:04, Luca Olivetti via lazarus ha escrit: Hello, do you know of any component/dataset combo that works like a TDBGrid but doesn't load all the records from the db when doing a refresh, just the ones that are

Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Feb 2023, Bo Berglund via lazarus wrote: I have used Lazarus on Windows and Linux many years and I have built the Linux versions from sources but used the official installer for Windows. On Linux I have had parallel versions of Lazarus but usually the same FPC and this has worked

Re: [Lazarus] Conditional Debugger breakpoints not working ?

2023-02-20 Thread Michael Van Canneyt via lazarus
On Mon, 20 Feb 2023, Martin Frb via lazarus wrote: On 20/02/2023 13:46, Michael Van Canneyt via lazarus wrote: I suggest you adapt the wiki to clarify all this. While you're at it, The link in the wiki page to the gdb convenience functions is broken. updated In general, I don't think

Re: [Lazarus] Conditional Debugger breakpoints not working ?

2023-02-20 Thread Michael Van Canneyt via lazarus
On Mon, 20 Feb 2023, Martin Frb via lazarus wrote: On 20/02/2023 12:31, Michael Van Canneyt via lazarus wrote: I'm trying to set a condition on a breakpoint. I have a local variable aUnit, type string: var   aUnit : string; I wish the breakpoint is only triggered when aUnit equals

[Lazarus] Conditional Debugger breakpoints not working ?

2023-02-20 Thread Michael Van Canneyt via lazarus
Hi, I'm trying to set a condition on a breakpoint. I have a local variable aUnit, type string: var aUnit : string; I wish the breakpoint is only triggered when aUnit equals 'termio'. So, in the breakpoint properties dialog, I enter the condition: aUnit='termio' It seems to have no

Re: [Lazarus] Folding ?

2023-02-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Feb 2023, Martin Frb wrote: On 19/02/2023 19:06, Michael Van Canneyt wrote: On Sun, 19 Feb 2023, Martin Frb via lazarus wrote: On 19/02/2023 12:28, Michael Van Canneyt via lazarus wrote: Hi, Is it possible to enable/disable code folding on a per-language basis

Re: [Lazarus] Folding ?

2023-02-19 Thread Michael Van Canneyt via lazarus
On Sun, 19 Feb 2023, Martin Frb via lazarus wrote: On 19/02/2023 12:28, Michael Van Canneyt via lazarus wrote: Hi, Is it possible to enable/disable code folding on a per-language basis  ? No, or only in the way you described below. Or by changing the source in each highlighter, and make

[Lazarus] Folding ?

2023-02-19 Thread Michael Van Canneyt via lazarus
Hi, Is it possible to enable/disable code folding on a per-language basis ? I would like to enable it only for HTML/XML and disable for all other languegs. (I'd add JSON, but there is no language JSON in the IDE ;), Currently it seems you can only do this by enabling code folding globally,

Re: [Lazarus] Format an integer with thousandseparators by function format()

2023-02-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Feb 2023, John Landmesser via lazarus wrote: Hi, this one works, but i don't know why to devide the integer by 1:     fmt := '%.0n';     s1 := Format(fmt,[MyInteger/*1*]); Because the result of the division is a float; not an integer. And %n will only format a float, not an

Re: [Lazarus] Porting Delphi (2007/XE5) application, how to handle ADODB?

2023-02-10 Thread Michael Van Canneyt via lazarus
On Fri, 10 Feb 2023, Bo Berglund via lazarus wrote: On Mon, 23 Jan 2023 09:59:14 +0100 (CET), Michael Van Canneyt via lazarus wrote: On Mon, 23 Jan 2023, Bo Berglund via lazarus wrote: I have a number of "older" applications developed on Windows using Delphi7-2007-XE5, which

Re: [Lazarus] odbc driver

2023-02-06 Thread Michael Van Canneyt via lazarus
On Mon, 6 Feb 2023, Larry Dalton via lazarus wrote: Using lazrus 2.2 ORC1-fpc-3.2.2-win64 error message: Project MyAccessPractice raised exception class EODBCException with message 'Could not connect with connection string'DRIVER=[Microsoft Access Driver(*.mdb,*.accdb)];

Re: [Lazarus] Porting Delphi (2007/XE5) application, how to handle ADODB?

2023-01-23 Thread Michael Van Canneyt via lazarus
On Mon, 23 Jan 2023, Bo Berglund via lazarus wrote: I have a number of "older" applications developed on Windows using Delphi7-2007-XE5, which use ADODB for database accesses. The database is Microsoft SQLSERVER. Now I no longer have the old Borland software installed (issues with Windows

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Michael Van Canneyt via lazarus
On Sun, 22 Jan 2023, Martin Frb via lazarus wrote: On 12/01/2023 11:26, Michael Van Canneyt via lazarus wrote: It needs to determine the definition of "string" which will be an array of unicodechar or ansichar. Once it knows that, the rest will follow, since the definition of u

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Michael Van Canneyt via lazarus
On Sun, 22 Jan 2023, Martin Frb via lazarus wrote: On 12/01/2023 10:42, Michael Van Canneyt via lazarus wrote: - Debugging programs works in general quite OK, except for displaying of   some strings. Most notable, the exception message is affected:   only the first character

Re: [Lazarus] Debugging the unicode RTL

2023-01-12 Thread Michael Van Canneyt via lazarus
On Thu, 12 Jan 2023, Sven Barth via lazarus wrote: Michael Van Canneyt via lazarus schrieb am Do., 12. Jan. 2023, 10:42: 1/ Should the compiler provide some symbol in - say - the system unit to deterine whether the RTL is compiled in unicode mode, or is another mechanism preferred to do

[Lazarus] Debugging the unicode RTL

2023-01-12 Thread Michael Van Canneyt via lazarus
Hello, As written in other mails, I'm currently working on the Unicode RTL of FPC. Debugging programs using the unicode RTL is possible, but not comfortable: I have currently identified 2 problems in Lazarus which make debugging such programs difficult: - The IDE does now know the

Re: [Lazarus] Unicode RTL for FPC

2023-01-12 Thread Michael Van Canneyt via lazarus
On Thu, 12 Jan 2023, Rolf Wetjen via lazarus wrote: Hi Michael, I'm interested in this but I expect that I'm not the expert you are looking for. Some time ago ( Lazarus 1.8 or even earlier) I made a directory sync program for my own use for Windows which is aware of Unicode names in the

[Lazarus] Unicode RTL for FPC

2023-01-06 Thread Michael Van Canneyt via lazarus
Hello, I'm currently working for a company (Tixeo.com) that is preparing to use FPC to recompile their flagship product (written in Delphi) for certain targets. As part of this work, we're striving to make the Free Pascal RTL and Packages more compatible with recent Delphis. That means: -

Re: [Lazarus] SynEdit highlighter for Markdown

2023-01-06 Thread Michael Van Canneyt via lazarus
On Thu, 5 Jan 2023, Andrew Haines via lazarus wrote: Hi, I attached a highlighter I made for Markdown. I like to use this in my projects to plan things. It seems to work fine with any attribute that only requires a single line. I tried and failed to make multiline fenced code work. I'm

Re: [Lazarus] Instantsearch package

2023-01-05 Thread Michael Van Canneyt via lazarus
On Thu, 5 Jan 2023, Marcello via lazarus wrote: Hi, I installed the InstantSearch package, really useful, thanks! Search works and is impressive :) While double clicking on fpc/lazarus sources the link works correctly, same action on my project sources fails with this message Source

[Lazarus] Instantsearch package

2022-12-31 Thread Michael Van Canneyt via lazarus
Hello, As a late Christmas gift (and after some deliberation with Mattias Gaertner who provided many helpful remarks), I've added a package to the lazarus IDE: InstantSearch. It provides as-you-type search possibilities, which is much faster than the current find-in-files. For it to work,

Re: [Lazarus] Application GUI does not appear

2022-12-26 Thread Michael Van Canneyt via lazarus
On Mon, 26 Dec 2022, Koenraad Lelong via lazarus wrote: Hi, It's been a while since I did some development with Lazarus. Now I wanted to update an application I wrote some years ago. At that time the application was written and compiled on and for Linux. Now I want that application to run

Re: [Lazarus] Attn. Don, documentation snapshots via CI

2022-12-14 Thread Michael Van Canneyt via lazarus
On Thu, 15 Dec 2022, Maxim Ganetsky via lazarus wrote: Hello. As a first step of solving outdated documentation snapshot issue (https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40032 ) I propose to generate it as an artifact of CI job (in `main` branch for now), which then can

Re: [Lazarus] Makefile issues

2022-12-01 Thread Michael Van Canneyt via lazarus
On Fri, 2 Dec 2022, Mattias Gaertner via lazarus wrote: On Thu, 1 Dec 2022 23:22:38 +0100 (CET) Michael Van Canneyt via lazarus wrote: [...] Well, it turns out that "make useride" also does not work on a fresh checkout. It didn't work when Cleaning is enab

Re: [Lazarus] Makefile issues

2022-12-01 Thread Michael Van Canneyt via lazarus
On Thu, 1 Dec 2022, Mattias Gaertner via lazarus wrote: On Wed, 30 Nov 2022 14:35:24 +0100 (CET) Michael Van Canneyt via lazarus wrote: Hello, The lazarus makefile has some dependency issues. make ide: That's an internal target. See "make help". Am I correct in my und

Re: [Lazarus] Makefile issues

2022-11-30 Thread Michael Van Canneyt via lazarus
On Wed, 30 Nov 2022, Maxim Ganetsky via lazarus wrote: 30.11.2022 16:35, Michael Van Canneyt via lazarus пишет: Hello, The lazarus makefile has some dependency issues. I would recommend to run `make lazbuild` first and then try to proceed again with your commands. Well, the whole idea

[Lazarus] Makefile issues

2022-11-30 Thread Michael Van Canneyt via lazarus
Hello, The lazarus makefile has some dependency issues. make ide: make ide make -C ide ide make[1]: Entering directory '/home/michael/projects/lazarus-tst/ide' /bin/mkdir -p ../units/x86_64-linux/gtk2 make -C ../tools svn2revisioninc OS_TARGET=linux CPU_TARGET=x86_64 OPT='' make[2]:

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Michael Van Canneyt via lazarus
On Thu, 17 Nov 2022, Aruna Hewapathirane wrote: Hello again, I have column headers and sorting works on a button click . Thank you once again Michael. I am trying to figure out how to sort when a user clicks a column header? Screenshot: https://pasteboard.co/QSf8hNafG0x5.png And I

  1   2   3   4   5   6   7   8   9   >