Re: [Lazarus] Delphi converter improvements

2010-02-05 Thread Juha Manninen
Hi, Is there anyway I could try out your Lazarus delphi converter improvements? I made a GitHub repository with my converter branch. It is an extra step but not really complicated for anyone interested in this feature. It is actually only 4 command line commands.

Re: [Lazarus] Delphi converter improvements

2010-02-05 Thread Florian Klaempfl
Juha Manninen schrieb: The original problem has nothing to do with revision control systems. Parts of Lazarus code is known by very few people and they are busy. It is nobody's fault of course but still it leads to patches being ignored. One cannot sit at home and wait for new patches coming

Re: [Lazarus] fpspreadsheet and build errors

2010-02-05 Thread Roberto Padovani
with the snapshot Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe and by installing in a new location on my HD, everything went fine with fpspreadsheet. Now I can't compile CPortLaz, but I'm opening a new thread on that. Roberto 2010/2/4 JoshyFun joshy...@gmail.com: Hello Lazarus

[Lazarus] The name is Free Pascal and NOT FreePascal

2010-02-05 Thread Graeme Geldenhuys
Once and for all, PLEASE get the name right! I have read many of the discussions about the new website design and content, and saw trial screenshots etc. VERY OFTEN the name Free Pascal in incorrectly spelt. Get it right people. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI

[Lazarus] cannot compile CPortLaz 1.0 with lazarus 0.9.28.x

2010-02-05 Thread Roberto Padovani
Hi all, I cannot compile CPortLaz 1.0 with lazarus 0.9.28.2, nor with daily Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe The errors are: C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error: No property found to override C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error

Re: [Lazarus] The name is Free Pascal and NOT FreePascal

2010-02-05 Thread Bee Jay
I have read many of the discussions about the new website design and content, and saw trial screenshots etc. VERY OFTEN the name Free Pascal in incorrectly spelt. Does it really matter? I don't think it's important whether people use free pascal or freepascal as long as it means FPC.

Re: [Lazarus] Reconstructing Lazarus Website 2: the content

2010-02-05 Thread Marco van de Voort
On Thu, Feb 04, 2010 at 07:24:25AM +0200, Paul van Helden wrote: http://www.piqs.de/schnelluebersicht/search/gepard/ Is it just me or are there others that would agree that using real life animal pictures are just plain cheezy? (Well, the current Lazarus logos with cheetahs on

Re: [Lazarus] The name is Free Pascal and NOT FreePascal

2010-02-05 Thread Michael Van Canneyt
On Fri, 5 Feb 2010, Bee Jay wrote: I have read many of the discussions about the new website design and content, and saw trial screenshots etc. VERY OFTEN the name Free Pascal in incorrectly spelt. Does it really matter? Of course it does. I suppose you wouldn't like to be called Beejay

Re: [Lazarus] The name is Free Pascal and NOT FreePascal

2010-02-05 Thread Graeme Geldenhuys
Bee Jay wrote: Does it really matter? Yes. It's a product name, it needs to be reference correctly. prefer freepascal. Because when you said free pascal, it doesn't automatically refer to FPC. There are some other free pascal out In that case, it must be taken up with Florian so the

Re: [Lazarus] Name Free Pascal Compiler Lazarus

2010-02-05 Thread Marco van de Voort
On Thu, Feb 04, 2010 at 12:37:57PM +0200, Juha Manninen wrote: Even Delphi changed the language name from Object Pascal to Delphi, for marketing reasons and to avoid confusion. It was mostly for trademark reasons I think, since Object Pascal is not easily trademarked (since there was an ISO

Re: [Lazarus] Name Free Pascal Compiler Lazarus

2010-02-05 Thread Marco van de Voort
On Fri, Feb 05, 2010 at 12:23:18AM +0200, Reenen Laurie wrote: I don't think that changing the name is likely, but just a couple of things to take into consideration: 1) Currently searching Lazarus gives you the no 1 hit on google (admittedly on Yahoo and Bing this application doesn't reach

Re: [Lazarus] Reconstructing Lazarus Website 2: the content

2010-02-05 Thread Paul van Helden
On 2010/02/05 01:20 PM, Marco van de Voort wrote: It seems a significant portion of open source projects pick some animal, almost as some type of mascot, and that is cool How can something that everybody is doing be cool!??! Well, I like it. Animals are not common as mascots for

Re: [Lazarus] Reconstructing Lazarus Website 2: the content

2010-02-05 Thread Michael Van Canneyt
On Fri, 5 Feb 2010, Paul van Helden wrote: On 2010/02/05 01:20 PM, Marco van de Voort wrote: It seems a significant portion of open source projects pick some animal, almost as some type of mascot, and that is cool How can something that everybody is doing be cool!??! Well, I like it.

[Lazarus] can't take the address of constant expressions

2010-02-05 Thread Roberto Padovani
with lazarus 0.9.28.x I get the error in the subject, while compiling the packages cmdline and plotpanel (downloaded from CCR) They were working, before my recent troubles with the packages and the installation of the .2 and .3 (daily) lazarus versions. The error messages are:

[Lazarus] ../packager/frames/; in lazarus.lpi

2010-02-05 Thread Juha Manninen
Non-existent path in project unit path. Someone could remove it. Regards, Juha M. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to get rid of text in (0,0) in StringGrid?

2010-02-05 Thread Flávio Etrusco
On Fri, Feb 5, 2010 at 2:18 AM, Paul van Helden p...@planetgis.co.za wrote: Can I add something please? :-) When setting RowCount:=0 (to clear the grid) and then RowCount:=5 it changes my FixedRowCount from 0 to 1. I don't want a title in this instance so I don't think the TStringGrid

[Lazarus] Error while compiling resources

2010-02-05 Thread Alex du Plessis
Hello List Previously everything compiled fine - up to today. Trying to recompile my project gives me the following messages: Hint: Start of reading config file C:\lazarus\fpc\2.4.1\bin\i386-win32\fpc.cfg Hint: End of reading config file C:\lazarus\fpc\2.4.1\bin\i386-win32\fpc.cfg Free Pascal

Re: [Lazarus] fpspreadsheet and build errors

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 10:55:54 AM, you wrote: RP I tried a full clean+rebuild a dozen times. RP I also uninstalled everything and reinstalled again and this happened: RP - the attached screenshot appeared RP - I edited the option to ..path..\fpc\2.4.0\source\ RP - doing

Re: [Lazarus] cannot compile CPortLaz 1.0 with lazarus 0.9.28.x

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 12:04:06 PM, you wrote: RP Hi all, RP I cannot compile CPortLaz 1.0 with lazarus 0.9.28.2, nor with daily RP Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe RP The errors are: RP C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error

[Lazarus] GTK2 EraseBackgound

2010-02-05 Thread JoshyFun
Hello Lazarus-List, I wrote a little text induction feature to TCustomEdit, is is being done using LCL in Windows platform (without using Windows unit) where it works fine. The induction is the grayed text that appears in some textboxes like the attached one (taken from my windows code). To work

Re: [Lazarus] How to get rid of text in (0,0) in StringGrid?

2010-02-05 Thread Paul van Helden
Hi Flávio, I'm using a TStringGrid for a checklistbox with two columns and don't ever want to see a title. So I set both FixedRows:=0 and RowCount:=0 in designer. Whenever I set RowCount to something more than 0, I have to set FixedRows back to zero again. I don't see the logic in that...

Re: [Lazarus] how to send keyboard (or mouse) message with lazarus?

2010-02-05 Thread Creatxr
thanks very much. now it could be compiled. 2010/2/4 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com 2010/2/2 Creatxr crea...@gmail.com: /usr/bin/ld: cannot find -lXtst project1.lpr(20,1) Error: Error while linking project1.lpr(20,1) Fatal: There were 1 errors compiling

Re: [Lazarus] Error while compiling resources

2010-02-05 Thread Paul Ishenin
05.02.2010 19:44, Alex du Plessis wrote: Previously everything compiled fine - up to today. Trying to recompile my project gives me the following messages: .. mobilemanager.lpr(45,1) Fatal: There were 1 errors compiling module, stopping ... What should I do to correct the problem? Since I

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Paul Ishenin
05.02.2010 19:57, JoshyFun wrote: Hello Lazarus-List, I wrote a little text induction feature to TCustomEdit, is is being done using LCL in Windows platform (without using Windows unit) where it works fine. The induction is the grayed text that appears in some textboxes like the attached one

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Martin
On 05/02/2010 12:57, JoshyFun wrote: Hello Lazarus-List, I wrote a little text induction feature to TCustomEdit, is is being done using LCL in Windows platform (without using Windows unit) where it works fine. The induction is the grayed text that appears in some textboxes like the attached one

Re: [Lazarus] ../packager/frames/; in lazarus.lpi

2010-02-05 Thread Paul Ishenin
05.02.2010 19:48, Juha Manninen wrote: Non-existent path in project unit path. Someone could remove it. Thanks, removed. Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How to get rid of text in (0,0) in StringGrid?

2010-02-05 Thread Flávio Etrusco
Ah, sorry, I completely misunderstood your problem. I guess the code is missing some check(s) for csDesigning in ComponentState... But actually, I can't quite follow the logic in the code: ... OldCount:=RowCount; if (OldValue=0)and(NewValue=0) then begin FTopLeft.X:=FFixedCols; if

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 2:47:20 PM, you wrote: M why don't you override/change RealSetText (called by SetText). M If it's empty, supply the special text (and change the color). if it M isn't empty, change the color back (only if it was changed; if the text M was empty

Re: [Lazarus] CSV parser class

2010-02-05 Thread Vladimir Zhirov
Hans-Peter Diettrich wrote: I want to prevent duplicate texts in the OH and wiki. The wiki can contain an extended version, covering several topics in depth, while IMO the OH should be more compact, with SeeAlso and Examples references to other places. But you're right, the wiki can be

Re: [Lazarus] cannot compile CPortLaz 1.0 with lazarus 0.9.28.x

2010-02-05 Thread Roberto Padovani
2010/2/5 JoshyFun joshy...@gmail.com: Hello Lazarus-List, Friday, February 5, 2010, 12:04:06 PM, you wrote: RP Hi all, RP I cannot compile CPortLaz 1.0 with lazarus 0.9.28.2, nor  with daily RP Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe RP The errors are: RP C:\lazarus\extras

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Roberto Padovani
2010/2/5 Flávio Etrusco flavio.etru...@gmail.com: Err, it would useful for you to post the source code in question. I guess these are errors are caused by object properties?... I did not post them because the files are available on the Lazarus CCR. However here is the error in the package

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Flávio Etrusco
That's it. That code used to compile with FPC 2.2, but doesn't with 2.4. See: http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields In this case, simply change the code to Inc(FInputPos, UTF8Length(s));. Best regards, Flávio On Fri, Feb 5, 2010 at

[Lazarus] AggPas demo question

2010-02-05 Thread Vladimir Zhirov
Hi, AggPas demo in lazarus\components is great, but I've got a question about it. lazarus\components\aggpas\lazarus\example\AggPasInLCLDemo2.lpr project shows painting on Agg canvas, and then on bitmap canvas. When painting is done on Agg canvas everything is fine, but graphics that is paint

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Roberto Padovani
Ok, thanks! I'll patch the files on my PC, but maintainers of the components Plot Panel and CmdLine should be alerted on this. Roberto 2010/2/5 Flávio Etrusco flavio.etru...@gmail.com: That's it. That code used to compile with FPC 2.2, but doesn't with 2.4. See:

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 16:30, JoshyFun joshy...@gmail.com wrote: Because in that case you are fooling the text content and prone to errors because the control must handle every possible way to get the In fpGUI we introduced a new property called TfpgEdit.ExtraHint That way it doesn't interfere

Re: [Lazarus] AggPas demo question

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 17:41, Vladimir Zhirov vvzh.li...@gmail.com wrote: AggPas demo in lazarus\components is great, but I've got a question about it. lazarus\components\aggpas\lazarus\example\AggPasInLCLDemo2.lpr You have more luck than me then... I get instant application crashes when I try

[Lazarus] Another error with Ubuntu Lucid: Gtk2 ComboBox IM failure

2010-02-05 Thread Flávio Etrusco
Hello, anybody else experiencing problems with entering e.g. pure accents in Gtk2 ComboBoxes? (like in the Evaluate window) I can enter áê, but I trying to enter '^ (pressing space) renders nothing. SynEdit works fine. Other native controls (e.g. the memo in Evaluate window) fail. I'm using the

Re: [Lazarus] AggPas demo question

2010-02-05 Thread Mattias Gaertner
On Fri, 5 Feb 2010 17:45:23 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 5 February 2010 17:41, Vladimir Zhirov vvzh.li...@gmail.com wrote: AggPas demo in lazarus\components is great, but I've got a question about it.

Re: [Lazarus] AggPas demo question

2010-02-05 Thread Mattias Gaertner
On Fri, 5 Feb 2010 19:41:54 +0400 Vladimir Zhirov vvzh.li...@gmail.com wrote: Hi, AggPas demo in lazarus\components is great, but I've got a question about it. lazarus\components\aggpas\lazarus\example\AggPasInLCLDemo2.lpr project shows painting on Agg canvas, and then on bitmap canvas.

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Roberto Padovani
2010/2/5 Flávio Etrusco flavio.etru...@gmail.com: That's it. That code used to compile with FPC 2.2, but doesn't with 2.4. See: http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields In this case, simply change the code to Inc(FInputPos,

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Flávio Etrusco
In this case, I can't understand why the error is gine in plotpanel package for the following line:    FOnXMarksWrite(self,X,xStr,ACanvas.Font,evtHandled); which is inside the implementation of    procedure TPlotPanel.WriteXaxisValues(ACanvas:TCanvas);    var       X : Extended;      

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread zeljko
On Friday 05 February 2010 16:35, Graeme Geldenhuys wrote: On 5 February 2010 16:30, JoshyFun joshy...@gmail.com wrote: Because in that case you are fooling the text content and prone to errors because the control must handle every possible way to get the In fpGUI we introduced a new

Re: [Lazarus] Delphi converter improvements

2010-02-05 Thread Marc Weustink
Juha Manninen wrote: The original problem has nothing to do with revision control systems. Parts of Lazarus code is known by very few people and they are busy. It is nobody's fault of course but still it leads to patches being ignored. Something should be done to fix this situation. Your

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Felipe Monteiro de Carvalho
Yes, trying to change the painting of standard controls leads to problems because each widgetset will deal with it differently. The most assured solution to work everywhere is to implement your own TEdit from scratch with just custom painting. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Roberto Padovani
2010/2/5 Flávio Etrusco flavio.etru...@gmail.com: In this case, I can't understand why the error is gine in plotpanel package for the following line:    FOnXMarksWrite(self,X,xStr,ACanvas.Font,evtHandled); which is inside the implementation of    procedure

Re: [Lazarus] can't take the address of constant expressions

2010-02-05 Thread Flávio Etrusco
So there you go. The parameter is passed as 'var', which implies knowing the variable address. I doubt there's a valid reason for this, so the fix would be to remove the 'var' modifier. []s On Fri, Feb 5, 2010 at 2:32 PM, Roberto Padovani padovan...@gmail.com wrote: 2010/2/5 Flávio Etrusco

[Lazarus] how to capture FN key code of laptop?

2010-02-05 Thread Creatxr
how to capture FN key code of laptop? i want to simulate keyboard input to control my FN+wireless to open/close my wireless, up/down volume and bright, switch screen, etc. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] fpspreadsheet and build errors

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 3:53:33 PM, you wrote: A good technique is use the --primary-config-path= parameter so you know exactly where Lazarus stores its config and this way you can have 2 or more completly independent copies of Lazarus (in example the last stable and

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 4:35:18 PM, you wrote: GG In fpGUI we introduced a new property called TfpgEdit.ExtraHint GG That way it doesn't interfere with the actual text content - no matter GG how it is set. The ExtraHint text is painted directly onto the GG TfpgEdit

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Friday, February 5, 2010, 5:33:29 PM, you wrote: Painting directly onto TEdit's background canvas - is that what you are having issues with under GTK2? z It's because ws paints such control (same like under qt), you can paint on it z whatever, but at the end your changes

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Felipe Monteiro de Carvalho
On Fri, Feb 5, 2010 at 5:00 PM, JoshyFun joshy...@gmail.com wrote: I do not wish to struggle GTK, I wish to do everything in plain LCL way, but seems to be not possible. Anyway I'll investigate a bit and get more familiar with GTK way of life. Yes, you need to mess with Gtk to do it. I would

Re: [Lazarus] How to get rid of text in (0,0) in StringGrid?

2010-02-05 Thread Jesus Reyes
--- El vie 5-feb-10, Flávio Etrusco flavio.etru...@gmail.com escribió: your problem. I guess the code is missing some check(s) for csDesigning in ComponentState... I don't understand, exactly where is it missing? But actually, I can't quite follow the logic in the code: ...

Re: [Lazarus] AggPas demo question

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 18:04, Mattias Gaertner nc-gaert...@netcologne.de wrote: It works under linux and mac. Maybe I made some mistake for windows. Can you create a backtrace or know the problem already? I tried it under Ubuntu 9.04 (64-bit) and Lazarus with GTK2. I'll update tomorrow on my home

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Kjow
2010/2/5 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: Yes, you need to mess with Gtk to do it. I would however recommend that you try it with Qt instead. The Qt API is much easier to use and the Qt interface is also much better organized. The downside is that you need the

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 18:33, zeljko zel...@holobit.net wrote: It's because ws paints such control (same like under qt), you can paint on it whatever, but at the end your changes won't be visible since ws theme painter do the job. OK, I understand the problem now. So background/theme painting is

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 19:19, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Yes, trying to change the painting of standard controls leads to problems because each widgetset will deal with it differently. Ah, so you confirmed what I was thinking (in my reply to zeljko). No

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Graeme Geldenhuys
On 5 February 2010 23:03, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Yes, you need to mess with Gtk to do it. I would however recommend that you try it with Qt instead. But that defeats the point of LCL then - not all features work in all widgetsets. So you end up

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Graeme Geldenhuys
On 6 February 2010 00:31, Kjow antispamm...@gmail.com wrote: What about licenses using of QT in commercial projects? You need to purchase a commercial license. $2500 US per developer - starting price (if I remember correctly). -- Regards, - Graeme -

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread JoshyFun
Hello Lazarus-List, Saturday, February 6, 2010, 12:01:38 AM, you wrote: GG On 5 February 2010 20:56, JoshyFun joshy...@gmail.com wrote: More or less :) Mostly is tell to GTK2 that I'll paint something over TEdit and please GTK do not erase it :) or I you do it let me know to repaint my own

Re: [Lazarus] AggPas demo question

2010-02-05 Thread Mattias Gaertner
On Sat, 6 Feb 2010 00:29:27 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 5 February 2010 18:04, Mattias Gaertner nc-gaert...@netcologne.de wrote: It works under linux and mac. Maybe I made some mistake for windows. Can you create a backtrace or know the problem already? I

Re: [Lazarus] GTK2 EraseBackgound

2010-02-05 Thread Felipe Monteiro de Carvalho
On Fri, Feb 5, 2010 at 8:31 PM, Kjow antispamm...@gmail.com wrote: What about licenses using of QT in commercial projects? This is a problem if you are using Qt 4.4 or previous. But now Lazarus uses and requires Qt 4.5+ which is LGPL, the same license as Gtk, which means in short: no problems

Re: [Lazarus] Error while compiling resources

2010-02-05 Thread Alex du Plessis
On 5 February 2010 15:27, Paul Ishenin webpi...@mail.ru wrote: 05.02.2010 19:44, Alex du Plessis wrote: Previously everything compiled fine - up to today. Trying to recompile my project gives me the following messages: .. mobilemanager.lpr(45,1) Fatal: There were 1 errors compiling