Re: [Lazarus] fpweb fcl-web

2012-02-24 Thread Felipe Monteiro de Carvalho
On Thu, Feb 23, 2012 at 6:53 PM, Reimar Grabowski reimg...@web.de wrote: Do I actually need fcl-web, not fpweb, or do I need both? Any Getting Started guides? Second question nicely dodged. ;) A tutorial teaching how to use Google to find this information:

Re: [Lazarus] fpweb fcl-web

2012-02-24 Thread Felipe Monteiro de Carvalho
On Fri, Feb 24, 2012 at 11:49 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: A tutorial teaching how to use Google to find this information: http://lmgtfy.com/?q=lazarus+wiki+fcl+webl=1 The first link goes here: http://wiki.lazarus.freepascal.org/fcl-web Ops, didn't

[Lazarus] RE : RE : RE : ActiveX control demo

2012-02-24 Thread Ludo Brands
Is there a tutorial somewhere saying what to do to import a COM Automation object with this new tool? Not yet. Importtl creates a pascal unit that declares all interface exported by a COM typelib (dll, exe, tlb or olb). The resulting unit is like a library binding but consists of

Re: [Lazarus] fpweb fcl-web

2012-02-24 Thread Graeme Geldenhuys
On 24 February 2012 12:54, Felipe Monteiro de Carvalho wrote: There are probably some articles on the subject that Michael can send you. Doesn't the Lazarus book also cover this topic? -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free

Re: [Lazarus] How well should Lazarus check method parameters?

2012-02-24 Thread Flávio Etrusco
On Wed, Feb 22, 2012 at 6:55 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: I've just spotted this in my code: (...) .. procedure TListForm.FormCloseQuery(Sender: TObject; CanClose: Boolean); Those were inserted by some old version of the IDE, presumably the current version

Re: [Lazarus] One thank.

2012-02-24 Thread Everton Vieira
Another thing in this line is to set the FocusControl of a TLabel to the closer TWinControl. 2012/2/24 Everton Vieira tonvie...@gmail.com I wanna say a thank to the one who did the auto-order of the tab order. It's so simply and done the job that otherwise would take time from us to be done.

[Lazarus] Detecting if a debugger is attached

2012-02-24 Thread Torsten Bonde Christiansen
Hi List. Is there any way to know (using code) if a debugger is attached to my program? I know that in delphi there was some way of knowing, but I'm not sure if there exists such an option for Lazarus or Free Pascal. Kind regards, Torsten Bonde Christiansen. --

Re: [Lazarus] How well should Lazarus check method parameters?

2012-02-24 Thread Vincent Snijders
Op 24 februari 2012 13:13 heeft Flávio Etrusco flavio.etru...@gmail.com het volgende geschreven: I can't see any way to justify this not being catch by the compiler as an _error_. We should report it in the fpc-devel ML or in mantis. A compiler doesn't read the lfm file. Vincent. --

Re: [Lazarus] Detecting if a debugger is attached

2012-02-24 Thread Martin
On 24/02/2012 12:37, Torsten Bonde Christiansen wrote: Hi List. Is there any way to know (using code) if a debugger is attached to my program? I know that in delphi there was some way of knowing, but I'm not sure if there exists such an option for Lazarus or Free Pascal. I don't know of

Re: [Lazarus] How well should Lazarus check method parameters?

2012-02-24 Thread Flávio Etrusco
On Fri, Feb 24, 2012 at 10:42 AM, Vincent Snijders vincent.snijd...@gmail.com wrote: Op 24 februari 2012 13:13 heeft Flávio Etrusco flavio.etru...@gmail.com het volgende geschreven: I can't see any way to justify this not being catch by the compiler as an _error_. We should report it in the

[Lazarus] Class const of array of record.

2012-02-24 Thread Everton Vieira
I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end;

Re: [Lazarus] Class const of array of record.

2012-02-24 Thread Adrian Veith
try ((Numero:1; Nome'everton'), (Numero:2; Nome: 'murilo'), (Numero:3; Nome:'vieira')); Am 24.02.2012 14:28, schrieb Everton Vieira: I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec;

Re: [Lazarus] How well should Lazarus check method parameters?

2012-02-24 Thread Sven Barth
Am 24.02.2012 13:58 schrieb Flávio Etrusco flavio.etru...@gmail.com: On Fri, Feb 24, 2012 at 10:42 AM, Vincent Snijders vincent.snijd...@gmail.com wrote: Op 24 februari 2012 13:13 heeft Flávio Etrusco flavio.etru...@gmail.com het volgende geschreven: I can't see any way to justify this

Re: [Lazarus] Class const of array of record.

2012-02-24 Thread Everton Vieira
Worked, even better than i thought. Many thanks! 2012/2/24 Adrian Veith adr...@veith-system.de try ((Numero:1; Nome'everton'), (Numero:2; Nome: 'murilo'), (Numero:3; Nome:'vieira')); Am 24.02.2012 14:28, schrieb Everton Vieira: I was trying to make this construction: type TRec =

Re: [Lazarus] How well should Lazarus check method parameters?

2012-02-24 Thread Mattias Gaertner
On Fri, 24 Feb 2012 14:42:08 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 24.02.2012 13:58 schrieb Flávio Etrusco flavio.etru...@gmail.com: On Fri, Feb 24, 2012 at 10:42 AM, Vincent Snijders vincent.snijd...@gmail.com wrote: Op 24 februari 2012 13:13 heeft Flávio Etrusco

Re: [Lazarus] Class const of array of record.

2012-02-24 Thread Hans-Peter Diettrich
Everton Vieira schrieb: I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'),

Re: [Lazarus] Class const of array of record.

2012-02-24 Thread Everton Vieira
Is contructions like this that aren't available: type TRec = record Numero: Integer; Nome: String; end; implementation {$R *.lfm} procedure ShowTRec(rec: TRec); begin ShowMessage(rec.Nome); end; procedure TForm1.Button1Click(Sender: TObject); begin ShowTRec((Numero: 1; Nome:

[Lazarus] Creation of event handlers problem

2012-02-24 Thread Dimitrios Chr. Ioannidis
Hi, i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried with a clean fpc checked out tree and even i done the the same with lazarus tree. Everything was deleted, checked out again and recompiled. The problem persists. It's very easy to reproduce. Create a

[Lazarus] Creation of event handlers problem

2012-02-24 Thread Dimitrios Chr. Ioannidis
Hi, i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried with a clean fpc checked out tree and even i done the the same with lazarus tree. Everything was deleted, checked out again and recompiled. The problem persists. It's very easy to reproduce. Create a

Re: [Lazarus] [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Everton Vieira
static; should be a keyword, doesn't? 2012/2/24 Everton Vieira tonvie...@gmail.com Is true, with {$modeswitch advancedrecords} worked. But i dont see much sense in put a diretive for enable a new feature. 2012/2/24 Jonas Maebe jonas.ma...@elis.ugent.be On 24 Feb 2012, at 17:50, kyan

Re: [Lazarus] One thank.

2012-02-24 Thread Juha Manninen
2012/2/24 Everton Vieira tonvie...@gmail.com I wanna say a thank to the one who did the auto-order of the tab order. It's so simply and done the job that otherwise would take time from us to be done. It was a patch from Flávio Etrusco. See: http://bugs.freepascal.org/view.php?id=19908

Re: [Lazarus] fpweb fcl-web

2012-02-24 Thread Juha Manninen
2012/2/24 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com Ops, didn't see that Juha was asking the original question =D Sorry for answering like that. There are probably some articles on the subject that Michael can send you. No problem. In fact the examples are good and

Re: [Lazarus] fpweb fcl-web

2012-02-24 Thread Felipe Monteiro de Carvalho
2012/2/24 Juha Manninen juha.mannine...@gmail.com: Now the problem only is that this whole thing doesn't work well with FPC2.4.4 which is the default version in Ubuntu. Yep, it doesn't, but 2.6.0 is pretty good. I have a large project using fpweb and I even added a {$fatal for FPC 2.4 to remind

Re: [Lazarus] One thank.

2012-02-24 Thread Juha Manninen
2012/2/24 Everton Vieira tonvie...@gmail.com Is there any way, besides the unclear way of try to colect some coments in the mailing list about the acceptance of a specific improment? Of course, no one wants to throw away his work. Mailing list is a good place. If your idea is not good then

Re: [Lazarus] If TProcess.CommandLine is deprecated...

2012-02-24 Thread Marco van de Voort
On Wed, Feb 08, 2012 at 11:36:05AM +0100, Sven Barth wrote: developers would focus on tools for debugging, but follow the road map and I see good things to come. A comment in front of the deprecated won't be good, but a string behind the deprecated would be nice ;) (for the reason see

Re: [Lazarus] Fast drawing to canvas

2012-02-24 Thread Marco van de Voort
On Thu, Feb 23, 2012 at 06:49:38PM +0100, Reimar Grabowski wrote: Benchmarking with own code. I had enabled gl3 contexts and PBOs, and I saw that that was faster on new machines, but slower on older ones. Old and new was mainly videocard. (HD5400 series from ATI vs older GF8500's) This is

Re: [Lazarus] WithSynInfoView

2012-02-24 Thread Martin
On 16/02/2012 16:15, Juha Manninen wrote: Martin, are you planning to enable the WithSynInfoView feature by default? It is a useful feature and works well. I know about it because I happened to read your mail about it, and I copied the define WithSynInfoView to my Build Lazarus configuration. I

[Lazarus] What effect does destroying threads have on system resources, especially with those making database connections?

2012-02-24 Thread Frank Church
An application I have written connects to a remote Postgresql 8.3/8.4 database using Zeoslib components, but it has been timing out too often as the network gets busy in a bursty mode. When the network times out, restarting the app retrieves the data quickly, it is always available in good time.