Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Sven Barth via Lazarus wrote: On 23.07.2017 12:50, Michael Van Canneyt via Lazarus wrote: Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 This will cause compilation of win32wsdialogs.pp to fail, in particular in class procedure

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Ondrej Pokorny via Lazarus wrote: On 23.07.2017 12:50, Michael Van Canneyt via Lazarus wrote: Directly passing an interface where (T)REFIID is expected, will no longer be possible. What is the fix? "@GetTypeData(TypeInfo(IShellItem))^.Guid" ? That is on

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: { IUnknown } function QueryInterface({$IFDEF FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} IID: TGUID; out Obj): Hresult; virtual; {$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; That is a historical monstrosity :) I a gree we can do away

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: Am 23.07.2017 um 14:24 schrieb Michael Van Canneyt via Lazarus: The pointer-ness of REFIID is an artefact of the C-ABI. It is not meant to mean 'pass a pointer to a GUID-struct', but 'pass a GUID using byref'. We have cons

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 as the reporter: not really. The pointer-ness of REFIID is an artefact of the C-ABI. It is not meant to mean 'pass a pointer to a GUID-struct', but 'pass a GUID usin

[Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 This will cause compilation of win32wsdialogs.pp to fail, in particular in class procedure TWin32WSOpenDialog.SetupVistaFileDialog(ADialog: IFileDialog; const AOpenDialog: TOpenDialog); search for: if InitialDir

[Lazarus] TStringStream changes

2017-07-21 Thread Michael Van Canneyt via Lazarus
Hello, TStringStream now observes encoding, following the fix for: https://bugs.freepascal.org/view.php?id=30508 Basically, this is a Delphi compatibility fix. This may impact some programs which use encodings that deviate from the default system encoding. In that case, the solution is to ca

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Michael Van Canneyt via Lazarus
On Thu, 20 Jul 2017, Juha Manninen via Lazarus wrote: On Thu, Jul 20, 2017 at 2:39 PM, Ondrej Pokorny via Lazarus wrote: IMO we should give the Lazarus foundation more importance/advertisement. It should be the other way around. The foundation should advertise the project it is associated

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Michael Van Canneyt via Lazarus
On Thu, 20 Jul 2017, Ondrej Pokorny via Lazarus wrote: On 20.07.2017 13:33, Graeme Geldenhuys via Lazarus wrote: And EMBT thinks they can still justify the HUGE price tag?? What are Delphi Developers actually paying for? They should vote with their wallet and stop upgrading until EMBT actual

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-13 Thread Michael Van Canneyt via Lazarus
On Thu, 13 Jul 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-07-13 06:54, Michael Van Canneyt via Lazarus wrote: I have put this little snippet of text aside, so I can use it for future reference ;) Yeah, knowing this list [nobody here ever forgets], that is something that going to

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-12 Thread Michael Van Canneyt via Lazarus
On Thu, 13 Jul 2017, Graeme Geldenhuys via Lazarus wrote: I promise, I'll never complain about Lazarus IDE or FPC again! :) Long live open source development tools. I have put this little snippet of text aside, so I can use it for future reference ;) ps: There was ONE thing I did like

Re: [Lazarus] Cross OS API Wrappers

2017-07-10 Thread Michael Van Canneyt via Lazarus
On Mon, 10 Jul 2017, R0b0t1 via Lazarus wrote: Hello, I was wondering if cross-platform (Linux, BSD, Windows) wrappers exist for certain goals like "create a system timer" or "use asynchronous IO." A good example would be a class which uses timerfds and epoll on Linux, kqueues and kevent on

Re: [Lazarus] GetAppConfigDir and GetAppConfigDirUTF8 and Apache

2017-07-06 Thread Michael Van Canneyt via Lazarus
On Thu, 6 Jul 2017, Michael Van Canneyt via Lazarus wrote: On Thu, 6 Jul 2017, Andrea Mauri via Lazarus wrote: Dear all, I have a question related GetAppConfigDir function when the application is called from a script being run by apache. One of my application user gets this result from

Re: [Lazarus] GetAppConfigDir and GetAppConfigDirUTF8 and Apache

2017-07-06 Thread Michael Van Canneyt via Lazarus
On Thu, 6 Jul 2017, Andrea Mauri via Lazarus wrote: Dear all, I have a question related GetAppConfigDir function when the application is called from a script being run by apache. One of my application user gets this result from GetAppConfigDir(False): /root/.config/myappname since my app

Re: [Lazarus] Lazarus Release Candidate 3 of 1.8.0

2017-07-05 Thread Michael Van Canneyt via Lazarus
On Wed, 5 Jul 2017, Juha Manninen via Lazarus wrote: On Wed, Jul 5, 2017 at 12:49 AM, brian via Lazarus wrote: I think "annoying" is a bit of an understatement, myself. If the final release of 1.8 still shows the problem *for me*, then I'm certainly going to be staying with 1.6.4. It is no

Re: [Lazarus] Android & iOS

2017-07-03 Thread Michael Van Canneyt via Lazarus
On Tue, 4 Jul 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, Direct to the subject: Can I create Apps for Android and iOS using Lazarus nowadays? I've seen frameworks like Castle-Engine that have a Tool which claims to be more easy to building and packaging Apps: https://github.com/ca

Re: [Lazarus] Find/Replace inside IFDEF FPC else

2017-06-28 Thread Michael Van Canneyt via Lazarus
On Wed, 28 Jun 2017, Mattias Gaertner via Lazarus wrote: On Tue, 27 Jun 2017 22:46:55 -0500 Lars via Lazarus wrote: When I use the find/replace dialogs, and search for text, it does not search inside the else section of {IFDEF FPC}. I assume this is a feature. However some times I want to

[Lazarus] JSON SAX-based reader

2017-06-22 Thread Michael Van Canneyt via Lazarus
Hello, I have changed the JSON parser, it is now written on top of a SAX-like JSON reader (which is available separately). All unit tests work fine, and the few extra tests which I did also, but I would like to hear if someone has code that no longer works. The change is committed in trunk. The

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-14 Thread Michael Van Canneyt via Lazarus
On Wed, 14 Jun 2017, Mattias Gaertner via Lazarus wrote: On Wed, 14 Jun 2017 12:02:34 +0300 Alexey via Lazarus wrote: CudaText app, gtk2 WS. I run it from terminal, it loads dir to Treeview [only top level of /usr], i exit. Why do you think this is a bug in the LCL, and not in cudatext?

Re: [Lazarus] How to avoid DBGrid showing new blank record

2017-06-01 Thread Michael Van Canneyt via Lazarus
On Thu, 1 Jun 2017, frans via Lazarus wrote: Hi. I'm using Lazarus 1.6.4 and FPC 3.0.2, combined with a Firebird database. I've added all the fields of a table and use a datadictionary. I show the data in de DBGrid and use a seperate form to manipulate the data and to insert a new record. W

Re: [Lazarus] Lazarus The Complete Guide

2017-05-23 Thread Michael Van Canneyt via Lazarus
On Tue, 23 May 2017, Salvatore Coppola via Lazarus wrote: Hi to all the authors, is in program a new edition of the guide? Yes, but no date is set. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/li

Re: [Lazarus] Attn Michael, uses section

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:46:07 +0200 Joe via Lazarus wrote: [...] > Either move the Windows unit in front of the SysUtils unit, or use > SysUtils.GetEnvironmentVariable Yes, both solutions work; thank you, Martin and Mattias. Are they

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Luca Olivetti via Lazarus wrote: 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 c

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Kostas Michalopoulos via Lazarus wrote: I've noticed that the window shrinking bug in window maker with Gtk2 is still there, but i finally managed to figure it out and made a fix. I originally wrote the fix in 1.8RC1 so it should apply there, but the patch is against SVN.

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Michael Van Canneyt via Lazarus
On Tue, 16 May 2017, Ondrej Pokorny via Lazarus wrote: On 16.05.2017 20:44, Michael Van Canneyt via Lazarus wrote: Anything else I can do ? (except dumping linux mint, obviously...) Maybe this is an option for you until it gets properly fixed: you could build the IDE for Qt. (You can

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, zeljko wrote: On 08.05.2017 15:51, Michael Van Canneyt wrote: How can I investigate this ? Where can/should I put some writelns to see what is happening ? I don't mind helping out, but I need some pointers where to start. Gtk2WSForms.pp , line 168 see my comment about

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-10 Thread Michael Van Canneyt via Lazarus
On Wed, 10 May 2017, Michael Van Canneyt via Lazarus wrote: I have reported it as a bug. https://bugs.freepascal.org/view.php?id=31791 I attached 2 backtraces to the bug report. One when the warning happens (I put a breakpoint there) One when the AV happens. Hopefully this helps

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-10 Thread Michael Van Canneyt via Lazarus
On Wed, 10 May 2017, Mattias Gaertner via Lazarus wrote: On Wed, 10 May 2017 00:06:35 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] > I have tested here: > 64bit Linux Mint 18.1 Cinnamon, GTK2 version 2.24.30, Lazarus 1.9.0 > r54844 FPC 3.0.2 x86_64-linux-gtk2 Th

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-09 Thread Michael Van Canneyt via Lazarus
On Tue, 9 May 2017, Michael W. Vogel via Lazarus wrote: Am 09.05.2017 um 15:15 schrieb Michael Van Canneyt via Lazarus: Hi, I manage to reliably reproduce it ! 1 Open attached project. 2 Double click MainMenu1 to edit 3 Under MenuItem5, delete MenuItem14,13,12,11 (I use the - button in

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-09 Thread Michael Van Canneyt via Lazarus
- Open project - Select a popup menu (there are several) - Double click to edit - Select menu item 1 - Immediatly select menu item 2 Here, the crash happens when going to the object inspector. If you want, you can add a minimal example and explain every single step again, what you do, to

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Michael W. Vogel via Lazarus wrote: Am 08.05.2017 um 15:54 schrieb Michael Van Canneyt via Lazarus: OK. It seems clear to me that something is being freed which should not yet be freed: WARNING: TShadowItem.Destroy with LCLRefCount>0. Hint: Maybe the component

[Lazarus] intercepting keyboard events

2017-05-08 Thread Michael Van Canneyt via Lazarus
Hi, How can I respond to keyboard events in a TCustomControl (and hence TWinControl) descendent ? I have asigned the various OnKey* events handlers but they are not called. My control also does not seem to receive focus when clicked, I assume this is why it doesn't get keyboard events eithe

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Michael W. Vogel via Lazarus wrote: Am 08.05.2017 um 15:09 schrieb Michael Van Canneyt via Lazarus: I managed to produce a stacktrace. Hopefully this, combined with the stacktrace at the end is sufficient to solve the issue. Michael. (gdb) cont Continuing. WARNING

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, zeljko wrote: On 08.05.2017 12:08, Michael Van Canneyt via Lazarus wrote: On Mon, 8 May 2017, Fabio Luis Girardi via Lazarus wrote: Em 8 de mai de 2017 04:43, "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org> escreveu: On Mon, 8

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
y On Mon, 8 May 2017, Michael Van Canneyt via Lazarus wrote: On Mon, 8 May 2017, Juha Manninen via Lazarus wrote: Can you please create a proper backtrace with gdb using the latest Lazarus trunk. It shows also function names and parameter values etc. I was actually able to reproduce the

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Juha Manninen via Lazarus wrote: Can you please create a proper backtrace with gdb using the latest Lazarus trunk. It shows also function names and parameter values etc. I was actually able to reproduce the access violation once but not more however much I tried. The sta

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Fabio Luis Girardi via Lazarus wrote: Em 8 de mai de 2017 04:43, "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org> escreveu: On Mon, 8 May 2017, Kostas Michalopoulos via Lazarus wrote: Maybe it is also related to the problem i mentione

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Kostas Michalopoulos via Lazarus wrote: Maybe it is also related to the problem i mentioned a few days ago? It does sound kind of similar to what i demo in the video here: https://webmshare.com/q78rb It certainly looks like it. Michael. On Mon, May 8, 2017 at 12:45

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, zeljko wrote: If you suspect on HiDPI then you should disable scaling at application level (lazaruside) via Application.Scaled := False (or similar prop name) . In that case TCustomForm.Scaled should not be taken into account in any case. Is there a command-line option f

Re: [Lazarus] RTTI grid with multiple objects ?

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Mattias Gaertner via Lazarus wrote: On Sun, 7 May 2017 15:15:29 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: Hello, How to make the RTTI property grid display the properties of a set of TComponents ? Currently I have: (MyGrid is the property grid) Var I

[Lazarus] RTTI grid with multiple objects ?

2017-05-07 Thread Michael Van Canneyt via Lazarus
Hello, How to make the RTTI property grid display the properties of a set of TComponents ? Currently I have: (MyGrid is the property grid) Var I : integer; L : TPersistentSelectionList; begin C:=0; L:=MyGrid.Selection; L.BeginUpdate; try L.Clear; if Not Assigned(ObjectList)

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, zeljko wrote: On 05/07/2017 12:02 PM, Michael Van Canneyt via Lazarus wrote: Hi, Another oddity in the IDE designer. I have a form which contains some group boxes, radio buttons and a buttonpanel. Bordertstyle is bsDialog. No special properties regarding autosize or

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Michael Van Canneyt wrote: On Sun, 7 May 2017, Mattias Gaertner via Lazarus wrote: On Sat, 6 May 2017 21:26:38 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] I have not exactly been able to reproduce reliably, but the following just triggered it

Re: [Lazarus] TSQLQuery Scroll events

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, kapibara via Lazarus wrote: I made a test app to unerstand more about TSQLQuery events. It requires SQLite and has one table with three records. 1) Why does the dataset scroll 6 times to open a query that has a resultset with three records? 2) Also, directly after open

Re: [Lazarus] Annoying lazarus mailing list behaviour

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Sven Barth via Lazarus wrote: Am 07.05.2017 12:11 schrieb "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org>: Hi, Can we please get rid of the Cc: being added to the mails sent through the lazarus mailing list ? In most cases, when

[Lazarus] Annoying lazarus mailing list behaviour

2017-05-07 Thread Michael Van Canneyt via Lazarus
Hi, Can we please get rid of the Cc: being added to the mails sent through the lazarus mailing list ? In most cases, when I reply, I get 2 recipients. I always must delete 1. When the original mail comes from Mattias Gaertner, I *invariably* get 3 reply addresses: to : Mattias Gaertner via

Re: [Lazarus] Annoying lazarus mailing list behaviour

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Sven Barth via Lazarus wrote: Am 07.05.2017 12:11 schrieb "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org>: Hi, Can we please get rid of the Cc: being added to the mails sent through the lazarus mailing list ? In most cases, when

Re: [Lazarus] Menu editor unstable?

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Mattias Gaertner via Lazarus wrote: On Sat, 6 May 2017 21:26:38 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] I have not exactly been able to reproduce reliably, but the following just triggered it: - Start IDE - Open project - Select a popup menu (there

Re: [Lazarus] Installation issue - unit not found

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Gabriella Lynns via Lazarus wrote: I have been trying to install Lazarus for two unprivileged users, each in a subdirectory of their own $HOME  I've been using a script originally from getlazarus.org   The first installation went smoothly. The second, using exactly the sam

[Lazarus] Menu editor unstable?

2017-05-06 Thread Michael Van Canneyt via Lazarus
Hi, The menu editor of lazarus trunk seems highly unstable. I've had 10+ crashes of lazarus in the last 2 hours, all due to the menu editor. The crash means that I get an access violation and I must actually kill lazarus, because once I click away the access violation dialog, the lazarus wind

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Mattias Gaertner via Lazarus wrote: On Fri, 5 May 2017 12:52:48 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] I propose to let the compiler observe the BOM. But I don't think more is needed. FPC observes the BOM. Same as Delphi. Then what is stil

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Juha Manninen via Lazarus wrote: On Fri, May 5, 2017 at 9:43 AM, Michael Van Canneyt via Lazarus wrote: What tricks do you still need in 3.0.x ? The annoying tricky part with our UTF-8 solution is the assignment of Unicode string literals. With UTF-8 BOM it does not

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: On 05.05.2017 11:23, Michael Van Canneyt via Lazarus wrote: Yes, this somewhat alleviates the problem; but this still is a single-byte TStrings, as opposed to the WideString TStrings of Delphi. It's also still a single-byte fil

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: On 05.05.2017 11:17, Michael Van Canneyt via Lazarus wrote: On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 10:17, Michael Van Canneyt via Lazarus wrote: Something like: sl.LoadFromFile('some_utf8_file.txt', CP_UTF8); sl.LoadFromFile('some_utf16_file.txt', CP_UTF16); sl.LoadFromFile('some_la

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: On 05.05.2017 11:06, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with excepti

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with exception of TStrings and TFileStream. Again, I didn't ha

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-04 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Mattias Gaertner via Lazarus wrote: I simply can't see myself moving past FPC 2.6.4 at this point. FPC 3.x just doesn't make any sense. AFAIK you are using UTF-8 in AnsiString in FPC 2.6.4. That works in many cases, because of double fooling the compiler. This trick does

Re: [Lazarus] Startup environment: to Gui, or not to GUI?

2017-05-04 Thread Michael Van Canneyt via Lazarus
On Thu, 4 May 2017, Mark Morgan Lloyd via Lazarus wrote: On 11/04/17 09:30, Mark Morgan Lloyd via Lazarus wrote: Apologies if this is an FAQ. Is there an orthodox way that a Lazarus program can very early on look at how it's been started and decide whether it can usefully fall back to a text

Re: [Lazarus] Lazarus Bug: No exception raised when attempting to access an array outside of range.

2017-05-01 Thread Michael Van Canneyt via Lazarus
On Mon, 1 May 2017, Graham Ward via Lazarus wrote: Hi, Apologies if this email has been sent to the wrong location (I'm a brand new user to the Lazarus emailing list). Note I even tried the following line, which is obviously wrong (as the array has a maximum index of 71) ColIndex[175

Re: [Lazarus] Quick Video: A Web Applicationx

2017-04-30 Thread Michael Van Canneyt via Lazarus
On Sun, 30 Apr 2017, Marcos Douglas B. Santos via Lazarus wrote: On Thu, Apr 20, 2017 at 6:03 AM, Michael Van Canneyt via Lazarus < lazarus@lists.lazarus-ide.org> wrote: On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: El 19/04/2017 a las 17:09, Anthony Walter via Lazarus es

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: On Sun, 23 Apr 2017 11:13:43 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] I like your use of "soon" :-) Given that the dialog has not changed substantially in many years, I think we can safely remove the list

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: On Sun, 23 Apr 2017 10:49:02 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] *If* something needs to be removed, I would remove the listbox. It only takes up a lot of space, and it's mostly empty. The idea was t

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: With Michael explanation it looks like the best solution. Sorry for my misunderstanding. ? No need to apologize. All is clear in the end, that's what matters :) Michael. -- ___ Lazarus ma

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: If I have understand correctly, it is better to have only one list. I prefer the left Listbox. Ah... Why is it better ? I quite like the fact that there are 2 possibilities ? Seems very much like a matter of taste to me. Michael. --

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: On 23 Apr 2017 10:30, "Graeme Geldenhuys Simply remove the listbox and then place error state icons in the tabs where applicable. So you will still get an overview of what settings are wrong. -1 IMHO left ListBox is better because er

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Alexey via Lazarus wrote: This dialog has one tabset -from PageControl, and another - from left Listbox/Listview. Confusing. Better leave one Listbox. Picture. Can you explain in more detail what is wrong with the dialog ? I look at this picture, and I see absolutely

Re: [Lazarus] Quick Video: A Web Application

2017-04-20 Thread Michael Van Canneyt via Lazarus
On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: Thank you all for the feedback and discussion. From me, the implementer and designer, I can say the most difficult part of creating this project, and in most projects, is not th

[Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility

2017-04-20 Thread Michael Van Canneyt via Lazarus
Hi, FPC/Lazarus really are amazing tools. And, more importantly, STABLE and backwards compatible. This latter may seem self-evident; but it is not. Let me illustrate why it is not: For work, we develop apps (android, iOS) for mobile. We do this using a HTML5 browser-based approach, creating

Re: [Lazarus] Quick Video: A Web Application

2017-04-19 Thread Michael Van Canneyt via Lazarus
On Wed, 19 Apr 2017, Anthony Walter via Lazarus wrote: This isn't a free pascal or lazarus project, but something I wrote using typescript quite a while ago. http://cache.getlazarus.org/videos/cloud-files.mp4 Soon, you'll be able to write this app in Free Pascal. Michael. -- __

Re: [Lazarus] Lazarus for Chromebook (Chrome OS)?

2017-04-13 Thread Michael Van Canneyt via Lazarus
On Thu, 13 Apr 2017, Bob B. via Lazarus wrote: Millions of Chromebooks are sold quarterly, and that will increase because schools in USA are now providing them to students.  Also Chrome OS now runs Android apps (if the processor is capable).  Any chance of Laz for Chrome OS? Just thought I w

Re: [Lazarus] Importing PDF files into tImage

2017-04-08 Thread Michael Van Canneyt via Lazarus
On Sat, 8 Apr 2017, Larry Dalton via Lazarus wrote: Is there a way to import scanned PDF files into an image and then edit it? The import can probably be done by jfPDF by José Mejuto About the editing; that will highly depend on your needs. Michael.-- ___

Re: [Lazarus] Managing Packages with many versions

2017-03-31 Thread Michael Van Canneyt via Lazarus
On Fri, 31 Mar 2017, Marcos Douglas B. Santos via Lazarus wrote: On Fri, Mar 31, 2017 at 11:54 AM, Michael Van Canneyt via Lazarus < lazarus@lists.lazarus-ide.org> wrote: Put the various versions in different directories. The IDE will use the correct one based on the dependencies a

Re: [Lazarus] Managing Packages with many versions

2017-03-31 Thread Michael Van Canneyt via Lazarus
On Fri, 31 Mar 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, I would like to know how I can manager my 3rd packages with different version. For example, imagine that: You have got a package called SmartFoo.lpk version 1.0. You are using the master/trunk version. Whe you compile it yo

Re: [Lazarus] Change in source editor behaviour ?

2017-03-30 Thread Michael Van Canneyt via Lazarus
27;, which is configured using the same keys as Lazarus...) I seem to have activated this inadvertently after the update ? Strange. Once more, sorry about the noise. Always happens. After you send a mail, you stumble on the solution of the problem... Michael. On Thu, 30 Mar 2017, Michael

[Lazarus] Change in source editor behaviour ?

2017-03-30 Thread Michael Van Canneyt via Lazarus
Hello, I just updated my Lazarus - after quite some time (I was at 52983) to the latest SVN version (54501). It seems the editor behaviour regarding selection has changed. In a *major* annoying way, I might add. Before the update, if I stood at the start of a line, and did shift-down, the fi

Re: [Lazarus] Zeos SQLite Linux

2017-03-27 Thread Michael Van Canneyt via Lazarus
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 trying this I found it includes the line sLibraryLocation := sAppPath +

Re: [Lazarus] Lazarus and Windows 10 IoT

2017-03-22 Thread Michael Van Canneyt via Lazarus
On Wed, 22 Mar 2017, LacaK via Lazarus wrote: Hi, I am sure taht this question was already asked, but I can not find clear answer. Is there possibility to create Lazarus application with GUI which will run on Raspberi Pi - ARM - Windows 10 IoT ? (Target OS=Win32, Target CPU=Arm ?) If no

Re: [Lazarus] sqoKeepOpenOnCommit

2017-03-20 Thread Michael Van Canneyt via Lazarus
On Mon, 20 Mar 2017, kapibara via Lazarus wrote: I started using TSQLQuery's new property sqoKeepOpenOnCommit instead of CommitRetaining. When the app is closing there is now this error: Quote Operation cannot be performed on an active dataset Happens only if sqoKeepOpenOnCommit is true.

[Lazarus] Support for lldb ?

2017-03-18 Thread Michael Van Canneyt via Lazarus
Hi, After 2 days of struggle trying to get gdb to work on mac os sierra, I've given up. Apple clearly wants you to use lldb. Is support for lldb for Lazarus planned ? Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.laz

Re: [Lazarus] type lib import

2017-03-04 Thread Michael Van Canneyt via Lazarus
On Sat, 4 Mar 2017, Marc Santhoff via Lazarus wrote: Hi, is fpc/lazarus able to import type libraries for COM dll on windows? If there is an IDL, yes it can. There is a tool for it in the FPC packages. Michael. -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Animation library

2017-02-27 Thread Michael Van Canneyt via Lazarus
On Mon, 27 Feb 2017, José Mejuto via Lazarus wrote: 2) I have a 4 core system with hyper threading (ie: 4 cores and 4 virtual cores). Your sample application maxed out all 8 cores at 100% CPU load. Not really acceptable behaviour for a desktop application I would think. ;-) The libr

Re: [Lazarus] Animation library

2017-02-27 Thread Michael Van Canneyt via Lazarus
On Mon, 27 Feb 2017, José Mejuto via Lazarus wrote: Hello, In the last days I was working in something like an animation library that allows me to perform flashing messages, collapsable panels, and other simple animation effects. The pre-requisites are no threading involved, it must be ab

Re: [Lazarus] LCL High-DPI

2017-02-22 Thread Michael Van Canneyt via Lazarus
On Mon, 20 Feb 2017, Ondrej Pokorny via Lazarus wrote: I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL. It's quite easy for the programmer. Documented here: http://wiki.lazarus.freepascal.org/High_DPI (details are in "High DPI in Lazarus 1.7 and above").

Re: [Lazarus] IDE message-window - noise

2017-02-17 Thread Michael Van Canneyt via Lazarus
On Fri, 17 Feb 2017, Alexey via Lazarus wrote: On 17.02.2017 19:50, Ondrej Pokorny via Lazarus wrote: IDE Options -> Messages Window -> Focus messages at compilation I know- it DONT work: i have it unchecked on 2 PCs. already. and still foreground Msg wnd. I have the same environment,

Re: [Lazarus] Disabling selected text boxes

2017-02-12 Thread Michael Van Canneyt via Lazarus
On Sun, 12 Feb 2017, Tom Lisjac via Lazarus wrote: I would appreciate if someone could tell me how to disable the source editor from drawing boxes around selected text matches in 1.6.2? No idea what to google for as I don't have any idea what this option is called. The options for this behav

Re: [Lazarus] Run parameters

2017-02-11 Thread Michael Van Canneyt via Lazarus
On Sat, 11 Feb 2017, Kostas Michalopoulos wrote: I think having a list for run modes (i assume you mean the settings you specify in the Run -> Run Parameters dialog box) that you can select from a popup menu near the "play" button and have different run modes apply, like you can select the bui

Re: [Lazarus] Run parameters

2017-02-11 Thread Michael Van Canneyt via Lazarus
On Sat, 11 Feb 2017, Mattias Gaertner via Lazarus wrote: On Sat, 11 Feb 2017 11:22:23 +0100 (CET) Michael Van Canneyt via Lazarus wrote: Hello, Currently, the options specified in 'Run - Parameters' are stored in the project.lpi file. I have always found this a strange choic

[Lazarus] Run parameters

2017-02-11 Thread Michael Van Canneyt via Lazarus
Hello, Currently, the options specified in 'Run - Parameters' are stored in the project.lpi file. I have always found this a strange choice. What is the rationale for this decision ? Logically, I would I think these parameters belong in the .lps file ? For example: a program that takes a filen

Re: [Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Michael Van Canneyt via Lazarus
On Mon, 30 Jan 2017, Graeme Geldenhuys via Lazarus wrote: Hi, I've using the Eclipse IDE for a while now, and the developer is really spoilt with intelligent code/class completion. I'm wondering if Lazarus IDE could benefit of some of those features too. For example - improved (more intellig

Re: [Lazarus] TIniPropStorage on Datamodule doesn't read and write ini file

2017-01-29 Thread Michael Van Canneyt via Lazarus
On Sat, 28 Jan 2017, frans via Lazarus wrote: Hi. I'm using Lazarus 1.6.2 with FPC 3.0.0. I use TIniPropStorage on a Form module and reading the value from and writing the value to the ini file works fine. Now I've tried to place the TIniPropStorage component on a Datamodule. The component

Re: [Lazarus] Changes to fpWeb...

2017-01-17 Thread Michael Van Canneyt via Lazarus
On Tue, 17 Jan 2017, Michael Schnell via Lazarus wrote: On 16.01.2017 20:19, Daniel Gaspary wrote: Can you give examples of these messages? And who (nginx, apache..?) and how they are implemented? In fact I can't, either, that is why I ask. I do know that there are several frameworks tha

Re: [Lazarus] Changes to fpWeb...

2017-01-14 Thread Michael Van Canneyt via Lazarus
On Sat, 14 Jan 2017, Marcos Douglas B. Santos via Lazarus wrote: On Fri, Jan 13, 2017 at 8:36 PM, Michael Van Canneyt via Lazarus wrote: Hello, I have committed a serious change to the way fpweb handles requests. Especially routing of requests was changed. [...] For me, this is great

[Lazarus] Changes to fpWeb...

2017-01-13 Thread Michael Van Canneyt via Lazarus
Hello, I have committed a serious change to the way fpweb handles requests. Especially routing of requests was changed. The old Delphi style routing worked with Datamodules only. The pattern was strictly /modulename/actionname or through query variables: ?module=xyz&Action=nmo This old routi

Re: [Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Michael Van Canneyt via Lazarus
On Thu, 12 Jan 2017, Mattias Gaertner via Lazarus wrote: On Thu, 12 Jan 2017 14:44:05 + Graeme Geldenhuys via Lazarus wrote: Hi, If I clean out the "packagefile.xml" file (aka the package registry) and manually remove all obsolete package entries. if the remaining tags are not seq

Re: [Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Michael Van Canneyt via Lazarus
On Thu, 12 Jan 2017, Graeme Geldenhuys via Lazarus wrote: Hi, If I clean out the "packagefile.xml" file (aka the package registry) and manually remove all obsolete package entries. if the remaining tags are not sequential, would that be an issue for Lazarus or lazbuild? I think that wo

Re: [Lazarus] Why is SAX so slow?

2016-12-26 Thread Michael Van Canneyt via Lazarus
On Sun, 25 Dec 2016, Lars via Lazarus wrote: On Sun, December 25, 2016 4:47 am, Werner Pamler via Lazarus wrote: Motivated by a user comment on excessive memory consumption of fpspreadsheet Sorry to not answer your question, but, fpspreadsheet looks very intereresting and first time I real

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Michael Van Canneyt via Lazarus
On Fri, 9 Dec 2016, Ondrej Pokorny via Lazarus wrote: On 09.12.2016 16:59, Graeme Geldenhuys via Lazarus wrote: Can you tell us which font you are using, and maybe also what text you were trying to write to the PDF? Yes, that information would be very useful. If you can even supply the TTF

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Michael Van Canneyt via Lazarus
On Fri, 9 Dec 2016, Ondrej Pokorny via Lazarus wrote: On 09.12.2016 15:28, Michael Van Canneyt via Lazarus wrote: I forgot (again) to commit a file, fixed. Sorry. No problem. Now it compiles, thanks! I have a runtime exception, though (the relevant line is in #5): #0 fpc_raiseexception

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Michael Van Canneyt via Lazarus
On Fri, 9 Dec 2016, Ondrej Pokorny via Lazarus wrote: On 09.12.2016 14:19, Michael Van Canneyt via Lazarus wrote: I've pushed an update to SVN for fcl-pdf. The code can now do a partial embedding of a TTF font: just the characters used in the PDF will be embedded. This results in a

<    4   5   6   7   8   9   10   >