Re: [Lazarus] FlipText

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-20 18:59, silvioprog het geskryf: Do you know any? (GPL) Bitstream Vera, DeJaVu etc... Available for download from SourceForge.net, or comes standard with all Linux distros. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-20 16:42, Vincent Snijders het geskryf: Does this solve the more than 100 failures in the lazarus test suite too? No, the issues are not related. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/ --

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 00:21, waldo kitty het geskryf: just to toss my two cents into the ring... the above is not for me... i'm very old-school... begin and end get their own line in my world... +1 I use Borland Delphi coding style. Always have, always will. Regards, - Graeme - -- fpGUI

Re: [Lazarus] How to jump to start of function

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 01:17, Frank Church het geskryf: Does Lazarus offer the ability to bring up a list of functions and jump to a start of a function, like the function in gexperts used to? Alt+G (or Ctrl+G on my system) will bring up the Procedure List dialog (in the Search menu) - I ported that

Re: [Lazarus] Smart Cut/Paste Spacing of declared variables and contants...

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 00:28, waldo kitty het geskryf: but i gotta ask... what can/will be used to determine the column for the colons to align on? what happens if something on that line is longer and the colon must be pushed over? how far to push it over? Elastic Tabstops will solve that too, by

Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-21 Thread Vincent Snijders
2010/10/21 Graeme Geldenhuys graemeg.li...@gmail.com: Op 2010-10-20 16:42, Vincent Snijders het geskryf: Does this solve the more than 100 failures in the lazarus test suite too? No, the issues are not related. No how many errors did you get now? Can you copy paste the output? Vincent

[Lazarus] open pas file from command line

2010-10-21 Thread David Emerson
Hi there, Suppose I have a lazarus source editor open. I would like to, from my command line shell, issue a command to open a new source in the already-open source editor. Is this possible? Why? If I have a shell open in a directory, it's very quick to tab-complete a file within a directory.

Re: [Lazarus] TXMLPropstorage not consistently saviing

2010-10-21 Thread A.J. Venter
Hey guys, was anybody able to reproduce this ? Is it a bug ? Or am I just misunderstanding documentation ? I am holding back on any more commits to the tree in the meantime because I don't want to make the code in the example any more complex than it has to be - specifically to make it easier to

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread A.J. Venter
Since I did this, I find that switching back and forth from Java/C#/Pascal/Javascript makes for quick code reading.  Otherwise it's way too difficult.  I realize this is just my personal preferences but I am also convinced after using this technique, most would be using it as well. I've

Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 09:03, Vincent Snijders het geskryf: No how many errors did you get now? 170 errors (I ran it this morning), just before my previous reply. Can you copy paste the output? OK, it's still running. Will paste the output as soon as it's done. Regards, - Graeme - -- fpGUI

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 06:58, David Emerson het geskryf: Suppose I have a lazarus source editor open. I would like to, from my command line shell, issue a command to open a new source in the already-open source editor. Is this possible? Last time I checked, it was not possible. A feature I miss

Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 09:03, Vincent Snijders het geskryf: Can you copy paste the output? attached is a archive that contains the xml results file. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Re: [Lazarus] TXMLPropstorage not consistently saviing

2010-10-21 Thread Michael Van Canneyt
Hi, I missed your post with the link. Now I saw it, and I will check it later today. Michael. On Thu, 21 Oct 2010, A.J. Venter wrote: Hey guys, was anybody able to reproduce this ? Is it a bug ? Or am I just misunderstanding documentation ? I am holding back on any more commits to the tree

Re: [Lazarus] FlipText

2010-10-21 Thread Sven Barth
Am 20.10.2010 23:06, schrieb silvioprog: 2010/10/20 Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com If you're using Lazarus you can do Canvas.TextOut(x, y, Utf8Encode(#$01dd)); When you're using Linux and you want to print on a utf8 stdout you can use

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Vincent Snijders
2010/10/21 Graeme Geldenhuys graemeg.li...@gmail.com: I also wrote a File Filter Mask ide add-on which allows you to customize and define your own file filters that appear in any File Open dialog of Lazarus IDE, but that patch is still not accepted for whatever reason (though I use it here

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 10:40, Vincent Snijders het geskryf: IIRC, it was because you did not use the correct way to save the settings. I am almost certain that is mentioned in the bug report with the patch. And as I remember, I justified my reasons for that design. The mentioned translation issues is

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Mattias Gärtner
Zitat von Michael Van Canneyt mich...@freepascal.org: On Wed, 20 Oct 2010, David Emerson wrote: Hi there, Suppose I have a lazarus source editor open. I would like to, from my command line shell, issue a command to open a new source in the already-open source editor. Is this possible?

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Vincent Snijders
2010/10/21 Graeme Geldenhuys graemeg.li...@gmail.com: Anyway, as I mentioned in that mantis report I am happily using that feature without problems, so it's your (end-users of Lazarus IDE) loss. I think it's a useful feature to have, and others agreed. Yes, I think the consensus is that

[Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Hi, Regarding mantis report (with patch): http://bugs.freepascal.org/view.php?id=15679 We seem to have reached a stalemate in mantis discussions, so I thought I would bring the issue to light in the mailing list (Mantis is not meant for long discussions). Now others can review and comment on

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 11:46, Vincent Snijders het geskryf: resolved with won't fix). And it is nice that you can live with the limitations of the implementation. On the contrary, your and Paul's ideas add limitations to the feature, not mine. Anyway, I started a new message thread regarding this.

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 11:46, Vincent Snijders het geskryf: Yes, I think the consensus is that is a useful feature (it is not resolved with won't fix). And it is nice that you can live with the limitations of the implementation. Please specify what about my implementation do you consider limitations?

[Lazarus] Mantis reports with old attachments

2010-10-21 Thread Graeme Geldenhuys
Hi, Why can't the reporter of a Mantis report, delete old and unused attachments? Having irrelevant attachments lying around in a report just add confusion. Please adjust reporter permissions so we can delete our own attachments. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI

Re: [Lazarus] Mantis reports with old attachments

2010-10-21 Thread Henry Vermaak
On 21/10/10 11:43, Graeme Geldenhuys wrote: Hi, Why can't the reporter of a Mantis report, delete old and unused attachments? Having irrelevant attachments lying around in a report just add confusion. It will add more confusion if people discuss a patch/screenshot in the notes and you delete

Re: [Lazarus] Mantis reports with old attachments

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 12:40, Henry Vermaak het geskryf: It will add more confusion if people discuss a patch/screenshot in the notes and you delete that patch later on. Traceability and history is important in bug reports. Reading or applying the wrong (old) patch(s) is confusing too.

Re: [Lazarus] Mantis reports with old attachments

2010-10-21 Thread Henry Vermaak
On 21/10/10 11:50, Graeme Geldenhuys wrote: Op 2010-10-21 12:40, Henry Vermaak het geskryf: It will add more confusion if people discuss a patch/screenshot in the notes and you delete that patch later on. Traceability and history is important in bug reports. Reading or applying the wrong

Re: [Lazarus] How to jump to start of function

2010-10-21 Thread Frank Church
I knew something was not right, I was using search all the time to find procedures and kept wondering, why is this business so hard and troublesome and remembered that I must be missing something, this is not the way it should be!!. Thanks. On 21 October 2010 00:17, Frank Church

Re: [Lazarus] Mantis reports with old attachments

2010-10-21 Thread Vincent Snijders
2010/10/21 Henry Vermaak henry.verm...@gmail.com: On 21/10/10 11:50, Graeme Geldenhuys wrote: Op 2010-10-21 12:40, Henry Vermaak het geskryf: It will add more confusion if people discuss a patch/screenshot in the notes and you delete that patch later on.  Traceability and history is

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, Graeme Geldenhuys wrote: Hi, Regarding mantis report (with patch): http://bugs.freepascal.org/view.php?id=15679 We seem to have reached a stalemate in mantis discussions, so I thought I would bring the issue to light in the mailing list (Mantis is not meant for long

Re: [Lazarus] Mantis reports with old attachments

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 13:28, Vincent Snijders het geskryf: What attachment do you want to remove? http://bugs.freepascal.org/view.php?id=15679 The following attachments are not needed anymore. 0001-* 0002-* 0003-* Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 13:38, Michael Van Canneyt het geskryf: * The default/standard file filter did not include all file types I wanted - hence the reason they are included as customizable by the end-user. The standard file filters are only imported once (on first time use), thereafter the

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, Graeme Geldenhuys wrote: Op 2010-10-21 13:38, Michael Van Canneyt het geskryf: * The default/standard file filter did not include all file types I wanted - hence the reason they are included as customizable by the end-user. The standard file filters are only

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, Michael Van Canneyt wrote: On Thu, 21 Oct 2010, Graeme Geldenhuys wrote: Op 2010-10-21 13:38, Michael Van Canneyt het geskryf: * The default/standard file filter did not include all file types I wanted - hence the reason they are included as customizable by the

Re: [Lazarus] TThread.WaitFor blocks the main event loop under Linux

2010-10-21 Thread Marco van de Voort
On Tue, Oct 19, 2010 at 10:41:15AM +0200, Michael Schnell wrote: Thread support _might_ be a candidate, as threadvar access could be improved (but maybe it could be improved even without dropping the threadlib binding). OTOH threadlib automatically provides FUTEX access for archs that

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Marco van de Voort
On Wed, Oct 20, 2010 at 07:59:48AM -0500, Andrew Brunner wrote: ?if Accept then ?begin | 1 2 ? ?3 ? ?4 ? 5 Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread A.J. Venter
Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or (conditionx=conditiony) then begin   // code here end else begin   // more code here end; I never got used to having begin

[Lazarus] reissue of style [Re: Verdict of Lazarus 0.9.29]

2010-10-21 Thread Martin
On 21/10/2010 13:58, Marco van de Voort wrote: On Wed, Oct 20, 2010 at 07:59:48AM -0500, Andrew Brunner wrote: ?if Accept then ?begin | 1 2 ? ?3 ? ?4 ? 5 Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 14:38, Michael Van Canneyt het geskryf: Name = 'AllPascalFiles' DisplayName = 'All pascal files' Mask = '*.sql' User edits DisplayName and Mask. 'Name' can be used to track changes. OK, so lets say the above is implemented... now lets walk through a use case. Remember I

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Martin
On 21/10/2010 15:00, Graeme Geldenhuys wrote: Op 2010-10-21 14:38, Michael Van Canneyt het geskryf: Name = 'AllPascalFiles' DisplayName = 'All pascal files' Mask = '*.sql' User edits DisplayName and Mask. 'Name' can be used to track changes. OK, so lets say the above is implemented... now

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 14:28, Martin het geskryf: I am very much with Vincent on the storage. And I do think the correct storage format is a major major point = once it's decided, it is in users xml files, it must be supported forever. Like I said, take a simple feature and over engineer it

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 16:07, Martin het geskryf: then those items that where not user-modified, should follow future changes to IDE defaults The IDE already doesn't work like that, so why must this feature. Code Templates being one example. As well as newly added default should automatically be

[Lazarus] JSON Parser to tree view

2010-10-21 Thread ik
Hello, I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code that does such thing, or at least most of the work ? Thanks, Ido LINESIP websites: http://www.linesip.com

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, Graeme Geldenhuys wrote: Op 2010-10-21 14:38, Michael Van Canneyt het geskryf: Name = 'AllPascalFiles' DisplayName = 'All pascal files' Mask = '*.sql' User edits DisplayName and Mask. 'Name' can be used to track changes. OK, so lets say the above is implemented...

Re: [Lazarus] JSON Parser to tree view

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, ik wrote: Hello, I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code that does such thing, or at least most of the work ? See the tools/jsonviewer

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Martin
On 21/10/2010 15:14, Graeme Geldenhuys wrote: Op 2010-10-21 14:28, Martin het geskryf: I am very much with Vincent on the storage. And I do think the correct storage format is a major major point = once it's decided, it is in users xml files, it must be supported forever. Like I said,

Re: [Lazarus] JSON Parser to tree view

2010-10-21 Thread ik
Thank, that's a great tool, you saved my time and nerves :) Once again FPC and Lazarus for the rescue. Ido On Thu, Oct 21, 2010 at 16:27, Michael Van Canneyt mich...@freepascal.orgwrote: On Thu, 21 Oct 2010, ik wrote: Hello, I wish to use the JSON parser to create some sort of

Re: [Lazarus] TThread.WaitFor blocks the main event loop under Linux

2010-10-21 Thread Michael Schnell
On 10/21/2010 02:53 PM, Marco van de Voort wrote: The current threadlib is global for all *nix, not *nix flavour-architecture specific. I suppose you are right, C program use appropriate header files that provide inline functions for atomic. Same are flavor-architecture specific, providing

Re: [Lazarus] Global dialog file filters feature + patch in mantis

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 16:26, Michael Van Canneyt het geskryf: PS 1. I am merely an observer in this particular discussion. You asked opinions in order to resolve a dispute. I gave mine, Fair enough. The changes list from this discussion are added no my on a rainy day when I have nothing better to

[Lazarus] Apache CGI and dbugintf

2010-10-21 Thread Leonardo M . Ramé
Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver program with no luck. My debugserver isn't receiving any message. Do I have to configure something in Apache to enable IPC? Should it work With just adding dbugintf and doing some SendDebug? -- Leonardo M. Ramé

Re: [Lazarus] open pas file from command line

2010-10-21 Thread Hans-Peter Diettrich
David Emerson schrieb: Suppose I have a lazarus source editor open. I would like to, from my command line shell, issue a command to open a new source in the already-open source editor. Is this possible? It should be possible, by adding a tool that sends the equivalent drag-drop message(s)

Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-21 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: I found the problem! :-) The drive Windows and Lazarus is installed on, ran out of space in the linking phase. Windows 2000 never reported that it is out of space, so it never even occurred to me to look. This is not a Windows problem, because it can occur on

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: I have never seen code indented the way that smart tab algorithm works, so what's the point of it then. Look at C code... DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Apache CGI and dbugintf

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, Leonardo M. Ramé wrote: Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver program with no luck. My debugserver isn't receiving any message. Do I have to configure something in Apache to enable IPC? Should it work With just adding dbugintf and doing

[Lazarus] fpweb - SessionDir bug?

2010-10-21 Thread patspiper
The cookiesession demo project does not create any files in the /tmp folder (Ubuntu 10.04). This could be a permissions issue. I uncommented and set S.SessionDir in the cookiesession demo project to a folder which is writable by all, with no results! Is it a bug? Stephano --

Re: [Lazarus] Apache CGI and dbugintf

2010-10-21 Thread Leonardo M . Ramé
On 2010-10-21 18:40:07 +0200, Michael Van Canneyt wrote: On Thu, 21 Oct 2010, Leonardo M. Ramé wrote: Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver program with no luck. My debugserver isn't receiving any message. Do I have to configure something in Apache to

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Martin
On 20/10/2010 14:12, Graeme Geldenhuys wrote: Op 2010-10-20 14:52, Martin het geskryf: I updated the help: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options#Smart_tabs Hope it is more understandable now. if Accept then begin | 1 234 5 PS: I have never seen code

Re: [Lazarus] fpweb - SessionDir bug?

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, patspiper wrote: The cookiesession demo project does not create any files in the /tmp folder (Ubuntu 10.04). This could be a permissions issue. I uncommented and set S.SessionDir in the cookiesession demo project to a folder which is writable by all, with no results!

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Sven Barth
Am 21.10.2010 15:10, schrieb A.J. Venter: In C there seems to be two popular approaches, one putting the opening { on the same line (this seems to be by far more popular one in languages like python) and the other putting it on it's own line as we normally do with begin. This is the GNU

Re: [Lazarus] TListView compatibility Delphi = Lazarus?

2010-10-21 Thread Alexsander Rosa
Is there an example of TListView's CustomDraw? The following code (found here [1]) did not work: procedure TForm1.ListView1CustomDrawItem(Sender: TCustomListView; Item: TListItem; State: TCustomDrawState; var DefaultDraw: Boolean); const cStripe = $CCFFCC; // colour of alternate list items

Re: [Lazarus] fpweb - SessionDir bug?

2010-10-21 Thread ABorka
It works here. I am also using session cookies from fpweb and they are working here (windows and ubuntu in VMWare). Even have some working projects on go daddy hosting where I even changed the session dir to be under the cgi program so I can check/delete the session cookie files. AB PS:

Re: [Lazarus] fpweb - SessionDir bug?

2010-10-21 Thread ABorka
On 10/21/2010 10:06, patspiper wrote: The cookiesession demo project does not create any files in the /tmp folder (Ubuntu 10.04). This could be a permissions issue. I uncommented and set S.SessionDir in the cookiesession demo project to a folder which is writable by all, with no results! Is it

Re: [Lazarus] FlipText

2010-10-21 Thread silvioprog
Hi guys, sorry for my delay... I made this: function FlipText(AText: string): string; var I: Integer; begin AText := LowerCase(AText); for I := 1 to Length(AText) do begin case AText[I] of 'a': Result := 'ɐ' + Result; 'b': Result := 'q' + Result; 'c': Result := 'ɔ'

Re: [Lazarus] reissue of style [Re: Verdict of Lazarus 0.9.29]

2010-10-21 Thread Alexander Klenin
On Fri, Oct 22, 2010 at 00:15, Martin laza...@mfriebe.de wrote: Next time i explain tabs I do it like this Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 1  2      3  4      5     6      7      8           9    10