Re: [Lazarus] Loading old project into Lazarus_fixes causes lock-up...

2010-11-30 Thread Bo Berglund
On Tue, 30 Nov 2010 07:38:40 +0100, Bo Berglund bo.bergl...@gmail.com wrote: On Tue, 30 Nov 2010 09:20:29 +0700, Paul Ishenin i...@kmiac.ru wrote: The error means that spdoserial is using LCL but does not has it as a requirement in the package options. Please set LCL as a required package for

[Lazarus] Syntax checking from Lazarus

2010-11-30 Thread Bo Berglund
In Delphi I use the Syntax check function a lot to verify that my project does not contain any illegal constructs or missing begin-end terminators etc. In Lazarus the only comparable such command I have found is Quick Compile, but this is not really what I am after because: 1) It saves my edited

Re: [Lazarus] Loading old project into Lazarus_fixes causes lock-up...

2010-11-30 Thread Paul Ishenin
30.11.2010 13:38, Bo Berglund wrote: If so, why did it work when I used FPC 2.2.4 but not with 2.4.2? Any dependency should not change just because I change compiler version, right? I thought you've changed lazarus version too? Notice that this is just a standard package that I downloaded in

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Luca Olivetti
En/na Joost van der Sluis ha escrit: This can be done perfectly with sqldb. But which are the cases which are difficult? When you have a visual database component (e.g. a dbgrid) that needs the connection opened all the time (otherwise it wouldn't show any data) and locks the database for

Re: [Lazarus] WebData - Formatting ExtJSon fields

2010-11-30 Thread michael . vancanneyt
On Mon, 29 Nov 2010, Leonardo M. Ramé wrote: Hi, I'm using WebData and I need to format some numbers as Currency before sending back from my app to the browser. How can I do that? JSON doesn't know a currency type ? You want to do it as string ? There is an AfterRowToJSON event; You can

Re: [Lazarus] Syntax checking from Lazarus

2010-11-30 Thread Sven Barth
Am 30.11.2010 09:12, schrieb Bo Berglund: In Delphi I use the Syntax check function a lot to verify that my project does not contain any illegal constructs or missing begin-end terminators etc. In Lazarus the only comparable such command I have found is Quick Compile, but this is not really

Re: [Lazarus] Syntax checking from Lazarus

2010-11-30 Thread Mattias Gaertner
On Tue, 30 Nov 2010 09:56:55 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 30.11.2010 09:12, schrieb Bo Berglund: In Delphi I use the Syntax check function a lot to verify that my project does not contain any illegal constructs or missing begin-end terminators etc. In Lazarus

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Joost van der Sluis
On Tue, 2010-11-30 at 09:16 +0100, Luca Olivetti wrote: En/na Joost van der Sluis ha escrit: This can be done perfectly with sqldb. But which are the cases which are difficult? When you have a visual database component (e.g. a dbgrid) that needs the connection opened all the time

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Joost van der Sluis
On Mon, 2010-11-29 at 17:57 +0100, michael.vancann...@wisa.be wrote: On Mon, 29 Nov 2010, Joost van der Sluis wrote: On Wed, 2010-11-24 at 20:57 +0100, Michael Van Canneyt wrote: On Wed, 24 Nov 2010, Alexsander Rosa wrote: But it is transparent to the libpq programmer; why it's not

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Joost van der Sluis
On Tue, 2010-11-30 at 07:29 +, Mark Morgan Lloyd wrote: Joost van der Sluis wrote: PostgreSQL gets locked, I mean, the tables being used by sqldb can't be modified (new columns, new constraints, etc) while the sqldb connection is active, even if it's a read-only SELECT. If someone is

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread michael . vancanneyt
On Tue, 30 Nov 2010, Joost van der Sluis wrote: On Mon, 2010-11-29 at 17:57 +0100, michael.vancann...@wisa.be wrote: On Mon, 29 Nov 2010, Joost van der Sluis wrote: On Wed, 2010-11-24 at 20:57 +0100, Michael Van Canneyt wrote: On Wed, 24 Nov 2010, Alexsander Rosa wrote: But it is

Re: [Lazarus] WebData - Formatting ExtJSon fields

2010-11-30 Thread Leonardo M . Ramé
On 2010-11-30 09:32:24 +0100, michael.vancann...@wisa.be wrote: On Mon, 29 Nov 2010, Leonardo M. Ramé wrote: Hi, I'm using WebData and I need to format some numbers as Currency before sending back from my app to the browser. How can I do that? JSON doesn't know a currency type ? You

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Joost van der Sluis
On Tue, 2010-11-30 at 11:54 +0100, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Joost van der Sluis wrote: On Mon, 2010-11-29 at 17:57 +0100, michael.vancann...@wisa.be wrote: Procedure TSQLConnection.CreateDefaultTransaction; If coAutoTransaction is set, and TSQLQuery does

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread zeljko
I think we should not change a thing, until the problem is clear. Maybe we can come up with some 'general' transaction-isolation levels. The reason they are not implemented in a general way is that each DB has it's own locking-style. Here is nice explanation of isolation levels, general

Re: [Lazarus] New unit with resource with some components on it by default

2010-11-30 Thread Joost van der Sluis
On Mon, 2010-11-29 at 10:34 +0100, Mattias Gaertner wrote: On Mon, 29 Nov 2010 10:21:07 +0100 Joost van der Sluis jo...@cnoc.nl wrote: Hi all, Is it possible to add a 'new module' option to the ide which has by default some components on it? With a

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread Mark Morgan Lloyd
Joost van der Sluis wrote: If I could ask: where can I find a description of how TSQLQuery etc. should be used for non-trivial applications? For example, if I want to set up an explicit transaction, insert a few hundred rows of data, and then make an explicit decision on whether I commit or

Re: [Lazarus] New unit with resource with some components on it by default

2010-11-30 Thread Mattias Gaertner
On Tue, 30 Nov 2010 13:15:19 +0100 Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2010-11-29 at 10:34 +0100, Mattias Gaertner wrote: On Mon, 29 Nov 2010 10:21:07 +0100 Joost van der Sluis jo...@cnoc.nl wrote: Hi all, Is it possible to add a 'new module' option to the ide which

Re: [Lazarus] Loading old project into Lazarus_fixes causes lock-up...

2010-11-30 Thread Mattias Gaertner
On Mon, 29 Nov 2010 23:16:24 +0100 Bo Berglund bo.bergl...@gmail.com wrote: On Mon, 29 Nov 2010 00:01:59 +0100, Bo Berglund bo.bergl...@gmail.com wrote: Retrieved the trunk version into folder lazarus_trunk (I renamed after SVN was done, is it possible to redirect the SVN checkout into a

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread Marcos Douglas
On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 24 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 3:09 PM, Michael Van Canneyt mich...@freepascal.org wrote: Currently we're deploying a webapp that uses fpweb, FastCGI and runs as a

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread michael . vancanneyt
On Tue, 30 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 24 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 3:09 PM, Michael Van Canneyt mich...@freepascal.org wrote: Currently we're deploying a webapp

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread Marcos Douglas
On Tue, Nov 30, 2010 at 10:23 AM, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 24 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 3:09 PM, Michael Van

[Lazarus] Lazarus add-in for fpmake

2010-11-30 Thread Joost van der Sluis
Hi all, I've implemented something new for fpmake. It now supports 'add-inns'. This are regular packages, but they can be used to compile fpmake's. So you can extend the possibilities in fpmake files. For example there is now the 'lazmkunit' package. With this package installed it's easy to add

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread michael . vancanneyt
On Tue, 30 Nov 2010, Marcos Douglas wrote: On Tue, Nov 30, 2010 at 10:23 AM, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 24 Nov 2010, Marcos Douglas wrote: On

Re: [Lazarus] Lazarus add-in for fpmake

2010-11-30 Thread michael . vancanneyt
Great news ! Wonderful work, Joost :-) Michael. On Tue, 30 Nov 2010, Joost van der Sluis wrote: Hi all, I've implemented something new for fpmake. It now supports 'add-inns'. This are regular packages, but they can be used to compile fpmake's. So you can extend the possibilities in fpmake

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread Marcos Douglas
On Tue, Nov 30, 2010 at 10:52 AM, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Tue, Nov 30, 2010 at 10:23 AM,  michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt

Re: [Lazarus] New unit with resource with some components on it by default

2010-11-30 Thread Joost van der Sluis
On Tue, 2010-11-30 at 13:29 +0100, Mattias Gaertner wrote: On Tue, 30 Nov 2010 13:15:19 +0100 Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2010-11-29 at 10:34 +0100, Mattias Gaertner wrote: On Mon, 29 Nov 2010 10:21:07 +0100 Joost van der Sluis jo...@cnoc.nl wrote: Hi all,

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread Michael Schnell
On 11/30/2010 01:29 PM, Felipe Monteiro de Carvalho wrote: I'd rather stop programming then using .net :) I'd rather use a Delphi-CIL compiler than Java :) Anyway, porting would be as much work as rewriting the application. I suppose not really, but maybe nearly :) Just porting from

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread Marcos Douglas
On Tue, Nov 30, 2010 at 11:02 AM, Marcos Douglas m...@delfire.net wrote: On Tue, Nov 30, 2010 at 10:52 AM,  michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Tue, Nov 30, 2010 at 10:23 AM,  michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas

Re: [Lazarus] GUI development for web UI

2010-11-30 Thread michael . vancanneyt
On Tue, 30 Nov 2010, Marcos Douglas wrote: This is very convenient, because you can start the fastcgi process in the debugger, just as any normal process. Or, the fastCGI process can be a windows service. Very interesting. I didn't know about it. Other than that, the configuration option

[Lazarus] changing some FPC units

2010-11-30 Thread Alberto Manganaro
Hi, I'm trying to make modification in some units that are part of the FPC (the .o and .ppu are in the units folder). I took the source code, made my modification, rebuilt the .o and .ppu with the make command, and put the new files in the utils folder. Now I'm trying to recall these units

Re: [Lazarus] changing some FPC units

2010-11-30 Thread Joost van der Sluis
On Tue, 2010-11-30 at 17:14 +0100, Alberto Manganaro wrote: Hi, I'm trying to make modification in some units that are part of the FPC (the .o and .ppu are in the units folder). I took the source code, made my modification, rebuilt the .o and .ppu with the make command, and put the new

[Lazarus] How to use environment variables in lazarus IDE config?

2010-11-30 Thread Bo Berglund
I would like to specify things like the base location of files using environment variables rather than entering full paths. In Delphi this can be done by using the $(varname) construct, but this is apparently not supported by Lazarus. I googled my way through and found a reference to using

Re: [Lazarus] Locking down a string grid

2010-11-30 Thread Jesus Reyes
--- El mar 30-nov-10, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk escribió: Is it possible to disable the selected-cell marker, i.e. to make the grid completely passive? if you write an OnSelectCell event handler for the grid which do: procedure TForm1.gridSelectCell(Sender:

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-11-30 Thread Mattias Gaertner
On Tue, 30 Nov 2010 17:48:47 +0100 Bo Berglund bo.bergl...@gmail.com wrote: I would like to specify things like the base location of files using environment variables rather than entering full paths. In Delphi this can be done by using the $(varname) construct, but this is apparently not

Re: [Lazarus] Form position and size not preserved

2010-11-30 Thread Darius Blaszyk
On Tue, 2010-11-30 at 00:11 +0100, José Mejuto wrote: Hello Lazarus-List, Monday, November 29, 2010, 10:08:06 PM, you wrote: DB Since some time the UI position and size of the forms of Lazarus are not DB preserved anymore. If I for instance organize them in a certain way and DB then press