Re: [Lazarus] EpikTimer v1.0.1 released
On 26/05/14 21:44, Graeme Geldenhuys wrote: On 26/05/14 16:34, Mattias Gaertner wrote: You don't have to edit all lpk files. In fact you don't need to touch a single lpk file at all. Oh... last I remember one had to modify each package to support multiple build modes from Lazarus IDE. That defeated the point for me. I must admit, I haven't gotten a Lazarus update since end of last year. So it seems things in that front has improved. In Lazarus, you can even set the project's build mode/overrides such that packages gets different output directories depending on the build mode, target cpu, target os, etc... This prevents unnecessary recompilation of packages (in theory) when changing build modes. You can even setup the default compiler options to include your common cross-compilation build modes so that each new project is cross-compiler ready. Switching build modes is 2 mouse clicks away. I have even made an IDE add-on package that allows you to switch fpc versions on the fly from within the IDE. However I could not make a dedicated switching button as IDEIntf does not expose the IDE toolbar. Stephano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] EpikTimer v1.0.1 released
On 27/05/2014 07:14, Graeme Geldenhuys wrote: On 27/05/14 01:33, Mattias Gaertner wrote: Umm, guess I've just been lucky using well maintained frameworks versions. ;-) If something like that happens, I would normally delve into the code and fix it - if the original author hasn't yet. I'm not afraid to look at other peoples code (but I know very well, that not everybody is like me). Until you hit a compiler bug that surfaces with e.g. -O2 or -O3. Those happen, too. Then again, you're probably not afraid to delve into the compiler code, I suppose SCNR :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazreport master-detail on one line
op 26-05-14 13:47, Reinier Olislagers schreef: (Note: haven't ever set up master/detail reporting in Lazreport, so just some ideas below) At least in other reporting solutions, master details means having some master band, then a detail band below it. This gives the following setup: Master1 record ...detail1:record1 ...detail1:record2 ... ...detail1.recordn Master2 record ...detail2:record1 ... ...detail2:recordn1 In other words, it supports single row reports only. No idea if this applies to lazreport. This works fine in Lazreport, but it's not what I want. I want all data, including details, of the master-record on one line. In other reporting solutions, if you want to have master+detail info next to each other, you can use a query in the database that provides the info in the desired layout. This is often known as s acrosstab query, searching gives e.g. Postgresql http://stackoverflow.com/questions/3002499/postgresql-crosstab-query Or http://www.paragoncorporation.com/ArticleDetail.aspx?ArticleID=25 Obviously no idea if this applies to lazreport as well. This should work in Lazreport, but that's just a case of a masterband. The point is then : what's the cross-data band used for ? How does it work ? Anyway, thanks for your input. B.T.W. I'm using Firebird as a database. Koenraad. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SynEdit1.SearchReplace(
On 5/27/14, CML Christian Hartnick c...@postkammer.de wrote: Thanx Bart. I've registered to bug tracker, but the confirmation mail reached me while sleeping ;-) I hope it didn't wake you up ;-) Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Open file dialog speed
Hi guys, Is there anything I can do to speed up the TOpenDialog window in windows? It takes more than 2 seconds in my application in Lazarus, a lot more than in any application I run on the same computer (Windows7, 32 bit) Regards, Chris-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] EpikTimer v1.0.1 released
On 27/05/14 08:00, Reinier Olislagers wrote: Until you hit a compiler bug that surfaces with e.g. -O2 or -O3. I don't ever use -O3 Those happen, too. Then again, you're probably not afraid to delve into the compiler code, I suppose SCNR :) Been there, done that. But Compiler code isn't my cup of tea, sorry. :) Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] EpikTimer v1.0.1 released
On 27/05/14 07:02, patspiper wrote: In Lazarus, you can even set the project's build mode/overrides such ...snip... You can even setup the default compiler options to include your common ...snip... I have even made an IDE add-on package that allows you to switch fpc ...snip... All that is possible with Maximus and MSEide too. :) For your first option, I actually prefer to recompile all units when I change build modes etc. My system and FPC is fast enough that I don't even notice it compiling. It also ensure that I have my latest compiler options active in the compiled units. In Maximus and MSEide they are called template projects. MSEide can even export and import user selected options from and to projects. I still need to implement something like that in Maximus. For your last point, in Maximus (I haven't tried in MSEide but probably works too), you simply use one of the macro variables you have setup. Different build modes could then use different FPC versions - all with a single keyboard shortcut. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] how to set two memos for parallel text editing ?
Dear list, I want to edit two textfiles in a parallel way, so that visible portion of text one in memo1 has always same lines extent as the visible portion of text two in memo2, say lines n1 to n2. Of course WordWrap must be false, so that one_text_line=one_visible_line Then, how to manage that scrolling or arrowing up in one memo will also scroll up the other one ? Intercept event yes, but how to issue/code a scrolling order for memo that does not have focus ? Thanks for hints, Etienne. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Open file dialog speed
On 27/05/2014 18:15, Chris Crori wrote: Hi guys, Is there anything I can do to speed up the TOpenDialog window in windows? It takes more than 2 seconds in my application in Lazarus, a lot more than in any application I run on the same computer (Windows7, 32 bit) When your app runs in the IDE, or when you run your app outside the IDE? In the IDE it is slower, because GDB tracks every library that is loaded, and TOpenDialog can import many dll. If it is only in the IDE/Debugger, and bothers you a lot, then try this (autosolib): http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working It may improve it a little bit. It does not affect outside the IDE. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to set two memos for parallel text editing ?
On 28/05/2014 00:46, Etienne Leblois wrote: Dear list, I want to edit two textfiles in a parallel way, so that visible portion of text one in memo1 has always same lines extent as the visible portion of text two in memo2, say lines n1 to n2. Of course WordWrap must be false, so that one_text_line=one_visible_line Then, how to manage that scrolling or arrowing up in one memo will also scroll up the other one ? Intercept event yes, but how to issue/code a scrolling order for memo that does not have focus ? I dont know about TMemo. But with TSynEdit, you can use OnStatusChange -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to set two memos for parallel text editing ?
Sorry, that mail was sent a bit quicker than I intended. On 28/05/2014 01:37, Martin Frb wrote: On 28/05/2014 00:46, Etienne Leblois wrote: Dear list, I want to edit two textfiles in a parallel way, so that visible portion of text one in memo1 has always same lines extent as the visible portion of text two in memo2, say lines n1 to n2. Of course WordWrap must be false, so that one_text_line=one_visible_line Then, how to manage that scrolling or arrowing up in one memo will also scroll up the other one ? Intercept event yes, but how to issue/code a scrolling order for memo that does not have focus ? I dont know about TMemo. But with TSynEdit, you can use OnStatusChange I dont know about TMemo. But with TSynEdit, you can use OnStatusChange SynEdit2.TopLine := SynEdit1.TopLine; Also SynEdit2.CaretY := SynEdit1.CaretY; That is cool if you enable current line highlight, so the line with the caret has a special background color. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus