Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Mattias Gaertner
On Sat, 02 Apr 2011 00:45:56 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: If a global config is found, but is invalid/incompatible, a local config should be created. Define invalid. That's up to the (already existing) IDE code. Already

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Mattias Gaertner
On Sat, 02 Apr 2011 02:48:06 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: [...] The secondary configs are templates for the primary configs. The installers and administrators can create templates. There exist other opinions as well :-( I explained

Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread Mattias Gaertner
On Fri, 1 Apr 2011 20:54:11 -0500 John Repucci john.repu...@gmail.com wrote: If I have a project that works (ie: compiles correctly...) and I do a Project / Save Project As ... into a different directory with a different name, should I expect that the new project should contain all necessary

Re: [Lazarus] OnGuard component question

2011-04-02 Thread Graeme Geldenhuys
On 2 April 2011 03:36, John Repucci john.repucci@gm wrote: Last year you (Graeme) mentioned that you had split the OnGuard package in two.  Did you release any of your work?  tponguard_lcl.lpk / tponguard.lpk I honestly can't remember, but I'll be able to check for you on Monday when I am

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Martin
On 02/04/2011 00:45, Hans-Peter Diettrich wrote: Martin schrieb: If a global config is found, but is invalid/incompatible, a local config should be created. sounds good at first, but is actually worse. Because this behaviour is unpredictable from the end users view. Unpredictable why?

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Martin
On 02/04/2011 04:33, Hans-Peter Diettrich wrote: Martin schrieb: ...let me explain a bit more what I tried to explain before (and had in my last mail too) It would only help, if you totally abandon all global config. don't even look for a global anymore, only check the exe folder, nowhere

[Lazarus] Major IDE editor problems

2011-04-02 Thread dhkblaszyk
ZeelandNet Webmail I have two major problems with the IDE editor. As they are rather big I cannot believe they were not noted before, so before I will create a bugreport I would like to ask here first. 1. Opening a C file will result in an AV. The file is loaded, but each time you click on

Re: [Lazarus] Major IDE editor problems

2011-04-02 Thread Martin
On 02/04/2011 11:52, dhkblas...@zeelandnet.nl wrote: I have two major problems with the IDE editor. As they are rather big I cannot believe they were not noted before, so before I will create a bugreport I would like to ask here first. 1. Opening a C file will result in an AV. The file is

Re: [Lazarus] Major IDE editor problems

2011-04-02 Thread Alexander Klenin
2011/4/2 dhkblas...@zeelandnet.nl: I have two major problems with the IDE editor. As they are rather big I cannot believe they were not noted before, so before I will create a bugreport I would like to ask here first. 1. Opening a C file will result in an AV. The file is loaded, but each

Re: [Lazarus] Major IDE editor problems

2011-04-02 Thread Mattias Gaertner
On Sat, 02 Apr 2011 12:52:07 +0200 dhkblas...@zeelandnet.nl wrote: ZeelandNet Webmail I have two major problems with the IDE editor. As they are rather big I cannot believe they were not noted before, so before I will create a bugreport I would like to ask here first. 1. Opening a C

Re: [Lazarus] Major IDE editor problems

2011-04-02 Thread dhkblaszyk
You were all right, it was a malfunctioning package of mine. I fixed it in the mean time. Sorry for createing noise here and thanks for your prompt help. Regards, Darius -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
Hi guys. How to I show a picture in CGI app? I tested a fpweb demo, but, without success (acess violation): C:\lazarus\components\fpweb\demo\image Lazarus 0.9.31 r30005 FPC 2.5.1 i386-win32-win32/win64 / XAMPP 1.7.3 Thx. -- Silvio Clécio = Blog -

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread Marcos Douglas
On Sat, Apr 2, 2011 at 10:47 AM, silvioprog silviop...@gmail.com wrote: Hi guys. How to I show a picture in CGI app? I tested a fpweb demo, but, without success (acess violation): C:\lazarus\components\fpweb\demo\image Lazarus 0.9.31 r30005 FPC 2.5.1 i386-win32-win32/win64 / XAMPP 1.7.3

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread Michael Van Canneyt
On Sat, 2 Apr 2011, silvioprog wrote: Hi guys. How to I show a picture in CGI app? I tested a fpweb demo, but, without success (acess violation): C:\lazarus\components\fpweb\demo\image Lazarus 0.9.31 r30005 FPC 2.5.1 i386-win32-win32/win64 / XAMPP 1.7.3 You can check the testsuite

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: BTW, my experiments indicate that putting an environmentoptions.xml into the Lazarus directory (scp) will make the IDE use these settings, but only if there exists no config in the default location. The full config then is written back to the *default* location

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Hans-Peter Diettrich
Martin schrieb: On 02/04/2011 00:45, Hans-Peter Diettrich wrote: Martin schrieb: If a global config is found, but is invalid/incompatible, a local config should be created. sounds good at first, but is actually worse. Because this behaviour is unpredictable from the end users view.

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Where can I find the documentation for the templates? There is not much to know: The secondary have obviously the same format as the primary configs. The values depends on version. They are human readable xml and you should not edit them manually. Use the IDE to

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Hans-Peter Diettrich
Martin schrieb: When multiple directories are in a search path, the search stops on the first item (file...) found. That's common practice, isn't it? I explained below, but I do again. In order for that to work, WITHOUT the user needing to be aware of doing anything. EVERY lazarus must come

Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread Peter Williams
Hi Date: Sat, 2 Apr 2011 10:19:08 +0200 From: nc-gaert...@netcologne.de To: lazarus@lists.lazarus.freepascal.org Subject: Re: [Lazarus] Project / Save Project As ... - expected behavior? On Fri, 1 Apr 2011 20:54:11 -0500 John Repucci john.repu...@gmail.com wrote: If I have a project

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
2011/4/2 Marcos Douglas m...@delfire.net: [] There is a thread talking about JPEG, TAChart and CGI here: http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg18414.html Marcos Douglas I read all posts, but I could not load the picture from a file. :( ps. Sorry for my

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread leledumbo
Would you like to download or display the picture? For displaying, you should use standard HTML's img tag. For downloading, the thread pointed by marcos has an example. -- View this message in context:

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
2011/4/2 Michael Van Canneyt mich...@freepascal.org: You can check the testsuite sources in the SVN repository of FPC: tests/utils/testsuite/utests.pp Michael. Yes. Please, see my incomplete code: [code] var VFPMemoryImage: TFPMemoryImage; begin Handled := True; VFPMemoryImage :=

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
2011/4/2 silvioprog silviop...@gmail.com: [...]    VFPMemoryImage.LoadFromFile('C:\lazarus\images\ide_icon48x48.png', ???); I can paint in fpmemoryimage via canvas, but I also need to paint in fpmemoryimage via external files (PNGs). -- Silvio Clécio

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Mattias Gaertner
On Sat, 02 Apr 2011 14:15:22 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: BTW, my experiments indicate that putting an environmentoptions.xml into the Lazarus directory (scp) will make the IDE use these settings, but only if there exists no config in

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
YES! :}D This code (from C:\lazarus\components\fpweb\demo\image) works for me: [code] var OFN, FN: string; F: TFileStream; begin Handled := True; OFN := 'C:\lazarus\images\actions\arrow_down.png'; FN := OFN; if (FN = '') then raise Exception.Create('This script requires a file

Re: [Lazarus] How to show a picture in a CGI app?

2011-04-02 Thread silvioprog
Resumed code: [code] uses Classes, FileUtil, HTTPDefs, fpWeb, fpHTTP; var VFileStream: TFileStream; begin VFileStream := TFileStream.Create( UTF8ToSys('C:\lazarus\images\ide_icon48x48.png' { Or your picture. }), fmOpenRead); try AResponse.ContentType := 'image/png';

Re: [Lazarus] Lazarus config woes

2011-04-02 Thread Mattias Gaertner
On Sat, 02 Apr 2011 16:17:25 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: Where can I find the documentation for the templates? There is not much to know: The secondary have obviously the same format as the primary configs. The values depends on

[Lazarus] Test

2011-04-02 Thread Giuliano Colla
Please ignore. Just a test -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] UniqueInstance issue

2011-04-02 Thread Giuliano Colla
In an application I'm currently developing, meant to run under RHEL5, I needed to ensure that no multiple instances were running, so I installed the UniqueInstance component: http://sourceforge.net/projects/lazarus-ccr/files/Unique%20Instance/Unique%20Instance%200.2/ Under RHEL5, the only usable

Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread John Repucci
On Fri, 1 Apr 2011 20:54:11 -0500 John Repucci john.repu...@gmail.com wrote: If I have a project that works (ie: compiles correctly...) and I do a Project / Save Project As ... into a different directory with a different name, should I expect that the new project should contain

Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread John Repucci
I believe that currently it is necessary to use the menu View / Units... for each unit then do a File / Save as... for each of the units. I also think that when a unit is saved that it's form is automatically saved... someone please correct me if this is wrong. Only the lpi and lpr files

Re: [Lazarus] Commenting.

2011-04-02 Thread Martin
On 15/03/2011 10:16, Kjow wrote: Hi all! Everytime I need to comment a part of the code with (e.g. { ... } ) and I have some parts of code minimized with the -/+ on the left of editor (Please excuse me, I don't know the technical term - e.g.

[Lazarus] MDI implementation

2011-04-02 Thread Daniel Franzini
Hi there. I'm trying to write a MDI application in Lazarus (Win32/Vista, Lazarus 0.9.31). I created the main form and set its FormStyle property to fsMDIForm. Then I created the child form and set its FormsStyle to fsMDIChild. I also created a menu where I can start a new form. I moved the

Re: [Lazarus] MDI implementation

2011-04-02 Thread Peter Williams
Hi Daniel, Date: Sat, 2 Apr 2011 19:02:46 -0300 From: daniel.franz...@gmail.com To: lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] MDI implementation Hi there. I'm trying to write a MDI application in Lazarus (Win32/Vista, Lazarus 0.9.31). I created the main form and set its

Re: [Lazarus] UniqueInstance issue

2011-04-02 Thread Luiz Americo Pereira Camara
On 2/4/2011 15:18, Giuliano Colla wrote: In an application I'm currently developing, meant to run under RHEL5, I needed to ensure that no multiple instances were running, so I installed the UniqueInstance component: