[Lazarus] Build Mode: Packages vs Project

2011-05-23 Thread Graeme Geldenhuys
Hi, My one project uses 5 packages. If I want to create a release version, must I set the Project + the 5 packages all to "release build profile" and then recompile each one? Or is it sufficient to only change the Project's build mode to "release"? [leaving the 5 package's compiler settings as-is

Re: [Lazarus] Class operators

2011-05-23 Thread Graeme Geldenhuys
On 24/05/2011 02:02, Jose Luis wrote: > > What does this mean ?, it was a SpeedButton that triggered the action, > but I received a TAction object. The SpeedButton triggered the action (eg; acButton.Execute), the Action then triggered the event handler. Possible? Does the SpeedButton in question

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Graeme Geldenhuys
On 23/05/2011 17:10, Alexander Klenin wrote: > > But it is absent on Windows, so no better than Arial as a cross-platform font It's free, so deploy it with your application, or use Arial under Windows and Liberation under Linux/*BSD etc. As the wiki site says, they are metric compatible so look p

Re: [Lazarus] fpWeb and static content

2011-05-23 Thread Lee Jenkins
On 5/23/2011 9:29 PM, ABorka wrote: What is the typical strategy to server up static content with fpWeb? JS, css files, given that its handler centric. Create a default handler that checks for file extension in the .PathInfo? -- Warm Regards, Lee Why would you need fpweb to serve static cont

Re: [Lazarus] fpWeb and static content

2011-05-23 Thread ABorka
What is the typical strategy to server up static content with fpWeb? JS, css files, given that its handler centric. Create a default handler that checks for file extension in the .PathInfo? -- Warm Regards, Lee Why would you need fpweb to serve static content? Your web server does that. CGI/F

Re: [Lazarus] Class operators

2011-05-23 Thread Jose Luis
On Tue, 2011-05-24 at 00:35 +0100, Martin wrote: > On 24/05/2011 00:17, Jose Luis wrote: > > On Tue, 2011-05-24 at 00:30 +0200, Mattias Gaertner wrote: > >> On Mon, 23 May 2011 18:06:31 -0400 > >> Jose Luis wrote: > >> > >>> Hi all: > >>> > >>> I've tried to cast the argument 'Sender' from a call

[Lazarus] fpWeb and static content

2011-05-23 Thread Lee Jenkins
What is the typical strategy to server up static content with fpWeb? JS, css files, given that its handler centric. Create a default handler that checks for file extension in the .PathInfo? -- Warm Regards, Lee -- ___ Lazarus mailing list Lazaru

Re: [Lazarus] TFPWebModule.ActionVar

2011-05-23 Thread Lee Jenkins
On 5/23/2011 4:19 PM, ABorka wrote: What is it used for? I have a project using the latter for example. In that project all the URLs are looking something like: https://www.somewebsite.com/mymodule/2C5DC93248CB271880F576D6F1D9?4384498578034E573B4796C1 No cookies used for anything at all for

Re: [Lazarus] Class operators

2011-05-23 Thread Martin
On 24/05/2011 00:17, Jose Luis wrote: On Tue, 2011-05-24 at 00:30 +0200, Mattias Gaertner wrote: On Mon, 23 May 2011 18:06:31 -0400 Jose Luis wrote: Hi all: I've tried to cast the argument 'Sender' from a call to an event procedure, but it didn't work. The event is triggered by a TSpeedButto

Re: [Lazarus] Class operators

2011-05-23 Thread Jose Luis
On Tue, 2011-05-24 at 00:30 +0200, Mattias Gaertner wrote: > On Mon, 23 May 2011 18:06:31 -0400 > Jose Luis wrote: > > > Hi all: > > > > I've tried to cast the argument 'Sender' from a call to an event > > procedure, but it didn't work. The event is triggered by a TSpeedButton > > push, and the

Re: [Lazarus] Class operators

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 18:06:31 -0400 Jose Luis wrote: > Hi all: > > I've tried to cast the argument 'Sender' from a call to an event > procedure, but it didn't work. The event is triggered by a TSpeedButton > push, and the code of the action call contain the sentence: > > -- if Sender is TSpeed

[Lazarus] Class operators

2011-05-23 Thread Jose Luis
Hi all: I've tried to cast the argument 'Sender' from a call to an event procedure, but it didn't work. The event is triggered by a TSpeedButton push, and the code of the action call contain the sentence: -- if Sender is TSpeedButton then -- buttn:=TSpeedButton(Sender); The code compile w

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Zaher Dirkey
On Mon, May 23, 2011 at 4:00 PM, Michael Schnell wrote: > On 05/23/2011 03:45 PM, Mark Morgan Lloyd wrote: > >> >> how long has anybody run each test program. >> > The known problem with synchronize is that the event only is acknowledged > when some GUI event occurs, too. > > I am not aware of a

Re: [Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

2011-05-23 Thread cobines
2011/5/23 Mattias Gaertner : > On Mon, 23 May 2011 22:07:58 +0200 > cobines wrote: > >> Hello. >> >> In TWinControl.Destroy there is code: >> >>   while n > 0 do >>   begin >>     Control := Controls[n - 1]; >>     Remove(Control);   <-- >>      ... >>     Control.Parent := nil; <-- > > That one w

Re: [Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 22:07:58 +0200 cobines wrote: > Hello. > > In TWinControl.Destroy there is code: > > while n > 0 do > begin > Control := Controls[n - 1]; > Remove(Control); <-- > ... > Control.Parent := nil; <-- That one was not needed any more. I removed it. >

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 18:31:03 +0200 Mattias Gaertner wrote: > On Mon, 23 May 2011 16:05:24 +0200 (CEST) > michael.vancann...@wisa.be wrote: > > > Hi, > > > > Is there a reason why the LCL is no longer part of the items in the build > > profiles ? > > The LCL is now a normal package. No need for

Re: [Lazarus] TFPWebModule.ActionVar

2011-05-23 Thread ABorka
What is it used for? -- Warm Regards, Lee There can be many uses for it, but not always necessary of course. It is basically a way to pass the action name to fpweb as a parameter. From the simplest query parameter passing the action name, to the more difficult way of handling encrypted actio

[Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

2011-05-23 Thread cobines
Hello. In TWinControl.Destroy there is code: while n > 0 do begin Control := Controls[n - 1]; Remove(Control); <-- ... Control.Parent := nil; <-- n := ControlCount; end; In Remove() which is non-virtual: procedure TWinControl.Remove(AControl : TControl); begin if

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 20:49:04 +0200 (CEST) Michael Van Canneyt wrote: > > > On Mon, 23 May 2011, Martin wrote: > > > On 23/05/2011 15:05, michael.vancann...@wisa.be wrote: > >> > >> I'd like to have a build profile where I tell the IDE to recompile the > >> FCL/LCLBase/LCL packages as part of

Re: [Lazarus] Lazarus manager - Linux

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 15:47:59 -0300 silvioprog wrote: > Hi. > > The scrips avaliable in > "http://wiki.lazarus.freepascal.org/Lazarus_Manager"; are not > compatible with FPC-2.5.1 on Linux. I wonder how you found this page. The Wiki says that no page links to this page. > What is the best ste

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 20:48:04 +0200 (CEST) Michael Van Canneyt wrote: > [...] > > a) Open package FCL and click compile. Because almost all packages > > depend on that package the others will be recompiled automatically when > > needed. > > Well, this is what I do now. But all this does not expla

Re: [Lazarus] TFPWebModule.ActionVar

2011-05-23 Thread Lee Jenkins
On 5/23/2011 3:12 PM, Michael Van Canneyt wrote: On Mon, 23 May 2011, Lee Jenkins wrote: What is it used for? There are 2 ways to specify what web module/action should be executed: /path/to/cgi/mymodule/myaction or /path/to/cgi?modulevar=mymodule&actionvar=myaction ActionVar determines th

Re: [Lazarus] TFPWebModule.ActionVar

2011-05-23 Thread Michael Van Canneyt
On Mon, 23 May 2011, Lee Jenkins wrote: What is it used for? There are 2 ways to specify what web module/action should be executed: /path/to/cgi/mymodule/myaction or /path/to/cgi?modulevar=mymodule&actionvar=myaction ActionVar determines the name of the query variable used to determine the

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Michael Van Canneyt
On Mon, 23 May 2011, Martin wrote: On 23/05/2011 15:05, michael.vancann...@wisa.be wrote: I'd like to have a build profile where I tell the IDE to recompile the FCL/LCLBase/LCL packages as part of the build process. As it is now, I must manually recompile clean FCL/LCLBase/LCL before I can

[Lazarus] Lazarus manager - Linux

2011-05-23 Thread silvioprog
Hi. The scrips avaliable in "http://wiki.lazarus.freepascal.org/Lazarus_Manager"; are not compatible with FPC-2.5.1 on Linux. What is the best step to install the FPC-2.5.1 and Lazarus-0.9.31 on Ubuntu (11.04)? Thanks for any response. -- Silvio Clécio =

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Michael Van Canneyt
On Mon, 23 May 2011, Mattias Gaertner wrote: On Mon, 23 May 2011 16:05:24 +0200 (CEST) michael.vancann...@wisa.be wrote: Hi, Is there a reason why the LCL is no longer part of the items in the build profiles ? The LCL is now a normal package. No need for a special dialog. I'd like to h

[Lazarus] TFPWebModule.ActionVar

2011-05-23 Thread Lee Jenkins
What is it used for? -- Warm Regards, Lee -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Martin
On 23/05/2011 15:05, michael.vancann...@wisa.be wrote: I'd like to have a build profile where I tell the IDE to recompile the FCL/LCLBase/LCL packages as part of the build process. As it is now, I must manually recompile clean FCL/LCLBase/LCL before I can rebuild lazarus. (after e.g. the FCL

Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marco van de Voort
On Mon, May 23, 2011 at 01:26:11PM -0300, Marcos Douglas wrote: > > > > You say it like you think that is a bad thing :-) > > Not a bad thing, but in open sources projects, that you can share > already done codes, I think that could be a waste of time... not all > time, not in this particulary pro

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Terry A. Haimann
Bart wrote: >On 5/23/11, Mattias Gaertner wrote: > >>> I'm not sure I understand you on this. >>> What should I delete? >> >> The entries about packages like LCL and IDEIntf. >> Only IDE and Examples are left. >> You can get the defaults by: >> Close IDE, remove ~/.lazarus/miscellaneousoptions

Re: [Lazarus] LCL not in build profiles ?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 16:05:24 +0200 (CEST) michael.vancann...@wisa.be wrote: > Hi, > > Is there a reason why the LCL is no longer part of the items in the build > profiles ? The LCL is now a normal package. No need for a special dialog. > I'd like to have a build profile where I tell the IDE t

Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marcos Douglas
On Mon, May 23, 2011 at 1:19 PM, Marco van de Voort wrote: > On Tue, May 17, 2011 at 10:45:45AM -0300, Marcos Douglas wrote: >> But it's also reinventing the wheel, no? > > You say it like you think that is a bad thing :-) Not a bad thing, but in open sources projects, that you can share already

Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marco van de Voort
On Tue, May 17, 2011 at 10:45:45AM -0300, Marcos Douglas wrote: > But it's also reinventing the wheel, no? You say it like you think that is a bad thing :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepasc

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Alexander Klenin
On Tue, May 24, 2011 at 00:14, Graeme Geldenhuys wrote: > On 22/05/2011 23:15, Alexander Klenin wrote: >> Or maybe you want to change the font name from 'Arial'. >> Is there a cross-platform name for "default sans-serif" font in FreeType? >> > > 'Liberation Sans' and all other Liberation style fon

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Alexander Klenin
On Tue, May 24, 2011 at 00:43, Leonardo M. Ramé wrote: >> > Maybe the freetype unit works different under BSD? >> >> Or maybe you want to change the font name from 'Arial'. >> Is there a cross-platform name for "default sans-serif" font in FreeType? > > How do you know the problem is because FreeT

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Bart
On 5/23/11, Mattias Gaertner wrote: >> I'm not sure I understand you on this. >> What should I delete? > > The entries about packages like LCL and IDEIntf. > Only IDE and Examples are left. > You can get the defaults by: > Close IDE, remove ~/.lazarus/miscellaneousoptions.xml. I will do that. >

[Lazarus] Free Pascal 2.4.4 available (fixed links)

2011-05-23 Thread Marco van de Voort
Something went wrong with the download links; the links were still pointing towards the beta. Here are the correct links: ftp://193.224.143.39/pub/fpc/dist/2.4.4/ and ftp://freepascal.stack.nl/pub/fpc/dist/2.4.4/ Note: the main ftp server is currently being migrated, that's why there is a

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/23/2011 03:45 PM, Mark Morgan Lloyd wrote: how long has anybody run each test program. The known problem with synchronize is that the event only is acknowledged when some GUI event occurs, too. Yes, I hit that one very quickly so added a live time display at the

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Michael Schnell
On 05/23/2011 03:45 PM, Mark Morgan Lloyd wrote: how long has anybody run each test program. The known problem with synchronize is that the event only is acknowledged when some GUI event occurs, too. I am not aware of any long-time running problems. -Michael --

[Lazarus] LCL not in build profiles ?

2011-05-23 Thread michael . vancanneyt
Hi, Is there a reason why the LCL is no longer part of the items in the build profiles ? I'd like to have a build profile where I tell the IDE to recompile the FCL/LCLBase/LCL packages as part of the build process. As it is now, I must manually recompile clean FCL/LCLBase/LCL before I can rebui

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/23/2011 01:31 PM, Mark Morgan Lloyd wrote: But for how long? The svn version of GTK2 is working since a few weeks. I can't comment on "official" distributions or different Widget Types. No, I mean how long has anybody run each test program. I had a situation tha

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Leonardo M . Ramé
On 2011-05-23 08:15:47 +1100, Alexander Klenin wrote: > On Mon, May 23, 2011 at 07:19, Mattias Gaertner > wrote: > >> [FORMS.PP] ExceptionOccurred > >>   Sender=FreeTypeException > >>   Exception=Error 10 while making string bitmaps step 4 > > > > Maybe the freetype unit works different under BSD?

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Graeme Geldenhuys
On 22/05/2011 23:15, Alexander Klenin wrote: > Or maybe you want to change the font name from 'Arial'. > Is there a cross-platform name for "default sans-serif" font in FreeType? > 'Liberation Sans' and all other Liberation style fonts are metric compatible with Arial. It is included as standard

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Michael Schnell
On 05/23/2011 01:31 PM, Mark Morgan Lloyd wrote: But for how long? The svn version of GTK2 is working since a few weeks. I can't comment on "official" distributions or different Widget Types. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazar

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-23 Thread Mattias Gaertner
On Sun, 22 May 2011 12:16:16 +0200 Mattias Gaertner wrote: >[...] > > Years ago when tiOPF Core still had GUI dependencies, I couldn't run a > > console based test suite without an X11 install. Your problem sounds > > similar. I think LCL (even the NoGUI widgetset) still pulls in GUI > > dependen

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 14:55:29 +0200 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > >> I used to be able to do a "build (clean) lcl" from within the IDE, now > >> I cannot anymore. > > > > The LCL is now a normal package. It will be compiled automatically or > > you can open the pack

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: I used to be able to do a "build (clean) lcl" from within the IDE, now I cannot anymore. The LCL is now a normal package. It will be compiled automatically or you can open the package and click "Compile". I just found a reason, why this feature is problematic. When

Re: [Lazarus] Getting update rect/region in Windows

2011-05-23 Thread Hans-Peter Diettrich
Max Vlasov schrieb: I must admit I was wrong saying that ClipRect doesn't provide the information about updating areas. It does, partly my misunderstanding came from the naming change in Delphi. Usually win32 rect/region api functions comes in pairs with similar names, but ClipRect property is

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/22/2011 03:36 PM, Zaher Dirkey wrote: Hi, i have multithreaded gui Lazarus application (socket server), that thread call the gui function (open file), i used Synchronize for that read with function ShowFile It is work fine with Windows, but in Linux (OpenSuse 11) th

Re: [Lazarus] fpWeb FCGI Setup

2011-05-23 Thread Lee Jenkins
On 5/22/2011 11:32 PM, ABorka wrote: Hi all, I'm trying to get fcgi setup and running on my windows box so I can test some of modules and I'm still try to figure out what I need to do. A sample fcgi project produces an exception when run "Failed to open input handle passed from server. Socket e

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Mattias Gaertner
On Mon, 23 May 2011 12:22:39 +0200 Bart wrote: > Mattias, > > >> Also I noticed that in this dialog, when I select (from advanced > >> button) build LCL, then press build, it does exactly nothing at all. > >> This is after I changed one of the LCL's source files... > >> > >> In the old dialog, I

Re: [Lazarus] Why does Lazarus insist on rebuilding the LCL?

2011-05-23 Thread Bart
Mattias, >> Also I noticed that in this dialog, when I select (from advanced >> button) build LCL, then press build, it does exactly nothing at all. >> This is after I changed one of the LCL's source files... >> >> In the old dialog, I could do build LCL clean, but this option no >> longer seems t

Re: [Lazarus] Wiki Down

2011-05-23 Thread Vincent Snijders
2011/5/23 Torsten Bonde Christiansen : > It seems that the wiki is down at the moment? The rest of > lazarus.freepascal.org seem to be working fine though. The wiki is back. It is on a different server from most of the other lazarus.freepascal.org sites. Vincent -- __

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Michael Schnell
On 05/23/2011 10:21 AM, Michael Schnell wrote: .. the most recent LCL version in the svn. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Synchronize problem in linux

2011-05-23 Thread Michael Schnell
On 05/22/2011 03:36 PM, Zaher Dirkey wrote: Hi, i have multithreaded gui Lazarus application (socket server), that thread call the gui function (open file), i used Synchronize for that read with function ShowFile It is work fine with Windows, but in Linux (OpenSuse 11) the procedure ShowFile no

Re: [Lazarus] Getting update rect/region in Windows

2011-05-23 Thread Max Vlasov
On Mon, May 23, 2011 at 12:43 AM, Hans-Peter Diettrich wrote: > Max Vlasov schrieb: > > > Ok, another example. Imagine that two alpha png is merged and drawed on >> the form on the fly. >> > > Is that on-the-fly merging really necessary? > > > And you drag a small window over this form. My expe

[Lazarus] Wiki Down

2011-05-23 Thread Torsten Bonde Christiansen
It seems that the wiki is down at the moment? The rest of lazarus.freepascal.org seem to be working fine though. Kind regards, Torsten Bonde Christiansen. -- Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen.