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 tryin

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Luca Olivetti via Lazarus
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://bugs.freepascal.org/view.php?id=30931 isn't included. Is this ve

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 wrote: 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 i

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

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 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 :-( Fixed. The Lazarus devels only su

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 wrote: [...] Is this version still supposed to work with fpc 2.6.4? OK, I see now that it doesn&#

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 i

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 is

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 19:05, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 18:55, Luca Olivetti via Lazarus wrote: El 17/05/17 a les 17:52, Ondrej Pokorny via Lazarus ha escrit: You use 150% scaling (96 DPI = 100%), so Lazarus is also scaled by 150%. It's a new feature :) Well, if

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

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:59, Luca Olivetti via Lazarus ha escrit: 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

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 W

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 a

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

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 with

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 18/05/17 a les 10:47, Ondrej Pokorny via Lazarus ha escrit: On 18.05.2017 9:38, Luca Olivetti via Lazarus wrote: This seems to fix it, maybe fpc 2.6.4 doesn't manage well a "in" with a range of integers? Thank you for the patch, applied! Does the bug have a report in mantis

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 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 :-( Fixed. The Lazarus devels only su

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 OnC

[Lazarus] fpspreadsheet: custom property in xslooxml writer

2017-06-12 Thread Luca Olivetti via Lazarus
Hello, I need to generate an xslx file with a custom property. It's a matter of adding to the zip the file docProps/custom.xml (I see that libreoffice adds more files in that directory but for my purposes custom.xml is enough). The only way I found is to override the WriteToStream methos of TS

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 11:25, Michael Van Canneyt via Lazarus ha escrit: Attempting to store binary data in a string is not advisable. Dynamic arrays, TBytes and - in the worst case - TBytesStream are powerful enough to cover most use-cases in this area. I has worked extremely well and reliably

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-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 wrote: [...] *If* code that worked before (and dare I say without abusing the language) suddenly breaks, the

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 wrote: [...] *If* code that worked before (and dare I say without abusing the language) suddenly breaks, the

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 wrote: [...] *If* code that worked before (and dare I say

Re: [Lazarus] String vs WideString

2017-08-15 Thread Luca Olivetti via Lazarus
El 15/08/17 a les 22:45, Graeme Geldenhuys via Lazarus ha escrit: On 2017-08-15 20:22, Luca Olivetti via Lazarus wrote: Wait a minute, why "abuse"? After all, before code aware strings, an ansistring could store any kind of arbitrary data with no problem and no conversion, and made it

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] 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 (by

Re: [Lazarus] String vs WideString

2017-08-16 Thread Luca Olivetti via Lazarus
El 16/08/17 a les 22:40, Sven Barth via Lazarus ha escrit: On 16.08.2017 20:26, Luca Olivetti via Lazarus wrote: 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

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"

[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 functionality

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 T

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 un

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 is

Re: [Lazarus] Lazarus Release 1.8

2017-12-09 Thread Luca Olivetti via Lazarus
El 09/12/17 a les 13:23, Juha Manninen via Lazarus ha escrit: On Sat, Dec 9, 2017 at 12:57 PM, Luca Olivetti via Lazarus wrote: 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. The auto

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 Raw

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'

Re: [Lazarus] Lazarus Release 1.8

2017-12-11 Thread Luca Olivetti via Lazarus
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 https://www.freepascal.org/docs-html/rtl/classes/tthread.onterminate.html says nothing about it, but the example here (mentioned in the bug report)

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 https://www.freepascal.org/docs-html/rtl/classe

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 own

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 work

[Lazarus] ghost selector in form editor

2018-02-15 Thread Luca Olivetti via Lazarus
I've been seeing this from time immemorial, probably since 0.something, both under windows and linux/gtk/qt (though under linux is much more frequent): when I select an object on the form, sometimes I see a ghost selection (or more than one, see the attached screenshots, first one windows, se

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 wrote: I've been seeing this from time immemorial, probably since 0.something, both under windows and linux/gtk/qt (though under linux is much more frequent): There

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 wrote: I've been seeing this from time immemorial, probably since 0.something, both under windows and

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 and it

[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 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] 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] 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. writeln('áéí'); // works only

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, hence

[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 conne

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: PQCo

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-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 of

Re: [Lazarus] Howto uninstall Lazarus and reinstall

2018-05-27 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 me

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

[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 ASpinWidget.setMinimum(ACusto

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.Max

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] 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 o

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

[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 (https://answers.microsoft.com/en-us/windows/fo

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 this

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 only

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

[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 regards

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 (c

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] 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 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 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 as

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 non-published

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 work-in-progres

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 quit

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

[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 h

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

[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 TThread.Synchronize"

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

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Luca Olivetti via lazarus
El 31/8/19 a les 16:22, Michael Van Canneyt via lazarus ha escrit: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse Also frequently encountered is omitting "" around property names. JSON is a subset of Javascript: D.Parse('{ d: 12345678.3 }'); T

[Lazarus] autocomplete a lookup field in Dbgrid?

2019-10-13 Thread Luca Olivetti via lazarus
I have a a dataset with a lookup field. I edit it with a dbgrid. The grid correctly uses a picklist for that field, but I couldn't find an easy way to autocomplete it (i.e. allow the user to type the first few characters of the value to select an entry). The problem seems to be that the picklist

Re: [Lazarus] [Lazarusdev] RFC --- We are planning the next release: Lazarus 2.0.6

2019-10-13 Thread Luca Olivetti via lazarus
El 13/10/19 a les 14:46, Martin Frb via lazarus ha escrit: This release will be built with FPC 3.0.4. The previous release Lazarus 2.0.4 was built with FPC 3.0.4 as well. Here is the list of fixes for Lazarus 2.0.4 (since 2.0.0): http://wiki.freepascal.org/Lazarus_2.0_fixes_branch We would inv

Re: [Lazarus] [Lazarusdev] RFC --- We are planning the next release: Lazarus 2.0.6

2019-10-16 Thread Luca Olivetti via lazarus
El 16/10/19 a les 12:31, Juha Manninen via lazarus ha escrit: On Sun, Oct 13, 2019 at 4:10 PM Luca Olivetti via lazarus wrote: In my copy of lazarus 2.0.4 I have the fix for bug https://bugs.freepascal.org/view.php?id=35716 I added it to the list to be merged for 2.0.6. and the patch for

[Lazarus] DBNavigator: why is the refresh button enabled only if the dataset is modifiable?

2019-10-16 Thread Luca Olivetti via lazarus
In lcl/include/dbcustomnavigator.inc, method TDBCustomNavigator.EditingChanged CanModify:=Enabled and FDataLink.Active and FDataLink.DataSet.CanModify; ... Buttons[nbRefresh].Enabled:=CanModify; Why? I mean, I have a read only query (specifically a TZReadOnlyQuery) since I only want to show

Re: [Lazarus] DBNavigator: why is the refresh button enabled only if the dataset is modifiable?

2019-10-16 Thread Luca Olivetti via lazarus
El 16/10/19 a les 19:49, Juha Manninen via lazarus ha escrit: On Wed, Oct 16, 2019 at 6:11 PM Luca Olivetti via lazarus wrote: In lcl/include/dbcustomnavigator.inc, method TDBCustomNavigator.EditingChanged CanModify:=Enabled and FDataLink.Active and FDataLink.DataSet.CanModify; ... Buttons

Re: [Lazarus] Feedback about GDB on Windows

2019-10-21 Thread Luca Olivetti via lazarus
El 13/10/19 a les 18:01, Martin Frb via lazarus ha escrit: Testing with Stabs (fpc -g or -gs  / the default for 32 bit) is pointless. It's the only format that shows the content of a record, e.g. var f:textfile stabs (-g) -> f = record TEXt { HANDLE = 450900519, MODE = 55217 , .. dwarf w

Re: [Lazarus] debug "textfile" [[was: Re: Feedback about GDB on Windows]]

2019-10-24 Thread Luca Olivetti via lazarus
El 25/10/19 a les 3:24, Martin Frb via lazarus ha escrit: On 21/10/2019 12:18, Luca Olivetti via lazarus wrote: Testing with Stabs (fpc -g or -gs  / the default for 32 bit) is pointless. It's the only format that shows the content of a record, e.g. var f:textfile stabs (-g) -> f

Re: [Lazarus] The future of the Lazarus IDE

2019-11-23 Thread Luca Olivetti via lazarus
El 23/11/19 a les 23:58, Michael Van Canneyt via lazarus ha escrit: On Sat, 23 Nov 2019, Michael Van Canneyt via lazarus wrote: On Sat, 23 Nov 2019, Werner Pamler via lazarus wrote: I am missing the option "No change wanted towards this direction". Without this option the poll is biased.

Re: [Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...

2019-11-24 Thread Luca Olivetti via lazarus
El 24/11/19 a les 10:22, Bo Berglund via lazarus ha escrit: On Sun, 24 Nov 2019 03:21:11 +0100, Martin Frb via lazarus wrote: On 24/11/2019 01:30, Bo Berglund via lazarus wrote: And I have been bitten several times the last days by the suddenly disappearing Lazarus application If you ca

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Luca Olivetti via lazarus
El 24/11/19 a les 19:47, Graeme Geldenhuys via lazarus ha escrit: Web only apps is not really my cup of tea. I don't always work where there is good any any internet. But you can run a custom web app on a local server, no internet needed. I never wrote something like that, but I have some app

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Luca Olivetti via lazarus
El 24/11/19 a les 22:35, Luca Olivetti via lazarus ha escrit: El 24/11/19 a les 19:47, Graeme Geldenhuys via lazarus ha escrit: Web only apps is not really my cup of tea. I don't always work where there is good any any internet. But you can run a custom web app on a local serve

Re: [Lazarus] The future of the Lazarus IDE

2019-11-25 Thread Luca Olivetti via lazarus
El 24/11/19 a les 22:56, Marco van de Voort via lazarus ha escrit: Op 2019-11-24 om 22:35 schreef Luca Olivetti via lazarus: Web only apps is not really my cup of tea. I don't always work where there is good any any internet. But you can run a custom web app on a local server, no int

  1   2   3   4   >