Re: [Lazarus] GUI development for web UI
On 11/25/2010 09:19 PM, ABorka wrote: . I always found the needed ExtJS extensions online, never needed to develop them myself (A custom GridView for example, a double click sorting functionality on the GridView header fields, etc.). This suggests that doing a n ExtJS Widget Type interface for Lazarus would be a viable thing to do, as all the outlandish Java Script code already is in place and ready to be used .). The Lazarus distribution would provide the Pascal code and mention download links to the Java Scripts. Of course it would be nice, if design-time surrogates for the appropriate controls would be provided, too (similar to how ExtPascal works) (plus server-to-client notification, TTimer and EventQueue ... GDR :-P ). -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Rev 28494 breaks building lazarus on non-windows (Martin?).
Hi, Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on Linux. GetTickCount is a windows-only call. Please fix this ASAP. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Rev 28494 breaks building lazarus on non-windows (Martin?).
On 26/11/2010 10:52, Michael Van Canneyt wrote: Hi, Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on Linux. GetTickCount is a windows-only call. Please fix this ASAP. Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Rev 28494 breaks building lazarus on non-windows (Martin?).
On Fri, Nov 26, 2010 at 12:00 PM, Martin laza...@mfriebe.de wrote: Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected) The usual solution is using EpikTimer -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Rev 28494 breaks building lazarus on non-windows (Martin?).
2010/11/26 Martin laza...@mfriebe.de: On 26/11/2010 10:52, Michael Van Canneyt wrote: Hi, Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on Linux. GetTickCount is a windows-only call. Please fix this ASAP. Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected) http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/gettickcount.html , but ion linux it uses now. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is a TSQLTransaction and why do I need one?
On Fri, 26 Nov 2010, Alexsander Rosa wrote: Don't get me wrong, I'm all for innovations in Free Pascal/Lazarus. However, in this particular case, I don't think the multiple transactions per connection approach, supported only by selected databases, is the best solution. IMHO it should be an option, not the only imposed way. Agreed. That's why I also want to provide the 'easy access' option. But by making it as it is, we made sure from the start that we support the maximum options. If we had started with the DBExpress approach, the additional options would have been very unnatural and probably rather complicated. I've tried to use sqldb but it adds too much unneeded overhead. Under PostgreSQL it actually locks the tables for DDL modifications by default, rendering the development machines ridden with IDLE in transaction connections while the apps are running, even for mere SELECT's. In these machines, it's normal to add columns and constraints to tables while people are coding and testing. To create a simple FK constraint I would need to kill all connections or ask to everybody stop working -- otherwise the CREATE CONSTRAINT will wait several seconds/minutes while the SELECT's are being made. If someone is programming an yearly report that takes one minute to run, everybody has to wait. That's why I moved to Zeos. Well, that's the easy way, which doesn't help us. (I understand the move, if you're in need of a quick solution, this is not a reproach.) In the long term, however, it is better to try and convince us to make the model more open to other databases. We will do so, but bugging us (or providing patches) is the best way of getting faster results. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TImage wrong image format
On 2010-11-26 15:29:42 +0100, Mattias Gaertner wrote: On Fri, 26 Nov 2010 11:23:01 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: On 2010-11-26 10:55:58 -0300, Leonardo M. Ramé wrote: On 2010-11-26 09:39:30 -0300, Leonardo M. Ramé wrote: Hi, I think I found a bug after following the next steps: 1) Place a TImage on a newly created form. 2) Click on ... on Object Inspector - Picture and load an image (I tested with jpeg, png, png all with the same results). 3) Go to the form, and you'll see the image. 4) Right click on the form and select View Source (.lfm), here you can see the object Image1 and its Picture.Data containing the image info. 5) Close the .lfm tab 6) Press F12 to see the form again and you'll get this error: Stream=TForm1:Root=:TForm1 Component Class: TImage Error reading Image1.Picture.Data: Wrong imagre format Stream position: 28777 I'm using: Free Pascal Compiler version 2.5.1 [2010/11/24] for x86_64 - Linux Lazarus 0.9.29 - Rev 28470 - x86_64-linux-gtk 2 -- Udated FPC Lazarus and the bug seems to be fixed. Thanks! Well, the Wrong image format error is fixed, but I found a new one. When a TImage is created at Design-Time, with an image assigned to its Picture property, the image is not shown at run-time. Example: 1) Place a TImage on a new form. 2) Object Inspector - Picture - Click on ... to load an image. 3) Load an image 4) You can see the image loaded on the TImage. 5) Run the app. The TImage doesn shows its picture. Lazarus 0.9.29 rev 28500 - Linux x86_64 FPC rev 16446 - Linux x86_64 Ubuntu 10.04 - 64bits It works here: Lazarus 0.9.29 rev 28500 - Linux x86_64 FPC 2.4.2 - Linux x86_64 Ubuntu 10.10 - 64bits Can you provide an example image where it does not work? Mattias There it is. -- Leonardo M. Ramé http://leonardorame.blogspot.com timage-error.tar.bz2 Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is a TSQLTransaction and why do I need one?
On Friday 26 November 2010 15:14, Alexsander Rosa wrote: With DBExpress or Zeos this problem does no occur. They use the so-called Zeos ? This is simply NOT true, at least with Zeos 6.6.5. If you chosen correct tiTransactionIsolation (eg. tiReadCommited) then pgsql connections automatically opens transactions (so you have idle in transaction) for nothing.I've already fixed that for myself, but that's a real problem. sqldb have another problem because it opens another connection for query (so with 100 connections you can have 200 connections because each client started one query), so must think about it when setting up postgresql.conf (client connections param). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell lazarus the location of a used package?
On Fri, 26 Nov 2010 16:01:45 +0100 Bo Berglund bo.bergl...@gmail.com wrote: On Thu, 25 Nov 2010 21:05:48 -0500, waldo kitty wkitt...@windstream.net wrote: On 11/25/2010 06:09, Bo Berglund wrote: Now, the description on how packages work in lazarus leads me to believe that any given package can only exist in one single copy and this location is not inside the project code space. Each package/project should have its own directories. This ensures that a package does not depend on a project, so it can work with many projects. Not if they evolve and we must maintain old code when we need to return to an older time... isn't this what a versioning system is supposed to be able to take care of?? simply check out the old version and do what you have to do? That is exactly what a verioning system is for... But it also means that EVERYTHING that is used to create a particular software release must be grabbed from the versioning system and used by the IDE. In principle one test is to check out, then do nothing else than build the application. Next do a binary file compare between the newly built version and the one created at the time of the tag. If they are not binary the same then something has changed in the environment... One such thing is for example IDE specific stuff that works its way into the compiled binary. An example is what I have been saying about Delphi components that are integrated into the IDE but have changed from the time of the old code generation to now. If these components are not also grabbed on the same tag as everything else then we have a difference... Same for FPC specific stuff, used third party libs and tools. In Delphi I solve this by not having global paths to the installed components, instead I add the path to each component that is actually used by the project to the project specific browse path list. And I use relative path specifiers. You can do the same in Lazarus. As written three times. All good things are three. So I give up here. [...] Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is a TSQLTransaction and why do I need one?
I'm using it from SVN too. 2010/11/26 zeljko zel...@holobit.net On Friday 26 November 2010 15:14, Alexsander Rosa wrote: With DBExpress or Zeos this problem does no occur. They use the so-called Zeos ? This is simply NOT true, at least with Zeos 6.6.5. If you chosen correct tiTransactionIsolation (eg. tiReadCommited) then pgsql connections automatically opens transactions (so you have idle in transaction) for nothing.I've already fixed that for myself, but that's a real problem. sqldb have another problem because it opens another connection for query (so with 100 connections you can have 200 connections because each client started one query), so must think about it when setting up postgresql.conf (client connections param). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Atenciosamente, Alexsander da Rosa Linux User #113925 Extremismo na defesa da liberdade não é defeito. Moderação na busca por justiça não é virtude. -- Barry Goldwater -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus