Re: [Lazarus] Some syntax changes

2010-07-31 Thread Mattias Gaertner
On Sat, 31 Jul 2010 05:38:50 +0200 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > >> Perhaps nobody noticed that in the past days the Pascal syntax has > >> changed a bit. This leads to wrong behaviour of the code tools :-( > >> > >> Now unit properties can follow an "var" block, w

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Mattias Gaertner
On Sat, 31 Jul 2010 05:56:39 +0200 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > >> BTW, what about a compiler package, installable into the IDE? I'm just > >> redesigning the compiler (OO_rewrite branch), but the future of this > >> branch is yet unknown. > > > > Remarks: > > -

Re: [Lazarus] CodeTools: what is an "identifier"

2010-07-31 Thread Mattias Gaertner
On Fri, 30 Jul 2010 13:28:43 +0200 Bernd Kreuss wrote: > Mattias Gaertner wrote: > > > They are painted with your theme. > > Here they look exactly like hints from other applications. Yellowish > > background. > > Hints have no border. > > The nomal hints all look ok and have the yellowish colo

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Bernd Kreuss
Am 28.07.2010 15:28, schrieb Martin: MacOSX license only allows to run the OS on Apple hardware. So even if you own an original MacOsX Please don't use the term "illegal" in such an inflationary manner. What is illegal is defined by the laws and by nothing else. It does not matter what

Re: [Lazarus] How to get superuser rights

2010-07-31 Thread Bernd Kreuss
Am 30.07.2010 12:06, schrieb Sven Barth: On Kubuntu it must be installed manually. For KDE desktops there is also kdesudo. This should be installed by default in most (all?) kde based distributions. -- ___ Lazarus mailing list Lazarus@lists.lazarus

Re: [Lazarus] Problem using TAsyncProcess.OnReadData

2010-07-31 Thread Micha Nelissen
shoKwave wrote: Hi all, I'm trying to use TAsyncProcess and got into trouble on other widgetsets than GTK2. The code below works fine on Ubuntu 10.04 x64 (GTK2) and openSUSE 11.3 i386 (GTK2), but not on openSUSE 11.3 i386 (QT) or Windows7 i386. Windows should work, I think... Qt is probabl

Re: [Lazarus] Reading a spreadsheet with fpspreadsheet

2010-07-31 Thread Thierry Coq
On 29/07/2010 16:53, Koenraad Lelon wrote: ... My application would be a transcoder. I get excel-files from a customer, and I need a csv-like output. This is read by a proprietary application. What I do now is read the excel-file in OOo or MS-Excel, save it as csv and, with an editor, I fix the f

Re: [Lazarus] Reading a spreadsheet with fpspreadsheet

2010-07-31 Thread Thierry Coq
The link is here: http://www.tcoq.org/composants Thierry. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Martin
On 31/07/2010 10:37, Bernd Kreuss wrote: Am 28.07.2010 15:28, schrieb Martin: MacOSX license only allows to run the OS on Apple hardware. So even if you own an original MacOsX Please don't use the term "illegal" in such an inflationary manner. What is illegal is defined by the laws and b

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Martin
Somehow the quoting messed up On 31/07/2010 12:44, Martin wrote: On 31/07/2010 10:37, Bernd Kreuss wrote: Please don't use the term "illegal" in such an inflationary manner. What is illegal is defined by the laws and by nothing else. Let me put the full context of my statement back: I a

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Bernd Kreuss
On 31.07.2010 13:53, Martin wrote: What is inflationary about this? Maybe I overreacted a bit. I just recently had a heated discussion about a very similar topic and it seems many people in general (not necessarily you) tend to simply accept certain concepts as "normal" that would have been

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Bernd Kreuss
On 31.07.2010 13:44, Martin wrote: - using a software without license (and I doubt you get a license for IDeneb) is probably not legal anywhere on this world Ok, I looked at their website and they seem to distribute the whole OSX, I initially thought it was just a patch for an existing copy t

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: A simple example: interface function GetProp: byte; var test: integer; property prop1: byte read GetProp; prop2: byte read GetProp; implementation function GetProp: byte; begin Result := 0; //whatever you like. check code completion for "Result" end; Lo

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: -it requires changes to the options, the gui, the cache. In detail the compiler options could/should be passed directly to the compiler, not in form of commandline options (string). Compiling must work the same with an installed compiler and on command line. It's har

Re: [Lazarus] Lazarus installation on Mac plus other thoughts

2010-07-31 Thread Hans-Peter Diettrich
Bernd Kreuss schrieb: On 31.07.2010 13:44, Martin wrote: As far as German law is involved... - using a software without license (and I doubt you get a license for IDeneb) is probably not legal anywhere on this world Ok, I looked at their website and they seem to distribute the whole OSX, I

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Mattias Gärtner
Zitat von Hans-Peter Diettrich : Mattias Gaertner schrieb: A simple example: interface function GetProp: byte; var test: integer; property prop1: byte read GetProp; prop2: byte read GetProp; implementation function GetProp: byte; begin Result := 0; //whatever you like. check code c

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Mattias Gärtner
Zitat von Hans-Peter Diettrich : Mattias Gaertner schrieb: -it requires changes to the options, the gui, the cache. In detail the compiler options could/should be passed directly to the compiler, not in form of commandline options (string). Compiling must work the same with an installed co

[Lazarus] tFileOpen Action, Is it possible to cancel the dialog...

2010-07-31 Thread Wildfire
Just started messing about with the standard actions in Lazarus and came across a minor problem. Is in possible to cancel the dialog in the BeforeExecute event, my plan was to ask the user to save the current file (Yes/No/Cancel) before opening another, problem is I don't know how to cancel th

[Lazarus] What changed in Lazarus or FPC.CFG. Error or misconfiguration !?!

2010-07-31 Thread Marcelo B de Paula
Hello all, Just updated my working copy and after recompiling the IDE i´m getting this error: "The project uses target OS=win32 and CPU=I386. The system.ppu for this target was not found in the FPC binary directories. .." I did not touch fpc.cfg nor relocated my fpc installation. The syst

Re: [Lazarus] Some syntax changes

2010-07-31 Thread Hans-Peter Diettrich
Mattias Gärtner schrieb: Make all compiler options objects (or records with IDs) in the IDE, and let the (future) compiler handle them. There is a difference between the stored options and the real options. Most options are stored as name, value pair. The real options are computed on demand.

Re: [Lazarus] tFileOpen Action, Is it possible to cancel the dialog...

2010-07-31 Thread Alberto Narduzzi
Is in possible to cancel the dialog in the BeforeExecute event, my plan was to ask the user to save the current file (Yes/No/Cancel) before opening another. Cannot you check if the current file needs to be saved and prompt the user for it _before_ opening the dialog? Cheers, A. -- ___