Re: [Lazarus] Embedded font

2017-02-06 Thread Luca Olivetti via Lazarus
El 06/02/17 a les 22:06, Darius Blaszyk via Lazarus ha escrit: Hi, Is it possible to embed a font for a GUI application in Lazarus in a platform independent way? I've been looking on the internet and I only found windows specific solutions so far. You already know the windows way, so I'll

Re: [Lazarus] DateTimeToStr gives an invalid format string error when closing an rdp session

2017-01-25 Thread Luca Olivetti via Lazarus
El 25/01/17 a les 09:23, Luca Olivetti via Lazarus ha escrit: El 25/01/17 a les 09:09, Luca Olivetti via Lazarus ha escrit: El 25/01/17 a les 09:06, Luca Olivetti via Lazarus ha escrit: the error disappears. Reported as http://bugs.freepascal.org/view.php?id=31272 Now, back to my original

Re: [Lazarus] DateTimeToStr gives an invalid format string error when closing an rdp session

2017-01-25 Thread Luca Olivetti via Lazarus
El 25/01/17 a les 09:06, Luca Olivetti via Lazarus ha escrit: the error disappears. Reported as http://bugs.freepascal.org/view.php?id=31272 Now, back to my original problem(TPageControl components randomly disappearing) http://bugs.freepascal.org/view.php?id=31272 Or maybe

[Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

2016-09-29 Thread Luca Olivetti via Lazarus
Hello, I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32, and I have a strange problem with the ide: the object inspector information box shows nothing and, eventually, when I click on fields in the object inspector, lazarus becomes unresponsive and then crashes. If try

Re: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

2016-09-30 Thread Luca Olivetti via Lazarus
El 30/09/16 a les 11:15, Luca Olivetti via Lazarus ha escrit: El 29/09/16 a les 19:35, Luca Olivetti via Lazarus ha escrit: Hello, I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32, and I have a strange problem with the ide: the object inspector information box shows

Re: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

2016-09-30 Thread Luca Olivetti via Lazarus
El 30/09/16 a les 12:51, Ondrej Pokorny via Lazarus ha escrit: On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: If I compile the old turbopower_ipro with this directive (even if it doesn't need it) it doesn't work (the information box doesn't show anything, though I didn't manage to crash

Re: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

2016-09-30 Thread Luca Olivetti via Lazarus
El 30/09/16 a les 12:46, Mattias Gaertner via Lazarus ha escrit: On Fri, 30 Sep 2016 12:27:46 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4 to 1.6 (and defining html_

Re: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

2016-09-30 Thread Luca Olivetti via Lazarus
El 30/09/16 a les 13:01, Ondrej Pokorny via Lazarus ha escrit: On 30.09.2016 12:57, Luca Olivetti via Lazarus wrote: El 30/09/16 a les 12:51, Ondrej Pokorny via Lazarus ha escrit: On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: If I compile the old turbopower_ipro with this directive

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 15:42, Mattias Gaertner via Lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 1.6.2. This is a bugfix release. This release was built with FPC 3.0.0. Is it supposed to work even with 2.6.4? I have to investigate why but a TDBLookupComboBox

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 18:46, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 17:48, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 15:42, Mattias Gaertner via Lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 1.6.2. This is a bugfix release

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 19:12, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 18:46, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 17:48, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 15:42, Mattias Gaertner via Lazarus ha escrit: The Lazarus team is glad to announce

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 17:48, Luca Olivetti via Lazarus ha escrit: El 15/11/16 a les 15:42, Mattias Gaertner via Lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 1.6.2. This is a bugfix release. This release was built with FPC 3.0.0. Is it supposed to work even

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 19:27, Ondrej Pokorny via Lazarus ha escrit: Thank you for your efforts - please send the patch to mantis so that DB maintainers don't oversee it! Done: http://bugs.freepascal.org/view.php?id=30931 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Luca Olivetti via Lazarus
El 15/11/16 a les 19:52, Kostas Michalopoulos via Lazarus ha escrit: The main site seems to still serve the 1.6.0 download. I usually update my copy from svn http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel.

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Luca Olivetti via Lazarus
El 02/11/16 a les 14:47, Graeme Geldenhuys via Lazarus ha escrit: On 2016-11-02 13:36, Luca Olivetti via Lazarus wrote: Try using a TSynEdit instead of a TMemo. That's a bit of overkill in most cases, plus - as Bernd clearly point out - there is a TMemo regression bug in LCL. Maybe it's

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Luca Olivetti via Lazarus
El 02/11/16 a les 13:27, Bernd Mueller via Lazarus ha escrit: Hello, with Lazarus 1.6 (FPC 3.0.0 i386-linux-gtk 2) filling a Memo with 1 lines takes about 18 seconds on my system. Doing the same with Lazarus 1.4.0 (FPC 2.6.4 i386-linux-gtk 2) takes about 193 ms. I cannot believe, that

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-08 Thread Luca Olivetti via Lazarus
El 08/12/16 a les 19:20, Juha Manninen via Lazarus ha escrit: On Wed, Dec 7, 2016 at 9:35 PM, Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: Apart from the fact that I had to comment out a call to gdk_window_restack in lcl/interfaces/gtk2/gtk2widgetset.inc (not ava

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Luca Olivetti via Lazarus
El 09/12/16 a les 09:12, Ondrej Pokorny via Lazarus ha escrit: Hello, I have worked on high DPI features recently. If you want to play with high DPI support, follow this instruction: http://wiki.lazarus.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.7_and_above I currently have some

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Luca Olivetti via Lazarus
El 09/12/16 a les 17:17, Ondrej Pokorny via Lazarus ha escrit: On 09.12.2016 17:06, Luca Olivetti via Lazarus wrote: But "After some time of testing LCLScaleForms will become default." What happens then when I open an old form It will have Scaled=True. But I can change it bac

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Luca Olivetti via Lazarus
El 09/12/16 a les 16:55, Ondrej Pokorny via Lazarus ha escrit: On 09.12.2016 16:51, Luca Olivetti via Lazarus wrote: I currently have some projects where I use ScaleBy to manually scale the forms depending on the monitor resolution[*], if I leave tform.scaled to false will it work as before

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 05/12/16 a les 22:26, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 17:39, zeljko ha escrit: I changed the call to look like the one for gtk >= 2.14 (i.e, Path instead of nil) and now I can open the options dialog. I really don't know gtk2, but maybe the differentiation is nee

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 07/12/16 a les 11:28, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 22:26, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 17:39, zeljko ha escrit: I changed the call to look like the one for gtk >= 2.14 (i.e, Path instead of nil) and now I can open the options dialog

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 07/12/16 a les 18:57, Juha Manninen via Lazarus ha escrit: No need. I changed it in r53590. Please test. If somebody finds an old GTK version where it does NOT work then we will scratch our heads more, but I doubt it. Apart from the fact that I had to comment out a call to

Re: [Lazarus] {Spam?} Re: Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-05 Thread Luca Olivetti via Lazarus
El 05/12/16 a les 17:39, zeljko ha escrit: I changed the call to look like the one for gtk >= 2.14 (i.e, Path instead of nil) and now I can open the options dialog. I really don't know gtk2, but maybe the differentiation is needed for an earlier version of gtk and not 2.14? Maybe < 2.12

Re: [Lazarus] Zeos SQLite Linux

2017-03-27 Thread Luca Olivetti via Lazarus
El 27/03/17 a les 12:07, Michael Van Canneyt via Lazarus ha escrit: On Mon, 27 Mar 2017, Michael Schnell via Lazarus wrote: I'd like to check out working with Zeos and SQLite. I have an "SVN" installation of Lazarus on Linux. So i used same for testing. I found a demo program and when

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 22:08, Luca Olivetti ha escrit: El 15/08/17 a les 21:38, Ondrej Pokorny via Lazarus ha escrit: On 15.08.2017 21:34, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 21:22:10 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] *If

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 21:38, Ondrej Pokorny via Lazarus ha escrit: On 15.08.2017 21:34, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 21:22:10 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] *If* code that worked before (and dare I say without a

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 21:38, Ondrej Pokorny via Lazarus ha escrit: On 15.08.2017 21:34, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 21:22:10 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] *If* code that worked before (and dare I say without a

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 21:14, Graeme Geldenhuys via Lazarus ha escrit: On 2017-08-15 18:29, Luca Olivetti via Lazarus wrote: but for 3rd party libraries/components (e.g. synapse comes to mind Then better start filing bug reports to all those 3rd party libraries and components - they have been

Re: [Lazarus] String vs WideString

2017-08-16 Thread Luca Olivetti via Lazarus
El 16/08/17 a les 20:26, Luca Olivetti via Lazarus ha escrit: El 16/08/17 a les 01:17, Graeme Geldenhuys via Lazarus ha escrit: In hind sight, using TBytes or TMemoryStream and it would have been very clear that it is a storage container for byte sized data, and no automatic conversion

Re: [Lazarus] String vs WideString

2017-08-16 Thread Luca Olivetti via Lazarus
El 16/08/17 a les 01:17, Graeme Geldenhuys via Lazarus ha escrit: In hind sight, using TBytes or TMemoryStream and it would have been very clear that it is a storage container for byte sized data, and no automatic conversion (by the compiler) would be done to data stored in such containers.

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 16:48, Mattias Gaertner via Lazarus ha escrit: On Wed, 17 May 2017 16:34:14 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] Is this version still supposed to work with fpc 2.6.4? OK, I see now that it doesn't build with fpc 2.6.4 :-(

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 18:55, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 17:52, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:47, Luca Olivetti via Lazarus wrote: El 17/05/17 a les 17:43, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:38, Luca Olivetti via Lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 17:43, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:38, Luca Olivetti via Lazarus wrote: FWIW it does the same with linux/gtk2 and, boy, the ide is *ugly*: giant, blurred, icons everywhere, giant fonts in the tabs of the components' palette, giant fonts

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 17:29, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 16:48, Mattias Gaertner via Lazarus ha escrit: On Wed, 17 May 2017 16:34:14 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] Is this version still supposed to work with fpc 2.6.4

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 17:52, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:47, Luca Olivetti via Lazarus wrote: El 17/05/17 a les 17:43, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:38, Luca Olivetti via Lazarus wrote: FWIW it does the same with linux/gtk2 and, boy, the ide

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 19:19, zeljko ha escrit: On 17.05.2017 19:08, Luca Olivetti via Lazarus wrote: The ide compiled with the qt widgetset doesn't show the same problem (though it doesn't seem to be using the same fonts as other kde applications) KDE Plasma is using Qt5, but ide is Qt4, so

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and correctly sized icons. It still has the problem with optimalfill, so it's definitely not platform specific. See https://youtu.be/NFZGVx7V2C0 Bye -- Luca Olivetti Wetron

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 20:33, zeljko ha escrit: On 17.05.2017 20:16, Luca Olivetti via Lazarus wrote: Meanwhile I see that in the plasma font setting I have the dpi forced to 96, a setting that apparently is respected both by qt4 and qt5 (as well as gtk applications). If it's forced than all qt

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and correctly sized icons. It still has the problem with optimalfill, so it's definitely not platform specific. See https

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 18/05/17 a les 09:17, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and correctly sized icons. It still has the problem

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 16:39, Mattias Gaertner via Lazarus ha escrit: On Wed, 17 May 2017 16:31:33 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: El 17/05/17 a les 14:39, Mattias Gaertner via Lazarus ha escrit: == Why should everybody (including you) test the r

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 16:31, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 14:39, Mattias Gaertner via Lazarus ha escrit: == Why should everybody (including you) test the release candidate? == I didn't test it yet but I checked it out from svn and I see that the patch here https

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 16:48, Mattias Gaertner via Lazarus ha escrit: On Wed, 17 May 2017 16:34:14 +0200 Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] Is this version still supposed to work with fpc 2.6.4? OK, I see now that it doesn't build with fpc 2.6.4 :-(

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-27 Thread Luca Olivetti via Lazarus
El 19/05/17 a les 01:30, Werner Pamler via Lazarus ha escrit: Andreas, could you try r5868 of fpspreadsheet? I fixed a "Window has no parent" error with frames which had crept in, again... I just discovered that with this revision OnSelectCell doesn't fire anymore. Not a biggie, I'm using

Re: [Lazarus] String vs WideString

2017-08-17 Thread Luca Olivetti via Lazarus
El 17/08/17 a les 01:34, Graeme Geldenhuys via Lazarus ha escrit: On 2017-08-16 19:26, Luca Olivetti via Lazarus wrote: I mean, TBytes is just an "array of char". NO! Char can now mean a 1-byte char or a 2-byte char (I don't know how Sorry, I meant "array of byte". The

[Lazarus] Control DBGrid row position

2017-11-16 Thread Luca Olivetti via Lazarus
Is there a way to control the position of the selected row in a TDBGrid? With a TStringGrid you can control it with TopRow, but TDBGrid has no such property and I couldn't find a way to do what I want. I understand that TopRow wouldn't make sense in a DBGrid, but I need the same

Re: [Lazarus] Control DBGrid row position

2017-11-16 Thread Luca Olivetti via Lazarus
El 16/11/17 a les 16:28, Luca Olivetti via Lazarus ha escrit: Is there a way to control the position of the selected row in a TDBGrid? With a TStringGrid you can control it with TopRow, but TDBGrid has no such property and I couldn't find a way to do what I want. I understand that TopRow

Re: [Lazarus] Lazarus Release 1.8

2017-12-08 Thread Luca Olivetti via Lazarus
El 06/12/17 a les 20:15, Mattias Gaertner via Lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 1.8. I see that, while under linux there's no problem, under windows it cannot be built with fpc-2.6.4. Now I managed to build it by transplanting the missing unicode

Re: [Lazarus] Lazarus Release 1.8

2017-12-11 Thread Luca Olivetti via Lazarus
El 09/12/17 a les 11:57, Luca Olivetti via Lazarus ha escrit: I know I'll have to upgrade to fpc 3 someday, but what worries me about it is my (and other 3rd party units) use of ansistrings as binary buffers. I did some quick tests some time ago an nothing seemed broken, but I'm somewhat

Re: [Lazarus] Lazarus Release 1.8

2017-12-11 Thread Luca Olivetti via Lazarus
El 11/12/17 a les 16:14, Michael Van Canneyt ha escrit: On Mon, 11 Dec 2017, Luca Olivetti wrote: El 11/12/17 a les 13:43, Michael Van Canneyt ha escrit: [*] I don't know if freeing a thread in OnTerminate is allowed. FPC documentation here

Re: [Lazarus] Lazarus Release 1.8

2017-12-10 Thread Luca Olivetti via Lazarus
El 10/12/17 a les 15:02, Kostas Michalopoulos via Lazarus ha escrit: > I think I had this discussion before: I'm not going to use TBytes until it offers the same convenience as an ansistring (i.e. easy concatenation, insertion and deletion, not to mention search and replace, etc.). Isn't

Re: [Lazarus] Lazarus Release 1.8

2017-12-09 Thread Luca Olivetti via Lazarus
El 09/12/17 a les 00:41, Werner Pamler via Lazarus ha escrit: Am 08.12.2017 um 22:32 schrieb Juha Manninen via Lazarus: How does it fail? Lazarus 1.8 was meant to still compile with FPC 2.6.4. However with Lazarus trunk I would be happy to go ahead and forget 2.6.4. If the fix for Lazarus 1.8

Re: [Lazarus] Is there a way to reconnect to postgresql if the connection fails?

2018-05-17 Thread Luca Olivetti via Lazarus
El 15/05/18 a les 21:43, Luca Olivetti via Lazarus ha escrit: El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit: I will need to check this, but the purpose of Close(True) is exactly to ignore errors while closing for a reconnect. It was introduced and tested in the case

[Lazarus] Is there a way to reconnect to postgresql if the connection fails?

2018-05-15 Thread Luca Olivetti via Lazarus
Hello, I'm trying to devise a strategy for when the connection to the server fails. I'm using zeos but I also tried with sqldb and I couldn't find a way. I open a connection to the server, then I stop the server and subsequent operations (e.g. refreshing a query) fail (obviously since the

Re: [Lazarus] Is there a way to reconnect to postgresql if the connection fails?

2018-05-15 Thread Luca Olivetti via Lazarus
El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit: I will need to check this, but the purpose of Close(True) is exactly to ignore errors while closing for a reconnect. It was introduced and tested in the case of MySQL, but normally should work on any database. Can you please

Re: [Lazarus] Is there a way to reconnect to postgresql if the connection fails?

2018-05-15 Thread Luca Olivetti via Lazarus
El 15/05/18 a les 20:44, Michael Van Canneyt ha escrit: Is there a way to force the closing of a connection in this case so I can try and reopen it again? Try using forcedclose in SQLDb: TheDatabase.Close(True); Project project1 raised exception class 'EPQDatabaseError' with message:

[Lazarus] spinedit issue with qt5

2018-06-11 Thread Luca Olivetti via Lazarus
Lazarus 1.8.4, FPC 3.0.4, x86_64-linux-qt5 In a spinedit, if I set maxvalue and minvalue to 0, the spinedit doesn't work with the qt5 widgetset. I see that in qtswsspin.pp if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then begin

Re: [Lazarus] spinedit issue with qt5

2018-06-11 Thread Luca Olivetti via Lazarus
El 11/06/18 a les 11:14, Luca Olivetti via Lazarus ha escrit: Lazarus 1.8.4, FPC 3.0.4, x86_64-linux-qt5 In a spinedit, if I set maxvalue and minvalue to 0, the spinedit doesn't work with the qt5 widgetset. I see that in qtswsspin.pp     if (ACustomFloatSpinEdit.MaxValue

Re: [Lazarus] spinedit issue with qt5

2018-06-11 Thread Luca Olivetti via Lazarus
El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: I changed that to     if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then     begin   ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue);   ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxVa

Re: [Lazarus] spinedit issue with qt5

2018-06-11 Thread Luca Olivetti via Lazarus
El 11/06/18 a les 11:43, Luca Olivetti via Lazarus ha escrit: El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: I changed that to if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then begin    ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinVa

Re: [Lazarus] spinedit issue with qt5

2018-06-11 Thread Luca Olivetti via Lazarus
El 11/06/18 a les 11:49, zeljko ha escrit: On 11.06.2018 11:43, Luca Olivetti via Lazarus wrote: El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: I changed that to if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then be

Re: [Lazarus] Trying to install Lazarus with fpc setup for debugging its libraries.

2018-06-01 Thread Luca Olivetti via Lazarus
El 01/06/18 a les 21:03, Donald Ziesig via Lazarus ha escrit: Why doesn't the installer recognize fpc?  Where does it look for it? What am I missing? Because it's looking in the database of packages installed via the package manager. Since you installed fpc from source it's not counted as

Re: [Lazarus] Howto uninstall Lazarus and reinstall

2018-05-28 Thread Luca Olivetti via Lazarus
El 28/05/18 a les 03:22, Terry A. Haimann via Lazarus ha escrit: I am getting many duplicate errors like the following: Note: Duplicate unit "ZDbcLogging" in "zcore 7.1", orphaned ppu "/home/terry/zeosdbo/ZEOSDBO-7.1.3a-stable/packages/lazarus/lib/x86_64- linux/ZDbcLogging.ppu" So I think I

Re: [Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Luca Olivetti via Lazarus
El 03/05/18 a les 15:24, Landmesser John via Lazarus ha escrit: issue still exists, so i put a message to ZeosLib-Forum. In the version of zeos I have (7.1.4), the property AutoEncodeStrings is marked as "default True", however the constructor doesn't set the underlying field to true,

Re: [Lazarus] Any tips to speed up Lazarus->GDB debugger?

2018-01-11 Thread Luca Olivetti via Lazarus
El 11/01/18 a les 18:45, Martin Frb via Lazarus ha escrit: On 11/01/2018 15:13, Dennis via Lazarus wrote: I remember in Delphi 5, they had an option of whether to use Debug dcu (of the main VCL units/objects files). Is there a similar switch I can use to disable debugger in all, except my

Re: [Lazarus] Can not access www.lazarus-ide.org

2018-02-13 Thread Luca Olivetti via Lazarus
El 13/02/18 a les 13:05, Zaher Dirkey via Lazarus ha escrit: I think Lazarus site using a service that block some countries, kind of protecting, for me it is acting like most of sites that block my country "Syria" (by not responds after long delay). Same problem here: I can access it from

Re: [Lazarus] ghost selector in form editor

2018-02-18 Thread Luca Olivetti via Lazarus
El 18/02/18 a les 10:31, Luca Olivetti via Lazarus ha escrit: The plot thickens: while the ghost selector of a label diverges from the real one, the ghost selector of other controls moves in sync: https://www.youtube.com/watch?v=wTAKaYIM8_U Meanwhile, I compiled the ide with qt5

[Lazarus] Garbage writing to console

2018-02-22 Thread Luca Olivetti via Lazarus
Lazarus 1.8.0, fpc 3.0.4, windows application (with "win32 gui application unchecked") or console application (using LazUTF8). File encoding utf-8 without bom. writeln('áéí') produces garbage, contrary to what's said in http://wiki.freepascal.org/Unicode_Support_in_Lazarus#Writing_to_console

Re: [Lazarus] Garbage writing to console

2018-02-22 Thread Luca Olivetti via Lazarus
lso https://www.freepascal.org/docs-html/rtl/system/settextcodepage.html On 22/02/18 11:21, Luca Olivetti via Lazarus wrote: Lazarus 1.8.0, fpc 3.0.4, windows application (with "win32 gui application unchecked") or console application (using LazUTF8). File encoding utf-8 withou

Re: [Lazarus] Garbage writing to console

2018-02-22 Thread Luca Olivetti via Lazarus
El 22/02/18 a les 22:26, Ondrej Pokorny via Lazarus ha escrit: On 22.02.2018 12:21, Luca Olivetti via Lazarus wrote: Lazarus 1.8.0, fpc 3.0.4, windows application (with "win32 gui application unchecked") or console application (using LazUTF8). File encoding utf-8 without bom. wr

Re: [Lazarus] ghost selector in form editor

2018-02-18 Thread Luca Olivetti via Lazarus
El 18/02/18 a les 02:41, Vojtěch Čihák via Lazarus ha escrit: Hi, I can simulate this on Qt in several ways: 1) select two components on different tabs of page control, one of them will be ghost That I think it's a different issue (and, IIRC, I saw that too). In this case it's just a plain

Re: [Lazarus] ghost selector in form editor

2018-02-18 Thread Luca Olivetti via Lazarus
El 18/02/18 a les 01:17, Juha Manninen via Lazarus ha escrit: On Thu, Feb 15, 2018 at 10:10 AM, Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: I've been seeing this from time immemorial, probably since 0.something, both under windows and linux/gtk/qt (though under

Re: [Lazarus] ghost selector in form editor

2018-02-18 Thread Luca Olivetti via Lazarus
El 18/02/18 a les 10:24, Luca Olivetti via Lazarus ha escrit: El 18/02/18 a les 01:17, Juha Manninen via Lazarus ha escrit: On Thu, Feb 15, 2018 at 10:10 AM, Luca Olivetti via Lazarus <lazarus@lists.lazarus-ide.org> wrote: I've been seeing this from time immemorial, probably since 0.som

Re: [Lazarus] Garbage writing to console

2018-02-23 Thread Luca Olivetti via Lazarus
El 23/02/18 a les 09:23, Mattias Gaertner via Lazarus ha escrit: On Fri, 23 Feb 2018 08:56:55 +0100 Ondrej Pokorny via Lazarus wrote: On 23.02.2018 8:46, Mattias Gaertner via Lazarus wrote: But this is a Lazarus issue. Why? Because the wiki page is unclear.

Re: [Lazarus] Garbage writing to console

2018-02-22 Thread Luca Olivetti via Lazarus
El 22/02/18 a les 13:46, Luca Olivetti via Lazarus ha escrit: El 22/02/18 a les 13:07, Tony Whyman via Lazarus ha escrit: You may find the "SetTextCodePage" procedure useful when it comes to setting the code page for a Windows console. e.g. SetTextCodePage(stdout,cp_utf8); S

Re: [Lazarus] Installed lazarus-ide in Ubuntu18, cannot install package

2018-10-24 Thread Luca Olivetti via Lazarus
El 24/10/18 a les 13:10, Juha Manninen via Lazarus ha escrit: Why old Lazarus 1.8.4? Why don't you use the new 2.0 branch? I still have to keep 1.6.4 around due to a bug with bitpacked records in fpc 3. I use 1.8.4 for projects I can compile with fpc 3 (even if I provided some bug reports

Re: [Lazarus] Installed lazarus-ide in Ubuntu18, cannot install package

2018-10-24 Thread Luca Olivetti via Lazarus
El 24/10/18 a les 22:11, Sven Barth via Lazarus ha escrit: Am 24.10.2018 um 21:35 schrieb Luca Olivetti via Lazarus: El 24/10/18 a les 13:10, Juha Manninen via Lazarus ha escrit: Why old Lazarus 1.8.4? Why don't you use the new 2.0 branch? I still have to keep 1.6.4 around due to a bug

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

2019-01-23 Thread Luca Olivetti via lazarus
This isn't strictly a lazarus issue, but my google fu is failing me. It turns out that windows 10 with a touch screen hides the mouse cursor, so Screen.Cursor=crHourGlass does nothing. I found that there isn't a setting to force the mouse cursor on

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

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

Re: [Lazarus] Convert record to JSON?

2019-02-26 Thread Luca Olivetti via lazarus
El 21/7/18 a les 18:26, Sven Barth via Lazarus ha escrit: !! :) There are definitely still some problems with it, e.g. a field of type TObject (or any descendant) currently can't be deserialized as I didn't want to rewrite DeStreamClassProperty. Then there are the sets which for

Re: [Lazarus] Convert record to JSON?

2019-02-26 Thread Luca Olivetti via lazarus
El 26/2/19 a les 11:11, Sven Barth via lazarus ha escrit: I didn't test bitbacked records so those might indeed fail. The RTTI information gives TkUnknown for a bitpacked record. And field names are currently not available. This would require the extended RTTI which is still

[Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 6/2/19 a les 19:19, Luca Olivetti ha escrit: [The original thread was in fpc-devel, but this is a lazarus issue I think] El 6/2/19 a les 18:51, Sven Barth via fpc-devel ha escrit: Would you nevertheless try with 3.2, please? Just in case it happens to be the problem I had fixed in

Re: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 13/2/19 a les 9:50, Werner Pamler via lazarus ha escrit: Please update your Laz-fixes installation: The patch for the issue with VirtualTreeView has been merged to fixes in r60091, that for the issue with TAChart in r60392. I checked out r60392 but I still cannot compile VirtualTreeView

Re: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 13/2/19 a les 16:18, Luca Olivetti via lazarus ha escrit: No, you must use the VirtualTreeViews which comes with Lazarus (folder components/virtualtreeview). If you absolutely want to stay with this github version you should replace "var" in the offending methods by a "const

Re: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 13/2/19 a les 17:10, Luca Olivetti via lazarus ha escrit: El 13/2/19 a les 16:18, Luca Olivetti via lazarus ha escrit: No, you must use the VirtualTreeViews which comes with Lazarus (folder components/virtualtreeview). If you absolutely want to stay with this github version you should

Re: [Lazarus] Lazarus Release 2.0.0

2019-02-14 Thread Luca Olivetti via lazarus
El 14/2/19 a les 8:53, Luca Olivetti via lazarus ha escrit: El 5/2/19 a les 11:48, Mattias Gaertner via lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 2.0.0. This release was built with FPC 3.0.4. The previous release Lazarus 1.8.4 was built with FPC 3.0.4

Re: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 13/2/19 a les 23:56, Werner Pamler via lazarus ha escrit: Am 13.02.2019 um 17:18 schrieb Luca Olivetti via lazarus: I added a note to the wiki that both lclextensions and virtualtreeview are now included with lazarus. Which article? I want to have a look and check whether it is correct

Re: [Lazarus] Lazarus Release 2.0.0

2019-02-13 Thread Luca Olivetti via lazarus
El 5/2/19 a les 11:48, Mattias Gaertner via lazarus ha escrit: The Lazarus team is glad to announce the release of Lazarus 2.0.0. This release was built with FPC 3.0.4. The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. Here is the list of changes for Lazarus and Free Pascal:

Re: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize]

2019-02-13 Thread Luca Olivetti via lazarus
El 13/2/19 a les 14:17, Werner Pamler via lazarus ha escrit: Am 13.02.2019 um 12:08 schrieb Luca Olivetti via lazarus: El 13/2/19 a les 9:50, Werner Pamler via lazarus ha escrit: I checked out r60392 but I still cannot compile VirtualTreeView (checked out from github https://github.com

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

2019-01-24 Thread Luca Olivetti via lazarus
El 24/1/19 a les 10:23, Graeme Geldenhuys via lazarus ha escrit: On 23/01/2019 14:49, Luca Olivetti via lazarus wrote: is there an alternative way to show that the application is busy? A small borderless dialog with a short message? Think in the lines of a splashscreen-like dialog. I use

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

2019-01-25 Thread Luca Olivetti via lazarus
El 25/1/19 a les 10:21, Alexander Hofmann via lazarus ha escrit: Hi, I've been looking for something like this, too, some time ago, and I decided to go for a self-built solution, to be independent of the underlying widget-set. (I grayed-out all important widgets, which can be done automatically

Re: [Lazarus] is there a free Grid component better than the default TStringGrid?

2019-05-27 Thread Luca Olivetti via lazarus
El 27/5/19 a les 12:00, Werner Pamler via lazarus ha escrit: Am 27.05.2019 um 06:43 schrieb Dennis via lazarus: I am hoping one that supports different column types editing without much coding on my side. That's what the standard TStringGrid can do.  Just use Columns. You can pick an editor in

Re: [Lazarus] Compile time varies dependiong on usage, why?

2019-05-26 Thread Luca Olivetti via lazarus
El 26/5/19 a les 8:54, Michael Van Canneyt via lazarus ha escrit: There may be other factors involved (maybe lazarus decides to recompile the LCL or other packages, altough it would really surprise me to hear that) , but I think the above is the most likely. Unrelated, but it does that

[Lazarus] really strange messagedlg hang

2019-05-31 Thread Luca Olivetti via lazarus
Hello, I have a relatively complex, multithreaded application, compiled with lazarus 1.6.4/fpc 2.6.4 (it's the same application I reported in fpc-devel having a problem with tthread.synchronize but I cannot find in in the archive right now, the thread was "Suspicion about

[Lazarus] Lazarus 2.0.2 can no longer rename procedures/methods?

2019-05-30 Thread Luca Olivetti via lazarus
As per the subject, right clicking on a procedure/method, the "refactoring->rename identifier" item is greyed out. It was available in 1.8.x. Is there some setting to re-enable it? Bye -- Luca -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Lazarus 2.0.2 can no longer rename procedures/methods?

2019-05-30 Thread Luca Olivetti via lazarus
El 30/5/19 a les 12:07, Luca Olivetti via lazarus ha escrit: As per the subject, right clicking on a procedure/method, the "refactoring->rename identifier" item is greyed out. It was available in 1.8.x. Is there some setting to re-enable it? Mmh, in spite of it being greyed

Re: [Lazarus] really strange messagedlg hang

2019-06-01 Thread Luca Olivetti via lazarus
El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit: If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use 3.0.2 due to the above mentioned thread issue) the problem disappears. It also disappears (with lazarus 1.6.4/fpc 2.6.4) if I turn off the option "use manifest

Re: [Lazarus] really strange messagedlg hang

2019-06-10 Thread Luca Olivetti via lazarus
El 1/6/19 a les 12:18, Luca Olivetti via lazarus ha escrit: El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit: If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use 3.0.2 due to the above mentioned thread issue) the problem disappears. It also disappears (with lazarus

Re: [Lazarus] really strange messagedlg hang

2019-06-10 Thread Luca Olivetti via lazarus
El 10/6/19 a les 12:50, Martin Frb via lazarus ha escrit: On 10/06/2019 12:40, Luca Olivetti via lazarus wrote: El 1/6/19 a les 12:18, Luca Olivetti via lazarus ha escrit: El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit: If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot

  1   2   3   >