Re: [Lazarus] [Pas2js] It's alive !

2019-09-21 Thread Jean SUZINEAU via lazarus
Wonderful ! -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus code editor improvement?

2019-11-04 Thread Jean SUZINEAU via lazarus
Le 03/11/2019 à 08:25, Bo Berglund via lazarus a écrit : I cannot use the direct connection, though, because I am heavily depending on being able to copy stuff across between the two systems and I also need to have access to my other tools on the Windows computer. So I have to stick with VNC any

Re: [Lazarus] Question about TCheckBox

2020-03-16 Thread Jean SUZINEAU via lazarus
May be you can create a new component class, based on TPanel, in which you place a TCheckbox with empty text and a TLabel at the position you want ? TCheckbox implementation is dependant on the widget set you use ("win32" I guess in your case), I don't think you can tune it easily. --

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-05 Thread Jean SUZINEAU via lazarus
My post is close to off topic, but I've seen recently a paper on arXiv proposing to use Chinese characters for logic operators ... The keyword for AND would be 与 The  NOT :  非 The XOR:  异或 The boolean OR:  规约或 The bitwise OR:  按位或 ;-) https://arxiv.org/pdf/2004.10675.pdf -- __

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-05 Thread Jean SUZINEAU via lazarus
Le 06/07/2020 à 00:04, Marco van de Voort via lazarus a écrit : Op 2020-07-05 om 22:17 schreef Jean SUZINEAU via lazarus: My post is close to off topic, but I've seen recently a paper on arXiv proposing to use Chinese characters for logic operators ... When, April 1st? :-) :-)  Not far

Re: [Lazarus] Lazarus 2.0.10 corrupted by Win 10 crash, how to repair?

2020-10-29 Thread Jean SUZINEAU via lazarus
I do this too, using VirtualBox shared folders. The physical machine is a Windows 8 with the source directory, where I can compile with Lazarus for Windows. I run an Ubuntu vm  using Virtual Box, with shared folders pointing to my source directory. The Lazarus on Ubuntu can compile directly i

Re: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus
It's nice that Embarcadero comes back to a Pascal IDE build with Pascal. It's seems this IDE is compiled with Delphi 7, with .bat and .exe files, I imagine it's windows only ? May be it would have been nice that they sponsor Lazarus ;-) ? Lazarus runs on nearly every platform where you want t

Re: [Lazarus] Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus
+1 I agree -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus
Sorry, I didn't notice. I think it's my mail provider Orange/Wanadoo, the french phone operator. Sometimes they arbitrarily insert *** SPAM *** in the subject of some mails before I receive them . I should have removed it by hand. Le 26/12/2020 à 12:15, Anthony Walter via lazarus a écrit : W

Re: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?

2020-12-26 Thread Jean SUZINEAU via lazarus
I guess this settings are saved in the .lps file of your project. In my own lps files, I can find the units opened in the code editor, my debug watches ... -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listin

Re: [Lazarus] Creating packages - what to include?

2020-12-28 Thread Jean SUZINEAU via lazarus
Le 28/12/2020 à 18:13, Bo Berglund via lazarus a écrit : Could you please direct me to where in Lazarus this can be done? Usually when I add a unit uA.pas to a project (by opening the unit in the code and then hitting Shift+F11 or Project/Add editor file to project), Lazarus asks me if I want

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

2021-02-12 Thread Jean SUZINEAU via lazarus
Le 12/02/2021 à 17:39, Bo Berglund via lazarus a écrit : Application.QueueAsyncCall(@CopyScreenRect(0), 0); // <== ERROR here I'm not sure, but QueueAsyncCall just need the address of your callback: Application.QueueAsyncCall(@CopyScreenRect, 0); The 0 given to QueueAsyncCall will end up a

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

2021-02-12 Thread Jean SUZINEAU via lazarus
oops: when it will be called. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Viewing config data in a tree style

2021-04-09 Thread Jean SUZINEAU via lazarus
In response to James Richter on fpc mailing list, I made this small example for displaying an selecting files in a tree. (written on Ubuntu and tested on Windows) https://github.com/jsuzineau/pascal_o_r_mapping/tree/TjsDataContexte/tools/FileTree In your case, maybe  your configuration could b

Re: [Lazarus] FPC and WebAssembly

2021-12-24 Thread Jean SUZINEAU via lazarus
Wonderful ! Thank you very much for all your work and all the work of the FPC / Lazarus team ! And Merry Christmas for all ! -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-25 Thread Jean SUZINEAU via lazarus
Le 25/10/2022 à 22:04, duilio foschi via lazarus a écrit : The box has the following string preset http://localhost:3000/ I think you can test directly by typing this url in your browser (running on the same pc than demorestbridge.exe of course) -- __

Re: [Lazarus] How to fix slow screen refresh of TListbox?

2022-11-20 Thread Jean SUZINEAU via lazarus
Maybe you could add a buffer in your flow of data, storing the incoming data ? When a line ending arrives, you can flush your buffer to Synedit up to the line ending, keeping in the buffer just the end of the data not yet terminated by a line ending. -- _

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

2023-02-23 Thread Jean SUZINEAU via lazarus
May be making a custom component based on VirtualTreeView ? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

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

2023-02-23 Thread Jean SUZINEAU via lazarus
Le 23/02/2023 à 11:37, Luca Olivetti via lazarus a écrit : No, that's not possible, in any case polling isn't a problem: it's the same application that modifies the table, and it only does the "refresh" when necessary. That's exactly a use case for my orm ( https://github.com/jsuzineau/pascal_o

Re: [Lazarus] why can not lamw add assigned components from the list to the form automatically

2023-02-27 Thread Jean SUZINEAU via lazarus
Curious behaviour. You can find the source of the component list form in your lazarus installation directory in ide\componentlist.pas. I imagine something is failing in TComponentListForm.AddSelectedComponent, may be due to differences in the Designer ? -- ___

Re: [Lazarus] Microsft Access Date Select statment

2023-03-24 Thread Jean SUZINEAU via lazarus
Le 24/03/2023 à 21:48, Larry Dalton via lazarus a écrit : Where Trans_date between beginning_date and ending_date;' May be it would be better  with params ? "Where Trans_date between :beginning_date and :ending_date;" and then supposing  your TSQLQuery is declared as sqlq :   sqlq.Params['be

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

2023-03-27 Thread Jean SUZINEAU via lazarus
Le 27/03/2023 à 09:46, Luca Olivetti via lazarus a écrit : procedure TUpdateThread.Execute; begin   while not Terminated do   begin     FWaitForm.ShowProgress;     Sleep(30);   end; end; Usually I use TThread.Synchronize to ensure that the graphic code is run by the main thread. But it won'

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

2023-03-27 Thread Jean SUZINEAU via lazarus
Le 27/03/2023 à 14:40, Luca Olivetti via lazarus a écrit : The problem here is, if AProc raises an exception, I cannot free the thread causing a leak. May be you can create a new exception class specifically for ExecWithSplash, instantiate it and put all the information of ut.FatalException i

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

2023-03-31 Thread Jean SUZINEAU via lazarus
Considering everything will run on Windows,  it could be easy to use COM / OLE Automation: - making your delphi part as COM Server - connecting as client in your Lazarus app, so you can call directly objects and functions defined in the Delphi app. There is a bit of stuff to learn about COM

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

2023-04-01 Thread Jean SUZINEAU via lazarus
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 (https://www.audacityteam.org/) using a specific plugin (https://manual.audacityteam

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

2023-04-16 Thread Jean SUZINEAU via lazarus
Unfortunately my lazarus is installed in French , I don't have the exact label of the menu item in English, But usually for this kind of problem I use "Nettoyer et construire" in "Exécuter" menu. I imagine that in English it's something like "Clean and build" in "Run" menu. In this dialog

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Jean SUZINEAU via lazarus
Le 08/06/2023 à 11:34, Giuliano Colla via lazarus a écrit : I believe that scaling for different DPI has been implemented with a shortsighted approach. It would have been nice at the time of Delphi 1 in 1995 ... ;-) A few weeks ago I got some havoc trying to port some code from LCL to Delphi

Re: [Lazarus] Mysterious crash with Lazarus on RPi4B running PiOS bookworm 32 bit

2023-12-08 Thread Jean SUZINEAU via lazarus
May be you'll find some information in the log, something like : cat /var/log/xrdp.log ? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

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

2024-01-13 Thread Jean SUZINEAU via lazarus
I am not sure but it looks like your program is using TLS v1 protocol. I think that TLS v1 is deprecated and now your SMTP mailserver requires a newer version of TLS. May be your SMTP mailserver / Windows Server 2016 has been updated recently ?-- ___

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

2024-01-15 Thread Jean SUZINEAU via lazarus
Le 14/01/2024 à 22:32, Bo Berglund via lazarus a écrit : I assume MailData is the mail body... 2) How can I add Bcc recipients? In fact I think MailData contains a mail header (with something likeReply-to: x...@yyy.com) followed by a mail body after an empty line: https://en.wikipedia.org/w

Re: [Lazarus] Compilation error on an old source

2024-06-23 Thread Jean SUZINEAU via lazarus
It's likely because it was written for an older version of the function IsEmptyStr, the current one takes an array of char as second parameter. So I think IsEmptyStr(auxstr,'0') should become IsEmptyStr(auxstr,['0']) https://www.freepascal.org/docs-html/rtl/strutils/isemptystr.html --

Re: [Lazarus] Getting started with SQLite with Lazarus on Linux Mint

2024-07-10 Thread Jean SUZINEAU via lazarus
I think that usually you should have already (installed by apt) a symbolic link named libsqlite3.so pointing to libsqlite3.so.0. You can try  to create the symbolic link with something like: ln -s /usr/lib/libsqlite3.so.0 /usr/lib/libsqlite3.so -- __

Re: [Lazarus] Getting started with SQLite with Lazarus on Linux Mint

2024-07-10 Thread Jean SUZINEAU via lazarus
Le 10/07/2024 à 21:46, Arí Ricardo Ody via lazarus a écrit : As for the symbolic link suggestion, I ask in which directory I must be logged in to execute the creation of the symbolic link. The following command is written with absolute paths so it can be run from any current directory : ln -s

Re: [Lazarus] Lazarus with SQLite on Windows

2024-07-14 Thread Jean SUZINEAU via lazarus
Personally for Windows I just include sqlite3.dll in the directory of my program. And I include this dll in my releases on github, for example (in French): https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2024_01_19_jsWorks (it can run both on Linux  with elf or Windows with the exe

Re: [Lazarus] Problems opening a newly created project

2024-07-14 Thread Jean SUZINEAU via lazarus
Did you try the menu Project / View Project source ? May be just the source editor window is closed. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TestMail

2024-10-28 Thread Jean SUZINEAU via lazarus
Le 28/10/2024 à 20:46, Carlos E. R. via lazarus a écrit : The last entry, the "TO:" gets automatically added and is the one you deleted. It probably will get added again, unless you change a setting. The funny thing is that  it's not automatically you own label. For me, I had the same behaviou

Re: [Lazarus] Sqlite3 on Android

2024-10-31 Thread Jean SUZINEAU via lazarus
If you use LAMW, I think you can find the documents directory this way (assuming var jF: jForm; ): DocumentsDirectory:= jF.GetEnvironmentDirectoryPath( dirDocuments); I would be curious if you can open the database this way. For my programs, due to to the various securities of Android, I neede

Re: [Lazarus] Android applications

2024-09-22 Thread Jean SUZINEAU via lazarus
May be it would be easier to use LAMW Lazarus for Android module Wizard ? It can install on Windows all the stuff needed to build applications for Android with Lazarus. https://wiki.lazarus.freepascal.org/LAMW -- ___ lazarus mailing list lazarus@lis

Re: [Lazarus] Android applications

2024-09-23 Thread Jean SUZINEAU via lazarus
Usually to build the application with LAMW, I use the  Lazarus menu "Run" /  "[LAMW] Build Android Apk and Run" The LAMW application consist of a dll project controls.lpr loaded by the android java program through JNI. For controls.lpr, the target OS is Android, target CPU arm. -- ___

Re: [Lazarus] Find exact cursor position in TMemo

2024-11-19 Thread Jean SUZINEAU via lazarus
I'm not sure, but I guess it would be easier with SynEdit , TSynEdit( and maybe TSynAutoComplete ?) : https://wiki.freepascal.org/SynEdit -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus