Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Graeme Geldenhuys
On 18 May 2011 20:45, Leonardo M. Ramé wrote: The conflict is between interfaces unit and FreeBSD on a headless machine (without graphical user interface). Years ago when tiOPF Core still had GUI dependencies, I couldn't run a console based test suite without an X11 install. Your problem

[Lazarus] Getting update rect/region in Windows

2011-05-22 Thread Max Vlasov
Hi, I encountered a problem I don't know how to solve. Some background. Any OS does a great job avoiding unnecessary drawing even if the program tries to draw everything in the window. But there are exceptions. - There are some functions, for example region-related in windows that nevertheless

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 11:33:06 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 18 May 2011 20:45, Leonardo M. Ramé wrote: The conflict is between interfaces unit and FreeBSD on a headless machine (without graphical user interface). Years ago when tiOPF Core still had GUI

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

2011-05-22 Thread Zaher Dirkey
2011/5/22 Max Vlasov max.vla...@gmail.com Hi, I encountered a problem I don't know how to solve. Some background. Any OS does a great job avoiding unnecessary drawing even if the program tries to draw everything in the window. But there are exceptions. - There are some functions, for

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Sun, May 22, 2011 at 20:33, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hope that helps for now, but as I said, the actual problem lies with TAChart, than needs to be fixed. I am still of the opinion that the actual problem lies in LCL design, which is being fixed, but slowly, since it

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Sun, May 22, 2011 at 21:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: TAChart needs to be refactored so as to have a non-GUI and GUI portion. This is the only true solution. A fpcanvas solution would be useful. TAChart already has FPCanvas back-end. See nogui demo for an example.

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

2011-05-22 Thread Max Vlasov
2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com Hi, I encountered a problem I don't know how to solve. In Delphi I used the following trick. In the WM_Paint before inheried call I got update region with successive calls to GetUpdateRect (to determine if

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Michael Van Canneyt
On Sun, 22 May 2011, Alexander Klenin wrote: On Sun, May 22, 2011 at 21:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: TAChart needs to be refactored so as to have a non-GUI and GUI portion. This is the only true solution. A fpcanvas solution would be useful. TAChart already has

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Sun, May 22, 2011 at 22:50, Michael Van Canneyt mich...@freepascal.org wrote: TAChart already has FPCanvas back-end. See nogui demo for an example. I think Mattias meant that if TAChart was based on fpcanvas alone, it would work without nogui, and would still work in all other LCL apps.

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Marco van de Voort
On Sun, May 22, 2011 at 12:16:16PM +0200, Mattias Gaertner wrote: No, the nogui widgetset does not pull in any GUI libs. For example lazbuild under linux: linux-vdso.so.1 libc.so.6 /lib64/ld-linux-x86-64.so.2 Under OS X it uses iconv and carbon framework. This is

[Lazarus] svn update problems (again)

2011-05-22 Thread Bart
I tried to update Lazarus (cuurently r29157). bart@simenon:~/svnroot/lazarus svn update ... Acomponents/synedit/languages/syndesignstringconstants.ru.po Acomponents/synedit/languages/synhighlighterunixshellscript.pt_BR.po svn: Failed to add file

[Lazarus] Synchronize problem in linux

2011-05-22 Thread Zaher Dirkey
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 not called. I used in the main project file

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Leonardo M . Ramé
On 2011-05-21 17:56:23 +0200, Marco van de Voort wrote: On Wed, May 18, 2011 at 03:45:43PM -0300, Leonardo M. Ram? wrote: The conflict is between interfaces unit and FreeBSD on a headless machine (without graphical user interface). There is an open bugreport for that.

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Michael Van Canneyt
On Sun, 22 May 2011, Alexander Klenin wrote: On Sun, May 22, 2011 at 22:50, Michael Van Canneyt mich...@freepascal.org wrote: TAChart already has FPCanvas back-end. See nogui demo for an example. I think Mattias meant that if TAChart was based on fpcanvas alone, it would work without

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Leonardo M . Ramé
On 2011-05-22 22:20:54 +1100, Alexander Klenin wrote: On Sun, May 22, 2011 at 21:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: TAChart needs to be refactored so as to have a non-GUI and GUI portion. This is the only true solution. A fpcanvas solution would be useful. TAChart

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

2011-05-22 Thread Max Vlasov
2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com 2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com Hi, I encountered a problem I don't know how to solve. In Delphi I used the following trick. In the WM_Paint before

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

2011-05-22 Thread Hans-Peter Diettrich
Max Vlasov schrieb: - There are some functions, for example region-related in windows that nevertheless process full job even if the area the developer is drawing is not included in the window update region - There are internal off-screen manipulation so the developer himself have to do the

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

2011-05-22 Thread Hans-Peter Diettrich
Bart schrieb: Every time I update Lazarus, I rebuild it from commandline: make clean all OPT='-gl' Then when I open the start Lazarus and want to build the last project I was working on, it immediately rebuilds the enitre LCL (I thought I had just done so by using make clean all) It may help

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

2011-05-22 Thread Henry Vermaak
On 22 May 2011 13:37, Bart bartjun...@gmail.com wrote: Every time I update Lazarus, I rebuild it from commandline: make clean all OPT='-gl' Then when I open the start Lazarus and want to build the last project I was working on, it immediately rebuilds the enitre LCL (I thought I had just

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

2011-05-22 Thread Max Vlasov
On Sun, May 22, 2011 at 6:49 PM, Hans-Peter Diettrich drdiettri...@aol.comwrote: Max Vlasov schrieb: - There are some functions, for example region-related in windows that nevertheless process full job even if the area the developer is drawing is not included in the window update region -

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

2011-05-22 Thread Martin
On 22/05/2011 15:59, Hans-Peter Diettrich wrote: Bart schrieb: Every time I update Lazarus, I rebuild it from commandline: make clean all OPT='-gl' Then when I open the start Lazarus and want to build the last project I was working on, it immediately rebuilds the enitre LCL (I thought I had

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

2011-05-22 Thread Zaher Dirkey
2011/5/22 Max Vlasov max.vla...@gmail.com 2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com 2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com Hi, I encountered a problem I don't know how to solve. In Delphi I used

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

2011-05-22 Thread Max Vlasov
2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com 2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com 2011/5/22 Zaher Dirkey parm...@gmail.com 2011/5/22 Max Vlasov max.vla...@gmail.com Hi, I encountered a problem I

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

2011-05-22 Thread Hans-Peter Diettrich
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 experience tells me that win32 will do great automatic job of narrowing the final

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

2011-05-22 Thread Hans-Peter Diettrich
Martin schrieb: Maybe packages with $(IDEBuildOptions) (options, tab other? They are given the options from configure build Lazarus Can you be a bit more specific? Adding $(IDEBuildOptions) to Custom options seems not to work, at least Show Options doesn't show the -dDoDi option I specified

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

2011-05-22 Thread Martin
On 22/05/2011 21:50, Hans-Peter Diettrich wrote: Martin schrieb: Maybe packages with $(IDEBuildOptions) (options, tab other? They are given the options from configure build Lazarus Can you be a bit more specific? Adding $(IDEBuildOptions) to Custom options seems not to work, at least Show

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 13:50:56 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: On Sun, 22 May 2011, Alexander Klenin wrote: On Sun, May 22, 2011 at 21:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: TAChart needs to be refactored so as to have a non-GUI and GUI

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 10:55:23 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: On 2011-05-22 22:20:54 +1100, Alexander Klenin wrote: On Sun, May 22, 2011 at 21:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: TAChart needs to be refactored so as to have a non-GUI and GUI portion.

Re: [Lazarus] svn update problems (again)

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 21:21:31 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: 2011/5/22 Bart bartjun...@gmail.com: I tried to update Lazarus (cuurently r29157). bart@simenon:~/svnroot/lazarus svn update ... A    components/synedit/languages/syndesignstringconstants.ru.po A    

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

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 14:37:34 +0200 Bart bartjun...@gmail.com wrote: Every time I update Lazarus, I rebuild it from commandline: make clean all OPT='-gl' Then when I open the start Lazarus and want to build the last project I was working on, it immediately rebuilds the enitre LCL (I

Re: [Lazarus] Synchronize problem in linux

2011-05-22 Thread Mattias Gaertner
On Sun, 22 May 2011 15:36:51 +0200 Zaher Dirkey parm...@gmail.com 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

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Mon, May 23, 2011 at 00:47, Michael Van Canneyt mich...@freepascal.org wrote: There are basically two options for TAChart now: 1) Wait until FPCanvas/FPPen/FPBrush/FPFont interface is exactly the same as LCL equivalents. What is still missing ? You can easily check yourself by comparing

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Mon, May 23, 2011 at 08:10, Alexander Klenin kle...@gmail.com wrote: On Mon, May 23, 2011 at 00:47, Michael Van Canneyt Lack of Color will force me to create TChart-specific versions of pen/brush/font despite all the other work you have done. After finishing my morning cofee, I realized

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Mon, May 23, 2011 at 07:19, Mattias Gaertner nc-gaert...@netcologne.de wrote: [FORMS.PP] ExceptionOccurred   Sender=FreeTypeException   Exception=Error 10 while making string bitmaps step 4 Maybe the freetype unit works different under BSD? Or maybe you want to change the font name from

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Mattias Gaertner
On Mon, 23 May 2011 08:10:36 +1100 Alexander Klenin kle...@gmail.com wrote: [...] If you expect to see the Color property as it is in the LCL, that will not happen. Why? It is only a few lines of code. It is not that simple. TColor supports some special color constants like clBtnFace. This

Re: [Lazarus] TIBConnection + LCLNoGui + FreeBSD

2011-05-22 Thread Alexander Klenin
On Mon, May 23, 2011 at 08:22, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 23 May 2011 08:10:36 +1100 Alexander Klenin kle...@gmail.com wrote: [...] If you expect to see the Color property as it is in the LCL, that will not happen. Why? It is only a few lines of code. It is

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

2011-05-22 Thread Bart
On 5/22/11, Mattias Gaertner nc-gaert...@netcologne.de wrote: The IDE writes to stdout why it compiles a package. Watch for lines beginning with TLazPackageGraph. I'll do that next time. The ... lines should contain more details. It contains only the filenames that are compiled The result

Re: [Lazarus] svn update problems (again)

2011-05-22 Thread Bart
Thanks Vincent and Mattias. Bart On 5/22/11, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sun, 22 May 2011 21:21:31 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: 2011/5/22 Bart bartjun...@gmail.com: I tried to update Lazarus (cuurently r29157).

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

2011-05-22 Thread Mattias Gaertner
On Mon, 23 May 2011 00:19:55 +0200 Bart bartjun...@gmail.com wrote: [...] 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

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

2011-05-22 Thread Luiz Americo Pereira Camara
On 22/5/2011 06:37, Max Vlasov wrote: So the questions are: - is there a chance to intervene into lazarus drawing chain to get the update region before lazarus root windowproc call. In WMPaint do: FUpdateRect := Message.PaintStruct^.rcPaint; It's the same value as GetUpdateRect before

[Lazarus] fpWeb FCGI Setup

2011-05-22 Thread Lee Jenkins
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 error 10038.. I had thought that

Re: [Lazarus] fpWeb FCGI Setup

2011-05-22 Thread ABorka
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 error 10038.. I had thought that the

Re: [Lazarus] fpWeb FCGI Setup

2011-05-22 Thread Lee Jenkins
On 5/22/2011 8:25 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

Re: [Lazarus] fpWeb FCGI Setup

2011-05-22 Thread Lee Jenkins
On 5/22/2011 8:25 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

Re: [Lazarus] fpWeb FCGI Setup

2011-05-22 Thread ABorka
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 error 10038.. I had thought that the