[lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Graeme Geldenhuys
Hi, Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include any spaces in front of elements. No checkboxes are checked in the Insert space in

Re: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Tiziano_mk
Al Boldi wrote: Tiziano_mk wrote: I wish to add this missing item that i find more interesting: Maybe you want to use python to control OpenOffice with Free pascal? It's possible, just embed FPC with the python embedded in OpenOffice. During holydays I made successfully this test (on windows)

Re: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Michael Van Canneyt
On Wed, 17 Jan 2007, Tiziano_mk wrote: Al Boldi wrote: Tiziano_mk wrote: I wish to add this missing item that i find more interesting: Maybe you want to use python to control OpenOffice with Free pascal? It's possible, just embed FPC with the python embedded in OpenOffice.

Re: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Florian Klaempfl
Michael Van Canneyt schrieb: On Wed, 17 Jan 2007, Tiziano_mk wrote: Al Boldi wrote: Tiziano_mk wrote: I wish to add this missing item that i find more interesting: Maybe you want to use python to control OpenOffice with Free pascal? It's possible, just embed FPC with the python embedded

AW: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Jörg Geppert
I always interested to automate Ooo. But I don´t found a good example for Pascal. Is it possible to tell us where we can find these example? Jörg -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Florian Klaempfl Gesendet: Mittwoch, 17. Januar

RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
Anyway, porting Python4Delphi to Lazarus is practically impossible, it needs COM. So even if one wish to waste his time porting to lazarus P4D on windows, it could never work on linux or other platforms. Mozilla XPCOM is basically COM compatible (defined same strucure for IUnknown interface

RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
But when it comes to speed, you can't use Python. It's a script- interpreter! Just like Matlab... Matlab has compiler (into C) Python has compilers (see Microsoft's IronPython for .NET for example) Further one small remarks: - Python isn't a programming language. Your introduction about

RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
OLE and COM are supported in FPC, but only on Windows. So in theory you can automate OOo directly on Windows. Btw, are ActiveX controls supported (more or less)? E.g. could one place an AX on a form? Is there any helper functionality about importing an AX (not necesserily the types, just the

RE: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread George Birbilis
IMHO a OOo interface should use OLE/COM on windows, and any other means (for example python) on other platforms. Although I think that if python can call openoffice, FPC should be able to do the same. I'd expect OO to use XPCOM like Moz, but not sure what they used George

RE: [lazarus] Lazarus File bigger then Delphi File?

2007-01-17 Thread George Birbilis
let me ask you a few questions: are you still using 1.44 floppies? are you sending compiled execs 20 times a day via 56k modem connection? no? then why 1 or 2 mb bigger is so bad for you? btw, delphi is NOT multiplatform. whant smaller exec linux+windows?

Re: [lazarus] sqlite dataset in thread

2007-01-17 Thread Luiz Americo Pereira Camara
[EMAIL PROTECTED] wrote: thanks Luiz. It resolved your problem? Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] TXMLDocument from string

2007-01-17 Thread Mattias Gaertner
On Tue, 16 Jan 2007 19:42:32 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Mattias Gaertner schreef: On Tue, 16 Jan 2007 14:48:53 +0300 Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: There is too few information on that functions... sometime programming with lazarus i

Re: [lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Mattias Gaertner
On Wed, 17 Jan 2007 10:11:23 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include

Re: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Mattias Gaertner
On Wed, 17 Jan 2007 17:06:04 +0200 George Birbilis [EMAIL PROTECTED] wrote: But when it comes to speed, you can't use Python. It's a script- interpreter! Just like Matlab... Matlab has compiler (into C) Python has compilers (see Microsoft's IronPython for .NET for example) Further one

Re: [lazarus] TXMLDocument from string

2007-01-17 Thread Vincent Snijders
Mattias Gaertner schreef: On Tue, 16 Jan 2007 19:42:32 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: It seems to be quite old: 2005-05-26. It is. OTOH, not much LCL documentation has been added. I will create a new set, when fpdoc is fixed again:

Re: [lazarus] TXMLDocument from string

2007-01-17 Thread Vincent Snijders
Michael Van Canneyt schreef: On Wed, 17 Jan 2007, Vincent Snijders wrote: Mattias Gaertner schreef: On Tue, 16 Jan 2007 19:42:32 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: It seems to be quite old: 2005-05-26. It is. OTOH, not much LCL documentation has been added. I will create a

Re: [lazarus] TXMLDocument from string

2007-01-17 Thread Michael Van Canneyt
On Wed, 17 Jan 2007, Vincent Snijders wrote: Michael Van Canneyt schreef: On Wed, 17 Jan 2007, Vincent Snijders wrote: Mattias Gaertner schreef: On Tue, 16 Jan 2007 19:42:32 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: It seems to be quite old: 2005-05-26.

[lazarus] Lazarus AMD64 version bug ?

2007-01-17 Thread Michael Van Canneyt
Hello, Clicking the middle mouse button in the Lazarus editor window crashes the IDE with a 'Segmentation fault' if it's compiled for AMD64. The IDE just exits, and prints Segmentation fault on the terminal. The exact same sources, compiled for i386 work fine, and clicking the middle mouse

Re: [lazarus] Loading Menus form a file at runtime.

2007-01-17 Thread Dave Coventry
Hi Darius, thanks for the reply. allMenus[i].OnClick:[EMAIL PROTECTED] Thank you, that worked. Not shure what you want to say here. Can you be more specific? Yes. The menu file is in the form: Command=Open and Command=New. I need some way of Passing New or Open to my program once the user has

Re: [lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Graeme Geldenhuys
On 1/17/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include any spaces in front of

Re: [lazarus] Lazarus File bigger then Delphi File?

2007-01-17 Thread Graeme Geldenhuys
In the real world, bigger is always better! Well, that's the American way of thinking. How come that doesn't apply for Lazarus executables! :-) Graeme. On 1/17/07, George Birbilis [EMAIL PROTECTED] wrote: let me ask you a few questions: are you still using 1.44 floppies?

Re: [lazarus] Lazarus AMD64 version bug ?

2007-01-17 Thread ik
I also have this problem. If you will look at my email about it, you can find more details what causing it. Ido On 1/18/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: Hello, Clicking the middle mouse button in the Lazarus editor window crashes the IDE with a 'Segmentation fault' if it's

Re: [lazarus] Lazarus for Python (L4P)

2007-01-17 Thread Tiziano_mk
Michael Van Canneyt wrote: On Wed, 17 Jan 2007, Tiziano_mk wrote: (note: Issuing commands to OpenOffice can be easily done with Delphi, this is explained in the OpenOffice SDK, but it uses the Uno OLE automation bridge. Since OLE and COM is not available in other platforms, FPC doesn't