Re: [Lazarus] TComboBox: Is different behaviour when DroppedDown possible?

2021-01-04 Thread Ondrej Pokorny via lazarus
On 04.01.2021 15:28, frans via lazarus wrote: I'm searching for an alternative behaviour of the TComboBox when scrolling through the DroppedDown list. The selected item is also displayed in the text field. But I would that text field unchanged until the selected item is accepted by Enter. I've

Re: [Lazarus] question with IDE

2021-01-15 Thread Ondrej Pokorny via lazarus
On 15.01.2021 13:34, Mattias Gaertner via lazarus wrote: Do you have a complete example unit (you can strip the statements and vars)? See the attachment for two example units - obviously I cannot guarantee it is the same scenario that duilio experiences but it is definitely an example of Ctr

Re: [Lazarus] TimeZone problem

2021-01-18 Thread Ondrej Pokorny via lazarus
On 18.01.2021 02:30, Steve Gatenby via lazarus wrote: Would anybody be able to point me to a solution for incorrect time reading ? I obviously have a configuration problem between System and FPC - any pointers much appreciated :) Lazarus 2.1.0 r64403 FPC 3.3.1 x86_64-linux-gtk2 Hello, the

Re: [Lazarus] Bump issue

2021-01-22 Thread Ondrej Pokorny via lazarus
On 22.01.2021 23:33, Michael Van Canneyt via lazarus wrote: On Fri, 22 Jan 2021, Marco van de Voort via lazarus wrote: Op 2021-01-22 om 22:56 schreef Michael Van Canneyt via lazarus: I have some time this weekend, I will commit it. Is it really a good idea to accept msec=1000 for TryEncodeTi

Re: [Lazarus] Change of lfm files

2021-01-26 Thread Ondrej Pokorny via lazarus
On 26.01.2021 09:31, Andrey Sobol via lazarus wrote: Hello, Let us suppose, I have changed a form inside tool/debugserver I see what inside .lfm file a version of LCL changed  from 1.3 to 2.10 for example. What is policy about LCL compatibility for patches? Where can I read about this? We so

Re: [Lazarus] Change of lfm files

2021-01-26 Thread Ondrej Pokorny via lazarus
On 26.01.2021 10:02, Ondrej Pokorny via lazarus wrote: On 26.01.2021 09:31, Andrey Sobol via lazarus wrote: Hello, Let us suppose, I have changed a form inside tool/debugserver I see what inside .lfm file a version of LCL changed  from 1.3 to 2.10 for example. What is policy about LCL

Re: [Lazarus] Lazarus Release 2.0.12

2021-02-24 Thread Ondrej Pokorny via lazarus
On 24.02.2021 12:09, Mattias Gaertner via lazarus wrote: The Lazarus team is glad to announce the release of Lazarus 2.0.12. Thank you all for your work! Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/

Re: [Lazarus] The "Use" button in Component List

2021-06-28 Thread Ondrej Pokorny via lazarus
On 28.06.2021 13:45, Michael Van Canneyt via lazarus wrote: On Mon, 28 Jun 2021, Juha Manninen via lazarus wrote: The list opens with Ctrl-Alt-P and is an alternative to the Component Palette. Is the "Use" button somehow useful? A component can be added by selecting it and clicking on designer,

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 11:32, Martin Frb via lazarus wrote: On 29/11/2021 10:52, Juha Manninen via lazarus wrote: Please everybody test issue: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/25124 Some components caused an error when placed on a Frame. Now it apparently works. Can somebody p

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 12:32, Michael Van Canneyt via lazarus wrote: On Mon, 29 Nov 2021, Martin Frb via lazarus wrote: On 29/11/2021 12:05, Michael Van Canneyt via lazarus wrote: What do you mean 'artificial restrictions' ?  The above is quite standard. IMHO  "if csLoading" tests are also "quite st

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 17:18, Juha Manninen via lazarus wrote: On Mon, Nov 29, 2021 at 1:32 PM Ondrej Pokorny via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: There are many scenarios when the Canvas cannot be accessed and it is a common mistake to access it when not a

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 17:47, Martin Frb via lazarus wrote: On 29/11/2021 17:18, Juha Manninen via lazarus wrote: It allows a Frame to stand without a parent in the designer or even at runtime in some hypothetical situation(?). Using Canvas outside Paint may not be recommended but it can be done in so

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 21:09, Ondrej Pokorny via lazarus wrote: It's basically a very bad idea to force create the handle when the component is loaded (that is what you do when you access the canvas). Check TCustomLabel.CalculateSize in lcl\include\customlabel.inc for the solution how to solve

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 29.11.2021 17:18, Juha Manninen via lazarus wrote: On Mon, Nov 29, 2021 at 1:32 PM Ondrej Pokorny via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: There are many scenarios when the Canvas cannot be accessed and it is a common mistake to access it when not a

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Ondrej Pokorny via lazarus
On 30.11.2021 00:27, Juha Manninen via lazarus wrote: On Mon, Nov 29, 2021 at 11:14 PM Ondrej Pokorny via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: On 29.11.2021 17:18, Juha Manninen via lazarus wrote: The commit message is not perfect but the committed code i

Re: [Lazarus] Lazarus build fails

2022-01-25 Thread Ondrej Pokorny via lazarus
I had the same problem and I got this nice answer from Martin: On 18.01.2022 14:19, Martin Frb wrote: From within the IDE => New package have been added: - Once you have a new IDE, that new IDE will include them. - But an old IDE does not know to include them (Because IDE packages, are added to

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 29.03.2022 19:45, Michael Van Canneyt via lazarus wrote: On Tue, 29 Mar 2022, Werner Pamler wrote: I don't know the actual procedure names ATM, but imagine that when the message window needs a "warning" icon (which is - say - 12x12 at 96ppi) then the scaling procedure at 192ppi only needs to

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 09:57, Michael Van Canneyt via lazarus wrote: On Wed, 30 Mar 2022, Ondrej Pokorny via lazarus wrote: On 29.03.2022 19:45, Michael Van Canneyt via lazarus wrote: On Tue, 29 Mar 2022, Werner Pamler wrote: I don't know the actual procedure names ATM, but imagine that when

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 10:20, Arne Hanssen via lazarus wrote: I would guess that naming the files 'xyz_24x24.png' (base size 24px), 'xyz_24x24_150.png' (150% 36px) and 'xyz_24x24_200.png' (200% 48px) could be a reasonable naming solution? On the contrary: it is the bad from both naming solutions :) Yo

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 10:44, Michael Van Canneyt via lazarus wrote: On Wed, 30 Mar 2022, Arne Hanssen via lazarus wrote: Den 30.03.2022 09:57, skreiv Michael Van Canneyt via lazarus: [...] Why do you think I know this is a scaling factor ? I didn't have a clue until Werner explained. Sorry, you can

Re: [Lazarus] Component palette enhancements

2022-04-12 Thread Ondrej Pokorny via lazarus
I have used the "Components" window in a non-docked environment with no problems. I removed the component palette altogether. IMO the point is to use it as a dialog, not as a constantly open IDE window. My workflow is: open the Components window with a keyboard shortcut, find the component by

Re: [Lazarus] Lazarus is running but not responding.

2022-04-21 Thread Ondrej Pokorny via lazarus
On 21.04.2022 11:36, Michael Van Canneyt via lazarus wrote: Lazarus was completely stuck under high load. No way to close it. I had to kill Lazarus with killall -KILL lazarus When I then attempted to restart lazarus, I got "Lazarus is running but not responding." (see screenshot) I have not

Re: [Lazarus] Lazarus is running but not responding.

2022-04-21 Thread Ondrej Pokorny via lazarus
On 21.04.2022 12:05, Michael Van Canneyt via lazarus wrote: On Thu, 21 Apr 2022, Michael Van Canneyt via lazarus wrote: Restarting the PC is NOT an option at this point, and won't be for the next couple of hours... Where are these files located ? OK. Found it, they are in /tmp/*LazarusMain*

Re: [Lazarus] Lazarus is running but not responding.

2022-04-25 Thread Ondrej Pokorny via lazarus
On 22.04.2022 20:38, Mattias Gaertner via lazarus wrote: On Fri, 22 Apr 2022 14:47:14 +0200 Martin Frb via lazarus wrote: [...] It's also very annoying, if you have a hanging IDE instance. It is impossible to start a 2nd instance to attach and debug. lazarus.exe --force-new-instance Yes, it

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-30 Thread Ondrej Pokorny via lazarus
On 30.06.2022 15:11, Mattias Gaertner via lazarus wrote: On Fri, 24 Jun 2022 17:27:13 +0200 Werner Pamler via lazarus wrote: [...] But still the situation is not very satisfying. Maybe instead of the GraphicClass.ClassName the first extension can be written. That means, that an old IDE cannot

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-30 Thread Ondrej Pokorny via lazarus
On 30.06.2022 16:54, Werner Pamler via lazarus wrote: Am 30.06.2022 um 15:11 schrieb Mattias Gaertner via lazarus: Maybe instead of the GraphicClass.ClassName the first extension can be written. That means, that an old IDE cannot read the graphic. This will break Delphi compatibility, i.e. forms

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-30 Thread Ondrej Pokorny via lazarus
On 30.06.2022 18:20, Werner Pamler via lazarus wrote: Am 30.06.2022 um 17:03 schrieb Ondrej Pokorny via lazarus: On 30.06.2022 16:54, Werner Pamler via lazarus wrote: Am 30.06.2022 um 15:11 schrieb Mattias Gaertner via lazarus: Maybe instead of the GraphicClass.ClassName the first extension

Re: [Lazarus] pas2js and server sent events

2022-08-26 Thread Ondrej Pokorny via lazarus
Hello Luca, better send the message to pas2js mailing list directly: https://lists.freepascal.org/mailman/listinfo/pas2js/ Ondrej Am 26.08.2022 um 09:16 schrieb Luca Olivetti via lazarus: Hello, I see that pas2js has support for websockets, but I cannot find if it also supports server sen

Re: [Lazarus] LCL compilation fail for at least x86_linux

2022-12-17 Thread Ondrej Pokorny via lazarus
Am 17.12.2022 um 18:46 schrieb Marcus Sackrow via lazarus: Hi, Am 17.12.22 um 18:25 schrieb Marco van de Voort via lazarus: On 17-12-2022 17:49, John Landmesser via lazarus wrote: Lazarus 2.3.0 (rev main-2_3-2521-gb4c46c) FPC 3.2.2 x86_64-linux-gtk2 So lazarus just compiles fine ... C

Re: [Lazarus] Error building Lazarus Trunk

2022-12-31 Thread Ondrej Pokorny via lazarus
Am 01.01.2023 um 2:29 schrieb Wayne Sherman via lazarus: System Xubuntu 20.04 64-bit with latest updates lazarus_2_2_4 (latest stable) builds successfully, but I am getting an error trying to build Lazarus trunk. The same error happens with both fpc stable and fpc trunk. Running this: git clo

Re: [Lazarus] Error building Lazarus Trunk

2023-01-01 Thread Ondrej Pokorny via lazarus
Am 01.01.2023 um 3:48 schrieb Wayne Sherman: Ondrej Pokorny wrote: Please update and retest. It should be fixed. Sorry, getting the same error: Ok , 2nd attempt :) https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/71ac105bc728824b849c027a016ad572226002c1 Ondrej -- _

Re: [Lazarus] vanishing main menu wanted

2023-01-08 Thread Ondrej Pokorny via lazarus
On 08.01.2023 10:13, duilio foschi via lazarus wrote: Which is the best way to get this effect? Probably TToolBar. Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Ondrej Pokorny via lazarus
On 22.02.2023 18:01, Bo Berglund via lazarus wrote: On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus wrote: Lacking any advice here I started over by removing the old Lazarus directory and the pcp dir and then build from start with a new set of source files in a fresh 2.2.4 subdir..

Re: [Lazarus] Can older Lazarus use newer FPC?

2023-03-29 Thread Ondrej Pokorny via lazarus
On 28.03.2023 13:52, Bo Berglund via lazarus wrote: Can these be changed to point to the new FPC so the old FPC is no longer needed? Usually yes, FPC usually is backwards compatible. But there can be some glitches. I would update Lazarus along with FPC a well. Anyway, you can always check if

[Lazarus] Resources without RC files

2023-05-03 Thread Ondrej Pokorny via lazarus
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: Debug, Target: Test.exe: Exit code 1, Errors: 1, Warnings: 1 Wa

Re: [Lazarus] Resources without RC files

2023-05-04 Thread Ondrej Pokorny via lazarus
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 ? LFM is included as RC_DATA, and probably

Re: [Lazarus] Resources without RC files

2023-05-04 Thread Ondrej Pokorny via lazarus
On 04.05.2023 11:02, Michael Van Canneyt wrote: 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

Re: [Lazarus] Hi-DPI tweak of components

2023-06-06 Thread Ondrej Pokorny via lazarus
On 07.06.2023 00:35, Vojtěch Čihák via lazarus wrote: I finally built a hi-DPI machine (28'' 4k display, currently set to 118PPI) and I need to tweak EC-Controls (https://wiki.freepascal.org/Eye-Candy_Controls) to scale better. One problematic is TECSpinBtns because it is designed like this:

Re: [Lazarus] Hi-DPI tweak of components

2023-06-07 Thread Ondrej Pokorny via lazarus
On 08.06.2023 00:46, Vojtěch Čihák via lazarus wrote: Thanks, please confirm me if I understand well the concept: 1) when component is put on the form in designer: it is scaled (Width & Height) Yes. 2) when it is put on the form later in code: it is not scaled It depends on what you un

Re: [Lazarus] Hi-DPI tweak of components

2023-06-07 Thread Ondrej Pokorny via lazarus
On 08.06.2023 07:53, Ondrej Pokorny via lazarus wrote: On 08.06.2023 00:46, Vojtěch Čihák via lazarus wrote: Because I need to scale internals of TGraphicControl (which has no own Canvas or Handle) I decided to do scaling in SetParent();. You definitely should use DoAutoAdjustLayout

Re: [Lazarus] Hi-DPI tweak of components

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

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
On 08.06.2023 11:46, Giuliano Colla via lazarus wrote: Il 08/06/2023 11:34, Giuliano Colla via lazarus ha scritto: Il 08/06/2023 08:08, Ondrej Pokorny via lazarus ha scritto: Check TCustomColorBox how it handles FColorRectWidth as an example (it uses a default value and if the user

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
On 08.06.2023 12:24, Giuliano Colla wrote: Il 08/06/23 11:58, Ondrej Pokorny via lazarus ha scritto: All in all, an over-complicated approach with little gain. The gain would be that you do not add up rounding errors. We can't have fractional pixels, of course, but we may have the

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
On 08.06.2023 12:24, Giuliano Colla wrote: Il 08/06/23 11:58, Ondrej Pokorny via lazarus ha scritto: All in all, an over-complicated approach with little gain. The gain would be that you do not add up rounding errors. We can't have fractional pixels, of course, but we may have the

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
Here is a more general proof for every possible combination of resolutions between 100% and 400% and for values [0..1]: program Project1; uses Math; const   Resolutions: array[0..8] of Double = (1.00, 1.25, 1.50, 1.75, 2.00, 2.50, 3.00, 3.50, 4.00); var   SourceResultion, TargetResolution:

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
And because it is so much fun, I wrote a completely general program to test it. You can define how many resolution combinations you want to go through and what maximum value you want to start with and it goes through all possible combinations and gives you results after how many cycles a star

Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Ondrej Pokorny via lazarus
On 08.06.2023 19:30, Giuliano Colla wrote: Il 08/06/23 18:40, Ondrej Pokorny via lazarus ha scritto: And because it is so much fun, I wrote a completely general program to test it. Well you've shown that it isn't so bad. But there's another detail to consider, when resizing:

Re: [Lazarus] Hi-DPI tweak of components

2023-06-14 Thread Ondrej Pokorny via lazarus
On 14.06.2023 21:52, Vojtěch Čihák via lazarus wrote: Hi, I have one more question to DoAutoAdjustLayout();. I use TECSpinBtns (TGraphicControl) in two variants: The first as a stand-alone component and the second as a part of TECSpinEdit (where TEdit is Owner and TECSpinBtns is subcomponen

Re: [Lazarus] MJPEG streamer

2023-07-23 Thread Ondrej Pokorny via lazarus
On 23.07.2023 10:35, 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 I would tr

Re: [Lazarus] MJPEG streamer

2023-07-28 Thread Ondrej Pokorny via lazarus
On 28.07.2023 03:40, Steve Gatenby via lazarus wrote: On 24/7/23 09:35, Steve Gatenby via lazarus wrote: On 23/7/23 18:35, 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 anyth

Re: [Lazarus] MJPEG streamer

2023-07-28 Thread Ondrej Pokorny via lazarus
Just to make sure: do you show a real-time video stream in TImage or do you just extract a single frame from the camera one by one? Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Getting notified when active editor changes

2024-08-03 Thread Ondrej Pokorny via lazarus
On 03.08.2024 15:11, Michael Van Canneyt via lazarus wrote: I implemented an initial version of this new feature, I pushed it to the git repo. I always wanted to do this for the project inspector. So I used your approach as an inspiration :) I also found out that LazarusIDE.RemoveAllHandlers

Re: [Lazarus] tsqlquery to excel

2024-09-11 Thread Ondrej Pokorny via lazarus
On 05.09.2024 22:23, Larry Dalton via lazarus wrote: That’s what I thought. Any Excel experts out there who use Lazarus? Check https://wiki.lazarus.freepascal.org/FPSpreadsheet Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https:/

<    1   2   3   4   5