Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread Juha Manninen
Hello. Under Linux with distros supporting the freedesktop.org standards you can execute the 'xdg-open' command. This will use the mime-type and the each users preference on that system. This works for URL's too. Great! For Windows you can use a wrapper for ShellExecute function. I copied my

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread dmitry boyarintsev
On Sun, Jan 24, 2010 at 12:05 PM, Juha Manninen juha.manni...@phnet.fi wrote: If OSX supports your 'xdg-open' then most environments are covered. It doesn't, by default. There's an external tool 'open' available for such task. But, it's better to use launcher API (see OpenURL darwin code).

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread Graeme Geldenhuys
2010/1/24 Juha Manninen juha.manni...@phnet.fi: If OSX supports your 'xdg-open' then most environments are covered. I doubt it will. As far as I know xdg tools are for Linux only (maybe other unix OSes too, but ain't sure). This makes sense only with GUI. Command line progs can't use it.

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: 2010/1/24 Juha Manninen juha.manni...@phnet.fi: This should be included in FPC/Lazarus libraries, but which one? I know that Lazarus IDE already uses xdg-open under Linux for OpenURL - before trying other known web browsers. As for where in LCL such code

Re: [Lazarus] CSV parser class

2010-01-24 Thread Marco van de Voort
On Sun, Jan 24, 2010 at 08:41:02AM +0200, Graeme Geldenhuys wrote: 2010/1/23 Alexander Klenin kle...@gmail.com: Have you seen the built-in CSV support in TStrings? That's interesting. Where is it? I am unable to find it it Classes unit. I also didn't know about this. strictdelimiter

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread Juha Manninen
Amazing, OpenURL already implements what you are asking! I tested with a local '.patch' file and it opened nicely in Kompare (KDE prog for diffs). OpenURL uses ShellExecuteW for Windows, 'xdg-open' for *nix and some API functions for Darwin. There seems to be lots of quality code in

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread dmitry boyarintsev
On Sun, Jan 24, 2010 at 2:08 PM, Juha Manninen juha.manni...@phnet.fi wrote: One thing is missing though. There is no portable way of getting application's icon like ExtractAssociatedIcon does in Windows? This is somewhat related to opening the file. It depends on what you exactly need. If you

Re: [Lazarus] CSV parser class

2010-01-24 Thread Juha Manninen
Hi, I think there is need for an OPTIMIZED code for splitting and joining. TStringList.DelimitedText is good when speed is not very important. See: http://www.mail-archive.com/fpc-pas...@lists.freepascal.org/msg18548.html I didn't look at tiOPF project's implementation so I don't know how

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
Hello, dmitry I don´t think that Lazarus is working as this. http://wiki.lazarus.freepascal.org/IDE_Development#Translated_compiler_messages was added recently by Mattias The purpose of new code is substitute the error string treatments by the message numbers As an example see this excerpt:

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: Anyway, to get your code in the CCR, I normally email Vincent the code in private. Thought I must say, I don't really see the point of the CCR. I guess that is why you missed http://wiki.lazarus.freepascal.org/OnGuard ;-) Many of those projects need to be

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: One good example of this is DCPCrypt. TBH, I am glad it is in Lazarus-CCR or at least mentioned on Lazarus-CCR, instead of lying on barko's hard disk, even though it didn't seem to be maintained anymore. Vincent -- ___

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
On Sun, Jan 24, 2010 at 6:33 PM, Marcelo B de Paula mar...@terra.com.br wrote: If i change compiler messages by loading another errorxx.msg in IDE or use a different errorxx.msg to compile the compiler itself, the first thing i´ve noticed is that QuickFixItems stop working, and message icons

Re: [Lazarus] Lazarus is invisible?

2010-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: 2010/1/23 Mike Parr mikep...@live.com: It seems to me that this is a major package, but it has (to my mind) zero prominence on the web. Being a Delphi user too, I used to mention Lazarus and Free Pascal to people in the Embarcadero newsgroups that complain about

Re: [Lazarus] CSV parser class

2010-01-24 Thread Hans-Peter Diettrich
Juha Manninen schrieb: Splitting can be slow. It creates and copies strings and allocates small chunks of memory. No way around that, unless you use PChars and zero terminated strings, which are slow in any further processing. There should be variations for those functions. Sometimes you

[Lazarus] FCL-Web and new WebDesign packages

2010-01-24 Thread Joost van der Sluis
Hi all, Some of you already know that I work on more web-components for Lazarus/Freepascal. I've created a new package (zipfile) which contains several packages which adds extra web-functionality too Lazarus. You can find the package here: http://services.cnoc.nl/lazarus/index/fclweb

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
Indeed, quick fixes have hardcoded English messages. It's possible to use translated messages, with out using message numbers, but it's much harder job than using -vq switch directly. You're free to provide the patch for fixing the problem (and using -vq switch). But you should make the patch

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
If you've a patch ready please send it to bugs.freepascal.org as well, creating the issue. thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Powered by - Logo

2010-01-24 Thread Michael Fuchs
Hello, are there any logos which I can use in my software to show that it is developed with Lazarus? Maybe my eyes are getting worser in my age, but I have not found anything. thx Michael -- ___ Lazarus mailing list

Re: [Lazarus] Powered by - Logo

2010-01-24 Thread Vladimir Zhirov
Michael Fuchs wrote: are there any logos which I can use in my software to show that it is developed with Lazarus? Of course! See http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/images/powered_by.png?view=coroot=lazarus

Re: [Lazarus] Powered by - Logo

2010-01-24 Thread Brad Campbell
Michael Fuchs wrote: Hello, are there any logos which I can use in my software to show that it is developed with Lazarus? Maybe my eyes are getting worser in my age, but I have not found anything. Try in lazarus/images/ Brad -- Dolphins are so intelligent that within a few weeks they can

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
Indeed, quick fixes have hardcoded English messages. It's possible to use translated messages, with out using message numbers, but it's much harder job than using -vq switch directly. You're free to provide the patch for fixing the problem (and using -vq switch). But you should make the patch

[Lazarus] AV in Wince/ARM when run app.

2010-01-24 Thread Zaher Dirkey
I cannot run my application on WinCE (WM 5 and WM 6.1) when i remote debug it crash in application.inc line 386 Res := FindResource(HInstance, PChar('MAINICON'), RT_GROUP_ICON); There is problem about PChar (see fpc_pwidechar_to_ansistr) I used fpc 2.4.0 and the last Lazarus from SVN.

Re: [Lazarus] AV in TGtk2WSCustomListBox.SetItemIndex

2010-01-24 Thread Flávio Etrusco
Thanks! Turned out I still had fpc 2.4rc1 on this box :-$ Updating it fixed the problem. Best regards, Flávio On Sun, Jan 24, 2010 at 3:18 PM, Marc Weustink m...@dommelstein.net wrote: Flávio Etrusco wrote: 2010/1/23 Flávio Etrusco flavio.etru...@gmail.com: On Sat, Jan 23, 2010 at 5:09 AM,

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vladimir Zhirov
Hans-Peter Diettrich wrote: If I'm wrong I would appreciate if someone point out my mistake. No, the D2006 extension strictdelimiter fixes this, and FPC has it too. Thanks, I have not known this. I've added kind of an How To topic to TStrings Great, it would be very useful to look at it. I

Re: [Lazarus] Lazarus is invisible?

2010-01-24 Thread Graeme Geldenhuys
2010/1/24 Hans-Peter Diettrich drdiettri...@aol.com: Of course, I had the same experience. OTOH you'll get many complaints about what's not working as expected in Lazarus, what could serve to assign priorities to the development items. And it's because of complains and negative messages like

Re: [Lazarus] CSV parser class

2010-01-24 Thread Graeme Geldenhuys
2010/1/24 Vladimir Zhirov vvzh.li...@gmail.com: As of tiOPF CSV implementation, I'm afraid it is already too late :) In case you were interested. Here is the documentation of the unit I wrote. It is stand-alone, so doesn't require tiOPF at all.

Re: [Lazarus] Powered by - Logo

2010-01-24 Thread Michael Fuchs
Graeme Geldenhuys schrieb: 2010/1/24 Vladimir Zhirov vvzh.li...@gmail.com: I especially like the logo I get from Graeme, if memory serves me. Yes, I like my design too. :-) I also use it in our products. The one I use has a slightly different font, though I have a few variations of fonts,

Re: [Lazarus] Lazarus is invisible?

2010-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: 2010/1/24 Hans-Peter Diettrich drdiettri...@aol.com: Of course, I had the same experience. OTOH you'll get many complaints about what's not working as expected in Lazarus, what could serve to assign priorities to the development items. And it's because of complains

Re: [Lazarus] CSV parser class

2010-01-24 Thread Hans-Peter Diettrich
Vladimir Zhirov schrieb: Hans-Peter Diettrich wrote: If I'm wrong I would appreciate if someone point out my mistake. No, the D2006 extension strictdelimiter fixes this, and FPC has it too. Thanks, I have not known this. I've added kind of an How To topic to TStrings Great, it would be

Re: [Lazarus] Lazarus is invisible?

2010-01-24 Thread waldo kitty
On 1/24/2010 22:51, Hans-Peter Diettrich wrote: I also couldn't find how to reach that page, from some typical entry page. It's a shame how Lazarus references are hidden in third or deeper level pages on the FPC site :-( +100 :? -- ___ Lazarus

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vladimir Zhirov
Graeme Geldenhuys wrote: In case you were interested. Here is the documentation of the unit I wrote. It is stand-alone, so doesn't require tiOPF at all. http://opensoft.homeip.net/tiopf/core/titokenlibrary/index.html It can be used for more than just CSV, and can handle a certain amount

Re: [Lazarus] bug report: I had to laugh

2010-01-24 Thread Graeme Geldenhuys
Alexander Klenin wrote: Yes, this irritated me too. Attached patch should solve the issue. Unfortunately, Mantis is unresponsive for me now, but as soon as it is up again, I will post the patch there too. I can confirm that the patch works correctly. I used Lazarus 0.9.28.3 rUnknown with

[Lazarus] Lazarus fails to find fpcres

2010-01-24 Thread Graeme Geldenhuys
Hi, I normally don't add FPC bin directory to my PATH environment variable, because I use multiple versions of FPC. But around the time FPC 2.4.0 was released, Lazarus IDE cannot find fpcres when I rebuild the IDE. So I have to open a command prompt, set the PATH environment variable, and then