Re: [Lazarus] New constref parameter-type support in codetools

2010-10-10 Thread Mattias Gaertner
On Sun, 10 Oct 2010 15:53:43 +0200 Joost van der Sluis wrote: > Hi all, > > There is a xpcom-branch which adds the 'constref' parameter type to Free > Pascal. This can be useful for connecting to external api's > (http://bugs.freepascal.org/view.php?id=7612) > > Normally I would ask Mattias to

[Lazarus] WebData

2010-10-10 Thread Leonardo M . Ramé
Hi, I was reading /packages/fcl-web/src/webdata/readme.txt and tried to test it, and created an TFPWebProviderDataModule, with an database connection, joined to a TSqlQuery, TSqlTransaction, and a Datasource, then added a TSQLDBWebDataProvider linking it to the datasource. The cgi executable name

Re: [Lazarus] GeckoPort, Free Pascal only?

2010-10-10 Thread Paul Ishenin
10.10.2010 22:07, Joost van der Sluis wrote: But GeckoPort has to be patched also. But with the new xpcom-support on non-Windows systems, we have to add tons of ifdef's is we want to keep the code compilable on Delphi. Is that a requirement or can we drop the support for Delphi-compilation? Wha

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Martin
On 10/10/2010 22:50, Bo Berglund wrote: On Sun, 10 Oct 2010 22:05:32 +0100, Martin wrote: As for right now: I believe you can get that done by using jedi code formater (tools menu / environment options) (the feature request will likely end up with me, and I have several other thinks to do befo

Re: [Lazarus] Syntax highlighting anomalies

2010-10-10 Thread Martin
On 09/10/2010 12:26, Bernd Kreuss wrote: On 09.10.2010 12:43, Bernd Kreuss wrote: The changes to the highlighter are just handful of lines, I quickly hacked something together yesterday evening to see how this mode would look like and it seems to work and I very much like how my programs appea

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 22:05:32 +0100, Martin wrote: > On 10/10/2010 21:43, Bo Berglund wrote: >As I said, please add a feature request, so far simply no one thought >about it, and no one has asked. I am new here and I don't know how to add a feature request. Will search for it on the web... >As

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 17:52:46 +0200, Sven Barth wrote: >> (I.e. can one enter compiler directives condistioned on other things >> in an ifdef construct?) >> >Yes, that is perfectly legal and even necessary if you use multiple >compilers. >You can also write all those settings into an *.inc file a

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Mattias Gaertner
On Sun, 10 Oct 2010 22:05:32 +0100 Martin wrote: >[...] > As for right now: I believe you can get that done by using jedi code > formater (tools menu / environment options) > (the feature request will likely end up with me, and I have several > other thinks to do before I can look at it) Maybe

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Martin
On 10/10/2010 21:43, Bo Berglund wrote: On Sun, 10 Oct 2010 20:50:56 +0100, Martin wrote: On 10/10/2010 20:29, Bo Berglund wrote: In Lazarus after selecting a group of code lines: - Ctrl-k-u or Ctrl-k-i does exactly nothing. you can assign t

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 20:50:56 +0100, Martin wrote: > On 10/10/2010 20:29, Bo Berglund wrote: >> In Lazarus after selecting a group of code lines: >> - >> Ctrl-k-u or Ctrl-k-i does exactly nothing. >you can assign them, or maybe select a different ke

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Martin
On 10/10/2010 20:29, Bo Berglund wrote: In Lazarus after selecting a group of code lines: - Ctrl-k-u or Ctrl-k-i does exactly nothing. you can assign them, or maybe select a different keymap-scheme... Ctrl-Shift-i and Ctrl-Shift-u (the Delphi key

Re: [Lazarus] Is the a subversion command to list changes to a file or directory you are interested in?

2010-10-10 Thread Martin
On 10/10/2010 20:17, Felipe Monteiro de Carvalho wrote: In Windows with Tortoise SVN one of the menu entries does this. svn blame -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/l

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 15:01:47 -0300, Leonardo M. Ramé wrote: >In both, Delphi and Lazarus I allways used "ctrl+k i" to indent and >"ctrl+k u" to unindent. Just tested on Lazarus and it works ok. I forgot to say that I am testing on Lazarus 0.9.28.2 beta in Windows. In Lazarus after selecting a g

Re: [Lazarus] fp-Web and FastCGI

2010-10-10 Thread Michael Van Canneyt
On Sun, 10 Oct 2010, ABorka wrote: On 10/10/2010 11:51, Michael Van Canneyt wrote: On Sun, 10 Oct 2010, Leonardo M. Ramé wrote: On 2010-10-10 13:34:30 -0300, Leonardo M. Ramé wrote: exception at 00466EEA: Failed to open input-handle passed from server. Socket Error: 88. Now I'm

Re: [Lazarus] Is the a subversion command to list changes to a file or directory you are interested in?

2010-10-10 Thread Felipe Monteiro de Carvalho
In Windows with Tortoise SVN one of the menu entries does this. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] fp-Web and FastCGI

2010-10-10 Thread ABorka
On 10/10/2010 11:51, Michael Van Canneyt wrote: On Sun, 10 Oct 2010, Leonardo M. Ramé wrote: On 2010-10-10 13:34:30 -0300, Leonardo M. Ramé wrote: exception at 00466EEA: Failed to open input-handle passed from server. Socket Error: 88. Now I'm stuck, somebody can help me with this?

Re: [Lazarus] fp-Web and FastCGI

2010-10-10 Thread Leonardo M . Ramé
On 2010-10-10 20:51:39 +0200, Michael Van Canneyt wrote: > > > On Sun, 10 Oct 2010, Leonardo M. Ramé wrote: > > >On 2010-10-10 13:34:30 -0300, Leonardo M. Ramé wrote: > >> > >> exception at 00466EEA: > >> Failed to open input-handle passed from server. Socket Error: 88. > >> > >>Now I'

Re: [Lazarus] fp-Web and FastCGI

2010-10-10 Thread Michael Van Canneyt
On Sun, 10 Oct 2010, Leonardo M. Ramé wrote: On 2010-10-10 13:34:30 -0300, Leonardo M. Ramé wrote: exception at 00466EEA: Failed to open input-handle passed from server. Socket Error: 88. Now I'm stuck, somebody can help me with this?. I figured out that I was configuring wro

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Sven Barth
On 10.10.2010 19:56, Martin wrote: Hm, I don't know how delphi does it. I only have "Turbo Delphi" (the one Borland gave away for free) and it doesn't seem do have any indent/unindent at all. (ctrl-i/ctrl-u don't do it, neither does tab). You forgot to press another modifier: Ctrl-Shift-i/Ctrl

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Leonardo M . Ramé
On 2010-10-10 19:24:51 +0200, Bo Berglund wrote: > I have tried to fix indentation problems that were not visible when > the unit was edited in Delphi7, but now shows up as massive block > indents. > > But I cannot get anything to work, not Tab and Shift-Tab or Ctrl-i and > Ctrl-u... > They seem o

Re: [Lazarus] fp-Web and FastCGI

2010-10-10 Thread Leonardo M . Ramé
On 2010-10-10 13:34:30 -0300, Leonardo M. Ramé wrote: > > exception at 00466EEA: > Failed to open input-handle passed from server. Socket Error: 88. > > Now I'm stuck, somebody can help me with this?. > I figured out that I was configuring wrongly my apache2. Instead of using FastC

Re: [Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Martin
On 10/10/2010 18:24, Bo Berglund wrote: I have tried to fix indentation problems that were not visible when the unit was edited in Delphi7, but now shows up as massive block indents. But I cannot get anything to work, not Tab and Shift-Tab or Ctrl-i and Ctrl-u... They seem only to work as follo

[Lazarus] Block unindent does not work in Lazarus like in Delphi7....

2010-10-10 Thread Bo Berglund
I have tried to fix indentation problems that were not visible when the unit was edited in Delphi7, but now shows up as massive block indents. But I cannot get anything to work, not Tab and Shift-Tab or Ctrl-i and Ctrl-u... They seem only to work as follows: - Select a block of text - Use TAB or

Re: [Lazarus] Ubuntu 10.10 Toolbar Button Dropdown Mode PopUp Menu bug

2010-10-10 Thread Andrew Brunner
Actually, it is a problem. It went away b/c I had extra code inside the TreeView that does handle the OnPopup for a seperate popup menu component. But the popup menu component dedicated for the toolbar button does not get receive onPopup event On Sun, Oct 10, 2010 at 11:31 AM, Andrew Brunner wr

[Lazarus] fp-Web and FastCGI

2010-10-10 Thread Leonardo M . Ramé
Hi, until now, I used fp-web to create cgi applications. Now I want to try fastcgi, but I don't know how to start the fascgi app. Let me explain what I did. 1) In Lazarus I went to Project -> New -> FastCGI application. This created the skeleton for my app, very similar to a CGI app (with a TFPWe

Re: [Lazarus] Ubuntu 10.10 Toolbar Button Dropdown Mode PopUp Menu bug

2010-10-10 Thread Andrew Brunner
Disregard. The problem was cached dfm file. On Sun, Oct 10, 2010 at 11:20 AM, Andrew Brunner wrote: > Ubuntu 10.10 x64 > > ToolbarButton Onpopup menu event not fired on dropdown event.  This > behavior makes enabling/disabling popup menu items difficult. > -- ___

[Lazarus] TImage.Canvas.FloodFill needs FillStyle fsSurface, but is not found

2010-10-10 Thread Bo Berglund
I get the error that fsSurface is undefined when I try to compile a Delphi project that uses the TImage.Canvas.FloodFill method, which uses fsSurface to tell it to fill the content and not just the border. What do I do in Lazarus? THere is no pop-up help when I try to enter the left parenthesis in

[Lazarus] Ubuntu 10.10 Toolbar Button Dropdown Mode PopUp Menu bug

2010-10-10 Thread Andrew Brunner
Ubuntu 10.10 x64 ToolbarButton Onpopup menu event not fired on dropdown event. This behavior makes enabling/disabling popup menu items difficult. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailm

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Sven Barth
On 10.10.2010 17:47, Bo Berglund wrote: One question though: I need to enter this at the top of my big unit to stop Lazarus/FPC from complaining about syntax errors: {$MODE Delphi} But if this is detected by Delphi it will complain that there is no MODE command, so can I legally do this: {$IFDE

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 12:03:42 +0200, Mattias Gaertner wrote: >On Sun, 10 Oct 2010 11:46:43 +0200 >Bo Berglund wrote: > >> But how would this be done more specifically? Is there some >> description available on making code compatible between Delphi and >> Lazarus when there are component differenc

Re: [Lazarus] Is the a subversion command to list changes to a file or directory you are interested in?

2010-10-10 Thread Marco van de Voort
On Sun, Oct 10, 2010 at 02:41:17PM +0200, Frank Church wrote: > Is the a subversion command to list changes to a file or directory you are > interested in? Play with svn status / svn diff -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.or

[Lazarus] GeckoPort, Free Pascal only?

2010-10-10 Thread Joost van der Sluis
Hi Joshy/all, To make Gecko wotk the necessary safecall support for Free Pascal on linux/i386 is now available in fpc-trunk. The additional IInterface changes are in the xpcom branch and will eventually be merged to trunk. But GeckoPort has to be patched also. But with the new xpcom-support on no

[Lazarus] New constref parameter-type support in codetools

2010-10-10 Thread Joost van der Sluis
Hi all, There is a xpcom-branch which adds the 'constref' parameter type to Free Pascal. This can be useful for connecting to external api's (http://bugs.freepascal.org/view.php?id=7612) Normally I would ask Mattias to add the 'constref' parsing to the codetools and in most cases it's done within

Re: [Lazarus] Converting Pascal Client/Server application into Web Client?

2010-10-10 Thread Joost van der Sluis
On Sun, 2010-10-10 at 14:17 +0200, Michael Van Canneyt wrote: > > On Sun, 10 Oct 2010, Joost van der Sluis wrote: > > > On Fri, 2010-10-01 at 13:17 -0300, Luiz Americo Pereira Camara wrote: > >> Michael Van Canneyt escreveu: > >>> > >>> > >>> On Fri, 1 Oct 2010, Michael Schnell wrote: > >>> > >>>

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-10 Thread Joost van der Sluis
On Wed, 2010-10-06 at 15:15 +0200, Felipe Monteiro de Carvalho wrote: > Thanks, applied in rev16088 Does it still works on older distributions with the old name of the library? Joost -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org htt

[Lazarus] Is the a subversion command to list changes to a file or directory you are interested in?

2010-10-10 Thread Frank Church
Is the a subversion command to list changes to a file or directory you are interested in? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Bo Berglund
On Sun, 10 Oct 2010 13:33:23 +0200, Luca Olivetti wrote: >Al 10/10/10 11:46, En/na Bo Berglund ha escrit: > > >> But how would this be done more specifically? Is there some >> description available on making code compatible between Delphi and >> Lazarus when there are component differences in the

Re: [Lazarus] Converting Pascal Client/Server application into Web Client?

2010-10-10 Thread Michael Van Canneyt
On Sun, 10 Oct 2010, Joost van der Sluis wrote: On Fri, 2010-10-01 at 13:17 -0300, Luiz Americo Pereira Camara wrote: Michael Van Canneyt escreveu: On Fri, 1 Oct 2010, Michael Schnell wrote: Did you get it working with FastCGI ? I work only with FastCGI, and so does extpascal. Did y

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Luca Olivetti
Al 10/10/10 11:46, En/na Bo Berglund ha escrit: But how would this be done more specifically? Is there some description available on making code compatible between Delphi and Lazarus when there are component differences in the two systems as I described above? Drop Delphi and simply use Lazar

Re: [Lazarus] Using 5dpo for serial comm...

2010-10-10 Thread Paulo Costa
On 10/10/2010 07:43, Bo Berglund wrote: Thanks, this is exactly what I need! So if there are more detailed items needed I could look at the SynSer documentation, right? Yes. (or its source code and comments...) Paulo Costa -- ___ Lazarus mailing li

Re: [Lazarus] Converting Pascal Client/Server application into Web Client?

2010-10-10 Thread Joost van der Sluis
On Fri, 2010-10-01 at 13:17 -0300, Luiz Americo Pereira Camara wrote: > Michael Van Canneyt escreveu: > > > > > > On Fri, 1 Oct 2010, Michael Schnell wrote: > > > > > >> Did you get it working with FastCGI ? > > > > I work only with FastCGI, and so does extpascal. > > Did you get fpWeb/FastCGI + W

Re: [Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Mattias Gaertner
On Sun, 10 Oct 2010 11:46:43 +0200 Bo Berglund wrote: > I have a rather extensive comm unit created in Delphi for > communication with a data acquisition instrument via RS232. > The task is to port a project using this file to Lazarus on Linux. > Thanks to advice here I have found a serial port c

[Lazarus] Delphi-Lazarus compatible code including serial port?

2010-10-10 Thread Bo Berglund
I have a rather extensive comm unit created in Delphi for communication with a data acquisition instrument via RS232. The task is to port a project using this file to Lazarus on Linux. Thanks to advice here I have found a serial port component that works in similar ways to the one I have used in Wi

Re: [Lazarus] Converting Fortran to FPC?

2010-10-10 Thread Mark Morgan Lloyd
Bo Berglund wrote: I already had a look at manual conversion of a few functions and tey look fairly simple really, mostly a lot of array manipulations in do loops. Be warned that you might need to be careful with numeric accuracy- rounding errors etc. It would be good practice to make sure t