Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 11:21:07 +0200 (CEST), Michael Van Canneyt via lazarus wrote: > > >On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: > >> On Wed, 22 Jul 2020 08:09:08 +0300, "Alexey Tor. via lazarus" >> wrote: >> >>> On gtk2 it calls TGtk2W

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 11:55:27 +0200, Bo Berglund via lazarus wrote: >Then while chasing a strange error concerning wsmenus I changed from >what it was in the beginning to nogui. > >Now I do not know how to cancel that change and get back to what it >was before (it needs to be a

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 12:34:34 +0200 (CEST), Michael Van Canneyt via lazarus wrote: >> Then while chasing a strange error concerning wsmenus I changed from >> what it was in the beginning to nogui. > >It means you have somewhere a reference to a LCL/VCL unit. > >Probably your use of TTimer caused t

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 12:23:42 +0200, Bo Berglund via lazarus wrote: >On Wed, 22 Jul 2020 11:55:27 +0200, Bo Berglund via lazarus > wrote: > >>Then while chasing a strange error concerning wsmenus I changed from >>what it was in the beginning to nogui. >> >>Now

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 13:24:58 +0200 (CEST), Michael Van Canneyt via lazarus wrote: >> OTOH it does not start the TCP server by the looks of it, but that is >> another problem that belongs to the normal tracing of the >> functionality. That was caused by a missing call to "StartServer" It now

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Bo Berglund via lazarus
On Wed, 22 Jul 2020 13:23:43 +0200 (CEST), Michael Van Canneyt via lazarus wrote: >The lazserial seems to be a wrapper around lazsynaser, which I assume is from >synapse. > >You should be OK just using directly lazsynaser. > >It has no GUI dependencies. The drawback is probably that you must cre

[Lazarus] Lazarus code editor, how to show invisible tabs?

2020-07-30 Thread Bo Berglund via lazarus
I have encountered a strange problem in Lazarus (2.0.8 on Raspbian Buster linux). I have a fair number of source files open in tabs. The file names could be rather long too. So then the tabs displaying file names do not fit sidewise on the screen so the list of tabs is truncated left and right. I

Re: [Lazarus] Lazarus code editor, how to show invisible tabs?

2020-07-30 Thread Bo Berglund via lazarus
On Thu, 30 Jul 2020 18:05:46 +0200, Bo Berglund via lazarus wrote: >Is this by design or is there a setting somewhere to disable this >strange behaviour for the left arrow button? > >In the Delphi 2007 editor there is a down arrow to the right side >which if clicked displays a lis

Re: [Lazarus] Lazarus code editor, how to show invisible tabs?

2020-07-30 Thread Bo Berglund via lazarus
On Thu, 30 Jul 2020 18:24:29 +0200, Martin Frb via lazarus wrote: > >If you right click any tab, the context menu has entries for each file. >They are grouped by package. >There also is a "recent" sub menu. > >If the popup on tabs does not work for you for some reasons, go to Tools > > Options

Re: [Lazarus] FPC on Rpi3 executable module sizes

2016-10-30 Thread Bo Berglund via Lazarus
On Sun, 30 Oct 2016 00:05:02 -0700 (MST), Ken Kashmarek via Lazarus wrote: >On RPi3 (output from ls -l): > SIZE >-rwxr-xr-x 1 pi pi 408892 Oct 29 07:47 hello >-rw-r--r-- 1 pi pi12876 Oct 29 07:47 hello.o >-rw-r- 1 pi pi 5164 Oct 29 07:47 hello.pas

Re: [Lazarus] Run FPC on Raspberry Pi3 in command line mode

2016-10-30 Thread Bo Berglund via Lazarus
On Fri, 28 Oct 2016 22:23:19 -0700 (MST), Ken Kashmarek via Lazarus wrote: >To Bo Berglund: Thank you for the install script. Very nice. Not updated in quite a while, so I don't know how current it is... Been busy with other stuff for some time so I have not checked FPC/Lazarus developments la

Re: [Lazarus] Laz 1.6.3 and Frames

2016-12-23 Thread Bo Berglund via Lazarus
On Tue, 13 Dec 2016 16:22:18 +0100, TomᚠEmresz via Lazarus wrote: Is there really already Lazarus 1.6.3? 1.6.2 was just released Nov 15, 2016 -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://l

[Lazarus] Error when building Lazarus 1.6.2 from sources on RPi3

2017-01-09 Thread Bo Berglund via Lazarus
I am trying to build an FPC 3.0.0 + Lazarus 1.6.2 environment on a new Rpi3 with the latest Raspbian PIXEL. I have come so far as to having compiled fpc 3.0.0 successfully and run its make install command to put the binaries in the expected places (all under /home/pi): Now when I try to build Laza

Re: [Lazarus] Error when building Lazarus 1.6.2 from sources on RPi3

2017-01-09 Thread Bo Berglund via Lazarus
On Tue, 10 Jan 2017 13:52:05 +1300, Gordon Findlay via Lazarus wrote: >I've had that issue, with different units, under Linux several times. A >make clean before make bigide has solved the problem. > Well, in my case there was nothing to clean out since the source tree for lazarus had never been

Re: [Lazarus] Error when building Lazarus 1.6.2 from sources on RPi3

2017-01-10 Thread Bo Berglund via Lazarus
On Tue, 10 Jan 2017 11:14:51 +0100, Mattias Gaertner via Lazarus wrote: >> For example there is no fpc.cfg file anywhere on my system, should it >> not have appeared when fpc was built? > >No. You have to create it yourself. For example with the tool samplecfg. Just to complete this thread: I us

[Lazarus] Lazarus IDE not sizeable on Raspbian PIXEL

2017-01-10 Thread Bo Berglund via Lazarus
I don't know if this is a known problem or if there are solutions to it, but here goes: I have just completed installing Lazarus 1.6.2 and FPC 3.0.0 on a pristine Raspbian PIXEL operating system running on an RPi3. When Lazarus starts up the first time the usual dialog about the fpc sources pops

Re: [Lazarus] IDE main window?

2017-01-11 Thread Bo Berglund via Lazarus
On Sun, 4 Dec 2016 18:39:21 -0500, Donald Ziesig via Lazarus wrote: >Now that I have Lazarus 1.6.2 working :-D, I have a few questions: > >Is there any way to resize the IDE main window so that it extends the >full width of the display? Right now it only extends 2/3 of the way >across and I ha

Re: [Lazarus] Lazarus IDE not sizeable on Raspbian PIXEL

2017-01-11 Thread Bo Berglund via Lazarus
On Tue, 10 Jan 2017 17:34:29 +0100, Bo Berglund via Lazarus wrote: >The main IDE bar on top of the screen only reaches about 60% of the >width of the screen and there is no way to resize it using the mouse. >The other Lazarus windows are resizable in the normal way but not the >main

Re: [Lazarus] IDE main window?

2017-01-11 Thread Bo Berglund via Lazarus
On Wed, 11 Jan 2017 11:23:23 +0100, Bo Berglund via Lazarus wrote: >It is extremely annoying that the main window on top cannot be >resized, not to a wider size extending the width of the screen nor to >a smaller size if need be. > >Why was this change done? I have now check

Re: [Lazarus] Lazarus on Raspberry Pi 3

2017-02-28 Thread Bo Berglund via Lazarus
On Tue, 28 Feb 2017 16:34:45 +, Paulo Costa via Lazarus wrote: >I'm using Lazarus on a Raspberry Pi 3. >I have tested a few ways to get it working but the best one seems to be >Bo Berglund's script and starting compiler. (Thanks) > >I had just one problem with it: >an error would occur when

Re: [Lazarus] Lazarus on Raspberry Pi 3

2017-02-28 Thread Bo Berglund via Lazarus
On Tue, 28 Feb 2017 23:06:33 +, Paulo Costa via Lazarus wrote: >On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote: > >... > >>> I'm using Raspbian version 8.0 >>> Linux raspberrypi 4.4.38-v7+ >> >> What command(s) gives you this information

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-01 Thread Bo Berglund via Lazarus
On Wed, 1 Mar 2017 14:05:07 +0100, Mattias Gaertner via Lazarus wrote: >The Lazarus team is glad to announce the release of Lazarus 1.6.4. This >is a bugfix release. > >This release was built with FPC 3.0.2. Can it be built with some other FPC version, like 3.0 too? -- Bo Berglund Developer in

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-02 Thread Bo Berglund via Lazarus
On Wed, 1 Mar 2017 22:03:51 +0100, Ondrej Pokorny via Lazarus wrote: >On 01.03.2017 21:57, Bo Berglund via Lazarus wrote: >> Can it be built with some other FPC version, like 3.0 too? > >Yes. Starting from 2.6.4 all FPC versions are supported. > Thanks, then if I use 3

Re: [Lazarus] Lazarus code editor, how to show invisible tabs?

2020-07-31 Thread Bo Berglund via lazarus
On Thu, 30 Jul 2020 23:00:44 +0200, Mattias Gaertner via lazarus wrote: >Well, some people put multiple projects into one folder, which >quickly can get messy. With the project units you and the IDE know >which files actually belong to the project. > >There are several places in the IDE, where it

[Lazarus] Build Lazarus without symbols included?

2020-08-06 Thread Bo Berglund via lazarus
I am never ever going to debug Lazarus itself since I am just a user, so it makes no sense to inflate the size of the Lazarus executable with the symbols... Every time I rebuild Lazarus symbols are added to the binary and I have to remember to close lazarus and issue the strip -s command to reduce

Re: [Lazarus] Lazarus on Raspberry Pi

2020-08-26 Thread Bo Berglund via lazarus
On Sat, 22 Aug 2020 21:04:36 +1000, John via lazarus wrote: >I recently dipped my toe into Raspberry Pi, and successfully built >FPC (3.0.4) / Laz (2.0.8) using the instructions here: > >https://wiki.lazarus.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian That is NOT an instruction on

Re: [Lazarus] Lazarus on Raspberry Pi

2020-08-27 Thread Bo Berglund via lazarus
On Thu, 27 Aug 2020 11:01:15 +0300, Mehmet Erol Sanliturk via lazarus wrote: >Is there such a published script which you can supply its link ? >If not , would you please add such a part into the above link ? I have published the link to my script and the seed compiler already in this group. But

[Lazarus] Installing custom control in Lazarus - where can I find it?

2020-08-27 Thread Bo Berglund via lazarus
I am (again) trying to port a Delphi application to Lazarus/FPC. This time I need a customized version of TListView, which I converted to use in Lazarus back in 2018. See thread titled: "Converting a component package Delphi->Lazarus using built-in converter?" I found the files for the converted c

Re: [Lazarus] Installing custom control in Lazarus - where can I find it?

2020-08-27 Thread Bo Berglund via lazarus
On Thu, 27 Aug 2020 23:27:27 +0200, Werner Pamler via lazarus wrote: >Am 27.08.2020 um 22:51 schrieb Bo Berglund via lazarus: >> Now the strangest thing is that in this process Lazarus has completely >> mangled the EasyListView.pas source file so it now only has this >&g

Re: [Lazarus] Installing custom control in Lazarus - where can I find it?

2020-08-27 Thread Bo Berglund via lazarus
On Fri, 28 Aug 2020 07:46:02 +0200, Salvatore Coppola via lazarus wrote: >Have restarted the lazarus just recompiled? Yes, that is automatic. My problem was that I did not know that you are not allowed to have the same name for all file in such a package with only an extension difference! See

[Lazarus] How to move installed component package sources?

2020-09-18 Thread Bo Berglund via lazarus
I have installed a custom component package on the palette of Lazarus. Now I realize that I did it the wrong way since the package sources are inside a project tree of many apps and other things. I want to have the sources moved to my Lazarus installation into the config dir below lazarus like for

Re: [Lazarus] How to move installed component package sources?

2020-09-18 Thread Bo Berglund via lazarus
On Fri, 18 Sep 2020 21:48:04 +0200, Mattias Gaertner via lazarus wrote: >> Is there a simpler way to redirect Lazarus for the package location or >> do I have to this: >> - Uninstall the component package >> - Rebuild Lazarus without the package >> - Install the package based on sources in the ri

[Lazarus] Is there a TSpinButton component in Lazarus?

2020-09-20 Thread Bo Berglund via lazarus
When I thought that I was close to getting through all of the problems porting an application from Delphi (I think D7-D2007) to FPC/Lazarus I ran across TSpinButton, which is located on a form where config items are set up. Since Lazarus is unable to load this form I cannot see what it does or how

Re: [Lazarus] Is there a TSpinButton component in Lazarus?

2020-09-21 Thread Bo Berglund via lazarus
On Mon, 21 Sep 2020 08:20:33 +0200, Ondrej Pokorny via lazarus wrote: >On 21.09.2020 00:49, Bo Berglund via lazarus wrote: >> When I thought that I was close to getting through all of the problems >> porting an application from Delphi (I think D7-D2007) to FPC/Lazarus I >> r

[Lazarus] How to find out why a unit is used in a project?

2020-09-23 Thread Bo Berglund via lazarus
I am porting a Delphi application to Linux and as a stop I am first doing it from Delphi to Lazarus/Fpc on Windows. Now when I try to compile it throws an error inside a unit I did not even know it used. And to further complicate the issue I cannot find a reference to the unit in question when doi

Re: [Lazarus] How to find out why a unit is used in a project?

2020-09-23 Thread Bo Berglund via lazarus
On Wed, 23 Sep 2020 19:29:36 +0200, John Landmesser via lazarus wrote: >> So now I wonder: >> Is there a Lazarus tool to trace why the unit is referenced in the >> first place? Is there such things as "chain of uses"? >> >> The application I am porting is a client communications app that talks >>

Re: [Lazarus] How to find out why a unit is used in a project?

2020-09-23 Thread Bo Berglund via lazarus
On Thu, 24 Sep 2020 07:53:24 +0200, Sven Barth via lazarus wrote: >Bo Berglund via lazarus schrieb am Mi., 23. >Sep. 2020, 21:13: > >> So there seems to be a chain reaction concerning units involved in the >> application >> > >If course there is. That

Re: [Lazarus] How to find out why a unit is used in a project?

2020-09-24 Thread Bo Berglund via lazarus
On Thu, 24 Sep 2020 14:22:13 +0200, Sven Barth via lazarus wrote: >Well, Bo could always split the data type declarations into a separate >unit. But I cannot wrap my head around this (constructed example): interface type TMyRecord = packed record Item1: word; Item2: Cardinal; end; T

[Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-29 Thread Bo Berglund via lazarus
So I am debugging an application that transfers data over a socket connection. I want to inspect received data so I put a breakpoint in the method that does the handling of the response. But when I get there and want to see what has been received Lazarus does not show it... Here is what I do: fun

[Lazarus] How to list available serial ports on Linux?

2020-10-06 Thread Bo Berglund via lazarus
Is there a way to list the available (working) serial ports on a Linux platform like the RaspberryPi? I would like to offer a dropdown list of working serial ports to the user to select among, but I am dissuaded from it when I do the following: ls -la /dev/tty* It returns a very long list of seri

Re: [Lazarus] How to list available serial ports on Linux?

2020-10-07 Thread Bo Berglund via lazarus
On Wed, 7 Oct 2020 11:43:50 +1300, Wolf via lazarus wrote: >By submitting your question to DuckDuckGo, I found >https://stackoverflow.com/questions/2530096/how-to-find-all-serial-devices-ttys-ttyusb-on-linux-without-opening-them > >To quote: > >|To see which tty's are currently in use, you can s

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-10-26 Thread Bo Berglund via lazarus
On Tue, 29 Sep 2020 17:49:47 +0200, Bo Berglund via lazarus wrote: >So I am debugging an application that transfers data over a socket >connection. I want to inspect received data so I put a breakpoint in >the method that does the handling of the response. >But when I get there and

[Lazarus] What to replace Application.Processmessages with?

2020-10-26 Thread Bo Berglund via lazarus
I have been working some time to convert a rather big Delphi2007 Windows service application to a regular Linux program possible to run as a Linux systemd service. In Linux I was told that the application needs to be a regular program to run in a non-logged on setting on a Linux server (without des

[Lazarus] What to replace Application.Processmessages with?

2020-10-26 Thread Bo Berglund via lazarus
(Tried posting this via GMane but it does not appear so now sending email instead) I have been working some time to convert a rather big Delphi2007 Windows service application to a regular Linux program possible to run as a Linux systemd service. In Linux I was told that the application nee

[Lazarus] Checking Lazarus list response

2020-10-26 Thread Bo Berglund via lazarus
This message is a test of the Lazarus mail list to see if it is really down. No messages have appeared in the GMane mirror server for over 2 weeks now... -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org http

[Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Bo Berglund via lazarus
I am trying to find a font to use in the code editor window on Lazarus 2.0.10 on Windows 10 x64 where I can see a difference between 1 and l (number and letter). The closest I have gotten is Lucida Console, but it uses extra space between letters making the lines un-necessarily rather long Is

Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Bo Berglund via lazarus
On Tue, 27 Oct 2020 14:40:27 +0100, Darius Blaszyk via lazarus wrote: >>> But this is very not a very efficient way. The best is to get the start >>> time, get the end time and subtract. >>> >>> var >>> StartTime,EndTime:TDataTime; >>> i, answer: integer; >>> begin >>> StartTime:=now; >>> f

Re: [Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Bo Berglund via lazarus
On Tue, 27 Oct 2020 16:17:19 +0100 (CET), Pascal Riekenberg via lazarus wrote: >I use Hack: https://sourcefoundry.org/hack/ > > Thank you! This is really what I have been looking for! An annoyance: The font installer insists on restarting the computer, but it works without that. -- Bo Berglun

Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-28 Thread Bo Berglund via lazarus
On Mon, 26 Oct 2020 13:00:26 +0100 (CET), Michael Van Canneyt via lazarus wrote: > > >On Tue, 13 Oct 2020, Bo Berglund via lazarus wrote: > >> Now I wonder if I could put something else into the loops so that the >> main object of Application.Processmessages will be h

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

2020-10-29 Thread Bo Berglund via lazarus
Yesterday I was working on an application using Lazarus 2.0.20/fpc 3.2.0 on a Windows 10 notebook. Suddenly Win10 decided to crash with a memory fault and restarted itself. But now Lazarus no longer works and when I inspected the config dir I found that two files had been hosed (filled with NUL ch

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

2020-10-29 Thread Bo Berglund via lazarus
On Thu, 29 Oct 2020 09:23:23 +0100 (CET), Michael Van Canneyt via lazarus wrote: >> Grateful for any suggestions on how to fix this. >> >> (I do not really want to start over from scratch after spending time >> installing extra packages and customizations and the like). > >The packages should be

Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-29 Thread Bo Berglund via lazarus
On Tue, 27 Oct 2020 21:25:55 +, Graeme Geldenhuys via lazarus wrote: >In the long term I would highly suggest converting that code / tasks >to multiple theads. From what you described, they sound like good >candidates for a thread based system. Yes, I agree, but... The code is pretty big an

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

2020-10-30 Thread Bo Berglund via lazarus
On Thu, 29 Oct 2020 12:25:18 +0100, John Landmesser via lazarus wrote: >  What about Win 7 + Lazarus in a VirtualBox? > I do have my old laptop virtualized with VMWare Workstation 15 and can run it but it is a dual layer I only use because of some programs that can no longer be installed in Wind

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Bo Berglund via lazarus
On Mon, 26 Oct 2020 13:00:26 +0100 (CET), Michael Van Canneyt via lazarus wrote: >But I would create a routine > >Procedure HandleMainLoop; > >begin >{$IFDEF NOGUI} > CheckSynchronize; >{$ELSE} > Application.ProcessMessages; >{$ENDIF} >end; > >And call that both in GUI and NOGUI. I decided t

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Bo Berglund via lazarus
On Sun, 1 Nov 2020 10:20:11 +0100 (CET), Michael Van Canneyt via lazarus wrote: >> QUESTION: >> Is there a way in code to check if Forms is used? >> So it can be used instead of {$IFDEF NOGUI} > >normally > >{$IF DECLARED(Forms)} >or >{$IF DECLARED(TForm)} > >should do the trick for you. A quick

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Bo Berglund via lazarus
On Sun, 1 Nov 2020 10:20:11 +0100 (CET), Michael Van Canneyt via lazarus wrote: >> QUESTION: >> Is there a way in code to check if Forms is used? >> So it can be used instead of {$IFDEF NOGUI} > >normally > >{$IF DECLARED(Forms)} >or >{$IF DECLARED(TForm)} > >should do the trick for you. > I cre

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Bo Berglund via lazarus
On Sun, 01 Nov 2020 11:48:54 +0100, Bo Berglund via lazarus wrote: >I created this command line program: > >program Test; > >begin > Writeln('I will test the TForm check now:'); > {$IF DECLARED(TForm)} >Writeln('TForm is declared...'); > {$EL

[Lazarus] FindWindow return sequence (Windows 10)?

2020-11-01 Thread Bo Berglund via lazarus
I am writing utilities to enumerate windows (in Windows10) based on the partial title. Will be used in order to find a particular set of windows. The function should return a list of window titles and handles to the window. I found examples I have adapted and it is working partially.. But there i

[Lazarus] Best way to record a displayed video to file?

2020-11-02 Thread Bo Berglund via lazarus
What are my options to record a video playing in a web browser to a disk file (mp4) for later off-line viewing? I have used the PasLibVlc package earlier for playing videos in my application but now I need to go the other way to record a video (with audio) which is playing inside Crome or FireFox (

Re: [Lazarus] Best way to record a displayed video to file?

2020-11-02 Thread Bo Berglund via lazarus
On Mon, 2 Nov 2020 02:00:01 -0700 (MST), leledumbo via lazarus wrote: >> What are my options to record a video playing in a web browser to a disk >file (mp4) for later off-line viewing? > >Browser extension, but they can communicate with a native app. Take a look >at Video DownloadHelper, they ha

Re: [Lazarus] FindWindow return sequence (Windows 10)?

2020-11-02 Thread Bo Berglund via lazarus
On Mon, 2 Nov 2020 11:08:32 +0100, Sven Barth via lazarus wrote: >Bo Berglund via lazarus schrieb am Mo., 2. >Nov. 2020, 08:07: > >> I thought that GetWindow(hWndTemp, GW_HWNDNEXT); would return the next >> larger handle following hWndTemp, but it seems like this is no

[Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
Lazarus 2.0.10 FPC 3.2.0 on Windows 10 I create a new application and place a TBitBtn on a panel at the bottom of the main form. I set the Kind property to bkClose. Now I expect the application to close when I click this button, like it does on Delphi for the same type of button. But when I run

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
On Mon, 16 Nov 2020 13:04:04 +0100, Bart via lazarus wrote: >On Mon, Nov 16, 2020 at 11:43 AM Bo Berglund via lazarus > wrote: > >> I create a new application and place a TBitBtn on a panel at the >> bottom of the main form. I set the Kind property to bkClose. >> >

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button... - TestTransparency.zip (0/1)

2020-11-16 Thread Bo Berglund via lazarus
On Mon, 16 Nov 2020 18:31:13 +0100, Bart via lazarus wrote: >On Mon, Nov 16, 2020 at 6:21 PM Bart wrote: > >Can you upload a basic example (1 form, 1 bitbutton) where you set the >transparency of the form. >Without actual code (also the lfm) it's hard to test. > Attaching a zip with the test cod

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button... - TestTransparency.zip (1/1)

2020-11-16 Thread Bo Berglund via lazarus
begin 644 TestTransparency.zip M4$L#!!0``@`(`/::<%&H)6P2FP(``!P(```45&5S=%1R86YS<&%R96YC M>2YL<&FM54UOVD`0O5?J?["L',(AF(]+#YM&Q$"$E`04(.TAE\4,L,UZU]U= MM^'?=Q;\L3:82E4/ENS9F?=FWLRLR=U'S+U?H#23XM;OMCN^!R*2:R:VM_YR M,;[YXM]]_?R)A-/G\>0!WSR/S)3\`9&9)@:#],&&UM0H(U?6#_&A& MS6X(G,7YX5MY]@`"%.79)QKFH

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
For some reason my news reader would not transfer the zipped archive with the sources. So here goes another attempt using my email instead. Attached is the zipped project. /Bo B -Original Message- From: Bart Sent: Monday, 16 November 2020 18:31 To: bo.bergl...@gmail.com; Lazarus maili

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Wed, 18 Nov 2020 08:43:00 +0100 (CET), Michael Van Canneyt via lazarus wrote: >Is there a way to change the default project generated when the IDE starts ? Why is Lazarus creating an empty project on startup in the first place? I would like to suggest that they take that default project on s

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Wed, 18 Nov 2020 20:08:14 +0100 (CET), Michael Van Canneyt via lazarus wrote: > > >On Wed, 18 Nov 2020, Bo Berglund via lazarus wrote: > >> On Wed, 18 Nov 2020 08:43:00 +0100 (CET), Michael Van Canneyt via >> lazarus wrote: >> >>> Is there a way to ch

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Wed, 18 Nov 2020 21:19:00 +0100 (CET), Michael Van Canneyt via lazarus wrote: > > >On Wed, 18 Nov 2020, Bo Berglund via lazarus wrote: > >>> >>> Because it needs a project. It cannot work without one, so it creates one. >>> >>> So if the hypothe

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Wed, 18 Nov 2020 22:41:13 +0100, Mattias Gaertner via lazarus wrote: >That's strange, because Lazarus has a startprotocol. If the last >project crashed the IDE, next time it will ask if it should open the >project. > >How do you start Lazarus? > I have desktop files in: ~/.local/share/applicat

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Wed, 18 Nov 2020 22:42:36 +0100, Mattias Gaertner via lazarus wrote: >> Or is there a command line option like Delphi's -np also for Lazarus >> that I have missed? > >--skip-last-project Perfect, that is what I would need then! Starts Lazarus with an empty default project. Almost the same as

Re: [Lazarus] Default project ?

2020-11-18 Thread Bo Berglund via lazarus
On Thu, 19 Nov 2020 08:14:44 +0100, Bo Berglund via lazarus wrote: >Follow-up: >Is there a way to configure the number of projects saved to this list? >Right now it seems to only hold 5 projects... Of course: Tools/Options/Environment/Files Sorry for that question. -- Bo Berglund

Re: [Lazarus] Default project ?

2020-11-19 Thread Bo Berglund via lazarus
On Thu, 19 Nov 2020 12:17:11 +0100, Bart via lazarus wrote: >Can we now get back to the original question this thread was about? > I agree that it would be nice to have a setting in Lazarus to define *what type of project* it will autogenerate in absence of a previous project to load. But it is

[Lazarus] Issues with apps on Linux...

2020-11-30 Thread Bo Berglund via lazarus
I have two questions regarding Lazarus applications on Linux (Ubuntu 18 Mate): 1) Clipboard content erased on close? I have an application with a form where the form size anmd position is stored into the clipboard on form close using a method of the form. This method is also called on form resize.

Re: [Lazarus] Issues with apps on Linux...

2020-11-30 Thread Bo Berglund via lazarus
On Mon, 30 Nov 2020 22:08:39 +0200, Juha Manninen via lazarus wrote: >Once a user opens Firefox, it hogs more memory than any desktop, thus >overturning any benefits a minimal desktop might have given. +1 On Windows I have to regularly shut down all instances of FireFox with all of the tabs sav

Re: [Lazarus] Issues with apps on Linux...

2020-11-30 Thread Bo Berglund via lazarus
On Tue, 1 Dec 2020 00:02:09 +0300, Mehmet Erol Sanliturk via lazarus wrote: >In Fedora with KDE , if you press the left mouse button when the cursor is >on the title bar of a Lazarus form ( and all of the other open windows of >applications ) it becomes transparent to be sufficient to see the >un

[Lazarus] Using Chrome API in Lazarus - possible on Linux?

2020-12-06 Thread Bo Berglund via lazarus
I have been looking for ways to create a video downloader for myself using FPC/Lazarus. I already created a video editor using PasLibVlc and ffmpeg and it works pretty well for what I want to do. It needs VLC to be installed in order to show videos and adjust playback speed and audio sync etc. I a

Re: [Lazarus] Using Chrome API in Lazarus - possible on Linux?

2020-12-06 Thread Bo Berglund via lazarus
On Sun, 6 Dec 2020 10:19:58 -0500, wkitty42--- via lazarus wrote: >On 12/6/20 3:34 AM, Bo Berglund via lazarus wrote: >> But it clearly should be possible since the browsers (both Chrome and >> Firefox) have the ability of moving backwards inside the stream and >> view stuf

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

2020-12-26 Thread Bo Berglund via lazarus
Now it happened again! I closed Lazarus on a Raspberry Pi4 accessed via VNC. Then I started it again and now only the code editor window appears, all other windows for my desktop have disappeared!!! :( Question: - In which file is the desktop settings saved? I need to restore that file so

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

2020-12-27 Thread Bo Berglund via lazarus
On Sun, 27 Dec 2020 07:43:54 +0100, Jean SUZINEAU via lazarus wrote: >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 ... I think I stated that the code editor is the *only window* that i

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

2020-12-27 Thread Bo Berglund via lazarus
On Sun, 27 Dec 2020 09:12:20 +0100, Bo Berglund via lazarus wrote: >I want to restore it from my backup of Lazarus settings but I don't >know where Lazarus saves this information... So I searched in the config files that had changed the last day and found environmentsoptions.xml

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

2020-12-27 Thread Bo Berglund via lazarus
On Sun, 27 Dec 2020 11:09:57 +0100, Mattias Gaertner via lazarus wrote: >On Sun, 27 Dec 2020 09:12:20 +0100 >Bo Berglund via lazarus wrote: > >>[...] >> And I woud like to know *why* Lazarus loses this information, it is >> not the first time it happened... > >

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

2020-12-28 Thread Bo Berglund via lazarus
On Mon, 28 Dec 2020 01:35:54 +0100, Mattias Gaertner via lazarus wrote: >On Sun, 27 Dec 2020 18:58:58 -0500 >wkitty42--- via lazarus wrote: > >> On 12/27/20 5:15 PM, Mattias Gaertner via lazarus wrote: >> > When the IDE starts, and there is no environmentoptions.xml file it >> > copies it from t

[Lazarus] Creating packages - what to include?

2020-12-28 Thread Bo Berglund via lazarus
I have created a number of classes that are useful in multiple projects. Originally I have copied the source files between the projects in order to use the classes, but it has resulted in differences between the projects regarding the source files when I modify the class. So I am looking for a dif

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

2020-12-28 Thread Bo Berglund via lazarus
On Mon, 28 Dec 2020 16:14:09 +0100, Bo Berglund via lazarus wrote: >I have created a number of classes that are useful in multiple >projects. Originally I have copied the source files between the >projects in order to use the classes, but it has resulted in >differences between

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

2020-12-28 Thread Bo Berglund via lazarus
On Mon, 28 Dec 2020 16:39:32 +0100, Bart via lazarus wrote: >On Mon, Dec 28, 2020 at 4:24 PM Bo Berglund via lazarus > wrote: > >> >I have created a number of classes that are useful in multiple >> >projects. > >I have all my usefull units in one folder (yo

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

2020-12-28 Thread Bo Berglund via lazarus
On Mon, 28 Dec 2020 18:31:54 +0100, Werner Pamler via lazarus wrote: >You are talking of runtime code only. Here are instructions how to >create a Lazarus runtime package (I never created an FPC package...): Go >to "Package" > "New package", specify name and location of the new >package, an em

[Lazarus] Tooltip shows value of some but not all const items....

2021-01-02 Thread Bo Berglund via lazarus
I am using Lazarus 2.0.8/fpc3.0.4 on RaspberryPi4. When working on Windows -> Linux porting of an old Delphi app I have noted that the Lazarus IDE behaves differently when I hover the mouse over a const item in the source editor. The consts are declared in the top of the implementation section to

Re: [Lazarus] Tooltip shows value of some but not all const items....

2021-01-02 Thread Bo Berglund via lazarus
On Sat, 2 Jan 2021 12:36:06 +0100, Sven Barth via lazarus wrote: >Am 02.01.2021 um 12:09 schrieb Bo Berglund via lazarus: >> Another question: >> - >> Is there a difference between the two types of declarations? >> I think that the # specifier of the va

Re: [Lazarus] Component-View Presets

2021-01-04 Thread Bo Berglund via lazarus
On Sun, 3 Jan 2021 13:59:34 +0200, "R.Smith via lazarus" wrote: >Hi All, I'm using Lazarus in a multi-screen setup and prefer the >Component-view form rather than using the menu-integrated top-palette to >pick components from. > >In the Component-view there are 3 tabs: List, Palette and Inherit

Re: [Lazarus] UDP server

2021-01-12 Thread Bo Berglund via lazarus
On Mon, 11 Jan 2021 20:32:52 +0100, duilio foschi via lazarus wrote: > >Peppe Polpo Please do not start a new thread by using an old thread and changing the subject and content! It messes up message threading in newsreaders and email clients, which use a hidden "thread" identifier of sorts... -

[Lazarus] TStaticText loses content at irregular intervals (Win 10)

2021-01-16 Thread Bo Berglund via lazarus
Windows 10 Pro, Lazarus 2.0.10 (64 bit), Fpc 3.2.0 (64 bit) I have an application where I have a panel on the bottom of the main form. On this I have a number of controls like buttons etc. There are a set of TStaticText controls where I show the current value of some variables that are set from bu

Re: [Lazarus] TStaticText loses content at irregular intervals (Win 10)

2021-01-17 Thread Bo Berglund via lazarus
On Sun, 17 Jan 2021 15:45:35 +0100, Bart via lazarus wrote: >On Sun, Jan 17, 2021 at 8:46 AM Bo Berglund via lazarus > wrote: > >> is there anything I can do to stop it from >> happening? > >The "stupid"way is to try and call Apllication.PrecessMessages after

Re: [Lazarus] TStaticText loses content at irregular intervals (Win 10)

2021-01-17 Thread Bo Berglund via lazarus
On Sun, 17 Jan 2021 18:18:57 +0100, Bo Berglund via lazarus wrote: >But when the form is in this state not showing what is inside the controls I >can >just drag the form such that the part holding the controls is hidden outside of >the screen and then pull it up again and voila!

Re: [Lazarus] debugging a CGI

2021-01-20 Thread Bo Berglund via lazarus
On Tue, 19 Jan 2021 23:31:27 +0100 (CET), Michael Van Canneyt via lazarus wrote: >Start a 'HTTP server application' in lazarus, add your web module unit to it >and run it. (you may need to add some more units or packages, in essence the >same oneas as in your CGI application). This is interestin

Re: [Lazarus] debugging a CGI

2021-01-22 Thread Bo Berglund via lazarus
On Wed, 20 Jan 2021 11:13:33 +0100 (CET), Michael Van Canneyt via lazarus wrote: > > >On Wed, 20 Jan 2021, Bo Berglund via lazarus wrote: > >> On Tue, 19 Jan 2021 23:31:27 +0100 (CET), Michael Van Canneyt via lazarus >> wrote: >> >>> Start a 'HTTP

[Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-22 Thread Bo Berglund via lazarus
I have a bunch of programs I have written using Lazarus (on Windows 10). I have used several different versions of Lazarus so the older programs are written using an older version, and now I want to modify one of these but don't know which version was used when I last worked on the project. I don'

Re: [Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-23 Thread Bo Berglund via lazarus
On Sat, 23 Jan 2021 13:32:29 +0100, Bart via lazarus wrote: >Assuming you have the sources, and it is a Lazarus program, then in >the LFM there is a string like: LCLVersion = '2.1.0.0' >That will be the last version you used to save or build the program with. Well, that presupposes that it is a

Re: [Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-23 Thread Bo Berglund via lazarus
On Sat, 23 Jan 2021 15:28:39 +0200, Juha Manninen via lazarus wrote: >On Sat, Jan 23, 2021 at 1:18 AM Bo Berglund via lazarus < >lazarus@lists.lazarus-ide.org> wrote: > >> I don't want to modify too much so I would like to use the same version >> now...

Re: [Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-23 Thread Bo Berglund via lazarus
On Sat, 23 Jan 2021 16:40:21 +0100, Luca Olivetti via lazarus wrote: >> How many and what kind of modifications are needed? > >I know because I had to do it recently and the answer is: a lot. >And I wasn't even using a really old version (I last modified the >program 3 years ago). >I another cas

<    1   2   3   4   5   6   7   >