Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Felipe Monteiro de Carvalho
On Wed, Jun 8, 2011 at 2:14 AM, Leonardo M. Ramé l.r...@griensu.com wrote: I added a couple of lines to fpvtocanvas.pas to apply those settings. In my project the patch works as I expect. Your code applies the path color in stMoveTo, while it should actually apply it only once before entering

Re: [Lazarus] fpVectorial text related question

2011-06-08 Thread Felipe Monteiro de Carvalho
On Mon, Jun 6, 2011 at 3:24 PM, Leonardo M. Ramé l.r...@griensu.com wrote: Well, the angle of the text must be the same of the segment below it, I don't know if it's double-precision or 1/16 int. Regarding the rotation, it must allow rotating 360 degrees clockwise. The output is fpvtocanvas. I

[Lazarus] TGraphicControl changes

2011-06-08 Thread zeljko
Hi all, I just changed behaviour of TGraphicControl.Update (overrided TControl.Update) in r31132 so it does not request paint over whole parent handle, but just invalidates clientrect of TGraphicControl. If someone rely on TGraphicControl.Update and expect that it'll request paint over complete

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Michael Schnell
On 06/07/2011 03:39 PM, silvioprog wrote: Someone using FPC 2.5.1 and Laz 0.9.31 on Linux is experiencing this problem? Do not know if the same happens in Windows, but ... It's a linker parameter saying: Win32 GUI application. With a Linux project I just uncecked the appropriate box and it

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Mattias Gaertner
On Wed, 08 Jun 2011 10:16:11 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/07/2011 03:39 PM, silvioprog wrote: Someone using FPC 2.5.1 and Laz 0.9.31 on Linux is experiencing this problem? Do not know if the same happens in Windows, but ... It's a linker parameter saying: Win32

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Henry Vermaak
On 08/06/11 09:16, Michael Schnell wrote: - why is it auto-set in Linux ? I believe Mattias fixed this, now. - Is it _necessary_ when compiling for Windows ? It depends if you want a console created with your app. There is a subsystem type somewhere in the PE header that tells windows

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Vincent Snijders
2011/6/8 Mattias Gaertner nc-gaert...@netcologne.de: Yes, the Win32 is a bit misleading. It's interesting that the fpc -h does not even mention the parameter. For me it does. vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -h | grep WG -WGSpecify graphic type application (EMX,

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Mattias Gaertner
On Wed, 8 Jun 2011 10:43:34 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: 2011/6/8 Mattias Gaertner nc-gaert...@netcologne.de: Yes, the Win32 is a bit misleading. It's interesting that the fpc -h does not even mention the parameter. For me it does.

Re: [Lazarus] New application type: HTTP standalone server

2011-06-08 Thread Michael Schnell
On 06/07/2011 02:41 PM, Michael Van Canneyt wrote: I want to see if we can integrate it in a TCustomApplication descendent (TEventApplication), of which the LCL TApplication can be made a descendent. If so, then the NOGUI widget type will automatically have an event loop and timer. Sounds nice

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Michael Schnell
On 06/08/2011 10:29 AM, Mattias Gaertner wrote: Anyway the IDE now sets the parameter only for those OS that supports the -WG. Is this done by the actually selected Widget Set ? So that a project done in one OS (using the default Widget Type) can be just compiled in the other one (the IDE

Re: [Lazarus] RE : RE : broken scrollbars under Ubuntu 11.04

2011-06-08 Thread Bart
On 6/7/11, Andrew Brunner andrew.t.brun...@gmail.com wrote: So much is broken under 11.04 that I don't use it. TCustomEdit.KeyPress is broken too in this distro. Maybe there is some underlying flaw in our GTK2 widgetset? Bart -- ___ Lazarus mailing

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Mattias Gaertner
Michael Schnell mschn...@lumino.de hat am 8. Juni 2011 um 11:20 geschrieben: On 06/08/2011 10:29 AM, Mattias Gaertner wrote: Anyway the IDE now sets the parameter only for those OS that supports the -WG. Is this done by the actually selected Widget Set ?   No, of course not. It is

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Anyway the IDE now sets the parameter only for those OS that supports the -WG. Is this done by the actually selected Widget Set ? No, of course not. It is done depending on the target OS. IMO FPC knows much better about platforms, and should ignore (or

Re: [Lazarus] IDE docking flaw?

2011-06-08 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: BTW the SimpleLayout should *not* remember the bounds of *docked* forms, instead it should retain their *undocked* bounds, for use when such a form is undocked later. That's just my preference: When a form is undocked it should not move. You can send me a patch to

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Mattias Gaertner
Hans-Peter Diettrich drdiettri...@aol.com hat am 8. Juni 2011 um 12:37 geschrieben: Mattias Gaertner schrieb:   Anyway the IDE now sets the parameter only for those OS that   supports the -WG.   Is this done by the actually selected Widget Set ?   No, of course not.

[Lazarus] Debugging problem

2011-06-08 Thread Roland Turcan
Hello all, I have FPC r17690 and Lazarus r31132 on Mac OS X 10.5.8 with all updates and I cannot debug any thread, it crashes on debugger error: The GDB command: -thread-info returned the error: ,msg=Undefined mi command: thread-info (missing implementation) What can I do? Thanks in advance.

Re: [Lazarus] Debugging problem

2011-06-08 Thread Martin
On 08/06/2011 12:54, Roland Turcan wrote: Hello all, I have FPC r17690 and Lazarus r31132 on Mac OS X 10.5.8 with all updates and I cannot debug any thread, it crashes on debugger error: The GDB command: -thread-info returned the error: ,msg=Undefined mi command: thread-info (missing

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Leonardo M . Ramé
On 2011-06-08 08:16:29 +0200, Felipe Monteiro de Carvalho wrote: On Wed, Jun 8, 2011 at 2:14 AM, Leonardo M. Ramé l.r...@griensu.com wrote: I added a couple of lines to fpvtocanvas.pas to apply those settings. In my project the patch works as I expect. Your code applies the path color in

Re: [Lazarus] Debugging problem

2011-06-08 Thread Roland Turcan
Hello all, This error occurs in non-threaded code as well. TRoland; 08.06.2011 13:54 - Roland Turcan k...@rotursoft.sk RT Hello all, RT I have FPC r17690 and Lazarus r31132 on Mac OS X 10.5.8 with all RT updates and I cannot debug any thread, it crashes on debugger error: RT The GDB

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Felipe Monteiro de Carvalho
On Wed, Jun 8, 2011 at 2:16 PM, Leonardo M. Ramé l.r...@griensu.com wrote: Sorry, I use the fpvectorial package from fpc trunk, which is now on rev 17692. Where is rev1666? is it from another repository?. Yes, it is from the lazarus-ccr where I develop unstable features. But I merged all

Re: [Lazarus] Debugging problem

2011-06-08 Thread Martin
On 08/06/2011 13:45, Roland Turcan wrote: Hello all, This error occurs in non-threaded code as well. What happens , if you power off the history window? Yes I know, it isn't convenient, as their is no persistent setting... but the issue needs to be fixed in the threads code, anyway... For

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Leonardo M . Ramé
On 2011-06-08 14:46:36 +0200, Felipe Monteiro de Carvalho wrote: On Wed, Jun 8, 2011 at 2:16 PM, Leonardo M. Ramé l.r...@griensu.com wrote: Sorry, I use the fpvectorial package from fpc trunk, which is now on rev 17692. Where is rev1666? is it from another repository?. Yes, it is from the

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Felipe Monteiro de Carvalho
Your code is wrong, because Vec.StartPath creates a new path. Previously it didn't erase the color, but now it does. Try this order of calls: Vec.StartPath(0, 0); Vec.SetPenColor(lClYellow); // --- after StartPath Vec.SetPenWidth(1); Vec.AddLineToPath(100, 100); Vec.EndPath();

Re: [Lazarus] Debugging problem

2011-06-08 Thread Martin
Ok, I can reproduce. Mac GdB outputs an extra line ^error which is the problem On 08/06/2011 13:47, Martin wrote: On 08/06/2011 13:45, Roland Turcan wrote: Hello all, This error occurs in non-threaded code as well. What happens , if you power off the history window? Yes I know, it

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Leonardo M . Ramé
On 2011-06-08 15:05:45 +0200, Felipe Monteiro de Carvalho wrote: Your code is wrong, because Vec.StartPath creates a new path. Previously it didn't erase the color, but now it does. Try this order of calls: Vec.StartPath(0, 0); Vec.SetPenColor(lClYellow); // --- after StartPath

Re: [Lazarus] Vers[?]o : Compiler messages

2011-06-08 Thread Marcos Douglas
On Tue, Jun 7, 2011 at 5:54 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 6 Jun 2011 17:48:29 -0300 Marcos Douglas m...@delfire.net wrote: Hi, Just one my projects is trying exhibit messages in Unicode. See attachments. What option I broke in the Lazarus? What fpc

Re: [Lazarus] Debugging problem

2011-06-08 Thread Roland Turcan
Hello Martin, Thanks you were faster than me, I was just going to reproduce. Can you fix and commit it into svn? TRoland; 08.06.2011 15:08 - Martin laza...@mfriebe.de M Ok, I can reproduce. M Mac GdB outputs an extra line ^error M which is the problem M On 08/06/2011 13:47, Martin

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Felipe Monteiro de Carvalho
On Wed, Jun 8, 2011 at 3:11 PM, Leonardo M. Ramé l.r...@griensu.com wrote: Great, now the color works. But the PenWidth doesn't seems to be working. This should be fixed in rev17694 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list

Re: [Lazarus] Presentation of Portuguese Comunity of Lazarus

2011-06-08 Thread Paulo Malheiros
On Tue, 2011-06-07 at 22:52 -0300, Marcelo Borges de Paula wrote: I won´t restart this discussion again. Refer to: http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-January/060070.html Other portugueses made their point then. So, in the same manner, to not confuse people with the

Re: [Lazarus] Patch for fpVectorial

2011-06-08 Thread Leonardo M . Ramé
On 2011-06-08 15:55:11 +0200, Felipe Monteiro de Carvalho wrote: On Wed, Jun 8, 2011 at 3:11 PM, Leonardo M. Ramé l.r...@griensu.com wrote: Great, now the color works. But the PenWidth doesn't seems to be working. This should be fixed in rev17694 Excellent!, now it works ok. --

[Lazarus] found a new mono font for use with Lazarus

2011-06-08 Thread Graeme Geldenhuys
Hi, I'm a huge fan of the Raize bitmap font. I used it for years in Delphi. I was such a fan, than when I moved to Linux some years back, I hand painted that font to make it available under Linux too. http://www.raize.com/DevTools/Tools/RzFont.asp Anyway, today I was admiring the beautiful

[Lazarus] Dynamic loading of a custom sqlite library

2011-06-08 Thread Max Vlasov
Hi, I encountered problems using dynamically loaded sqlite library with lazarus on linux. My post about this in the sqlite list is here: http://www.mail-archive.com/sqlite-users@sqlite.org/msg61565.html Maybe someone points me to the right direction It's about loading sqlite library with dlopen,

Re: [Lazarus] Presentation of Portuguese Comunity of Lazarus

2011-06-08 Thread lazarusportugalwebmast...@gmail.com
This community is principally for users of Lazarus from Portugal. But we haven't any proble accepting that the users wite text in hour site in Brazillian portuguese. This is the same language, just change the dialect. Em 08-06-2011 14:57, Paulo Malheiros escreveu: On Tue, 2011-06-07 at 22:52

[Lazarus] How to PostMessage to object?

2011-06-08 Thread Krzysztof
Hi, How can I PostMessage from thread to another object? PostMessage/SendMessage need HWND as parameter but this kind of handle is only in visual controls (TWinControl, TForm). I temporary can use TWinControl type instead of TObject but it need parent window to handle messages. Exists any cross

Re: [Lazarus] How to PostMessage to object?

2011-06-08 Thread Michael Schnell
On 06/08/2011 04:57 PM, Krzysztof wrote: How can I PostMessage from thread to another object? While PostMessage() and Procedure...Message is available with Lazarus, you better use the non-Windowish Application.QueueAsyncCall() procedure. BTW.: with Delphi, you mostly better user

[Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread William Oliveira Ferreira
I Don´t know if someone agrees if me, i think dock the Messages window into the Source Editor Window is a nice idea as it makes it easier to manage. Just place on the same Window, aligned to bottom. Sorry about my english, sometimes i need Google to write messages =/

Re: [Lazarus] How to PostMessage to object?

2011-06-08 Thread Krzysztof
Hm, I forgot about Application.QueueAsyncCall. And this can be safely call from thread without TThread.Synchronize() ? Because I don't want use Synchronize() in any part of thread code. So this is correct code? : procedure TMyThread.Execute; begin // some code here

Re: [Lazarus] How to PostMessage to object?

2011-06-08 Thread Henry Vermaak
On 08/06/11 16:28, Krzysztof wrote: Hm, I forgot about Application.QueueAsyncCall. And this can be safely call from thread without TThread.Synchronize() ? Because I don't want use Synchronize() in any part of thread code. So this is correct code? : procedure TMyThread.Execute; begin // some

Re: [Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread Krzysztof
You can use ManualDock components for dock messages to source editor: http://wiki.lazarus.freepascal.org/Manual_Docker http://wiki.lazarus.freepascal.org/Manual_DockerOr just use AnchorDockingDsgn/EasyDockMgrDsgn from Packages-Configure installed packages 2011/6/8 William Oliveira Ferreira

Re: [Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread leledumbo
I guess you haven't seen: 1) http://wiki.lazarus.freepascal.org/Anchor_Docking#Docking_in_the_IDE 2) http://wiki.lazarus.freepascal.org/New_IDE_features_since#Docked_IDE 3) http://wiki.lazarus.freepascal.org/Manual_Docker *older hack, don't know if it still works -- View this message in context:

[Lazarus] Writing a custom lazarus dropdown control

2011-06-08 Thread Erwin van den Bosch
Hello group, I'm trying to convert some Delphi component to Lazarus. But without much success. It's an Edit control with buttons in it and a dropdown panel. Just like a combobox. I use this component for creating date selection controls and custom lookup comboboxes. It uses some windows

Re: [Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread William Oliveira Ferreira
Good, i'll read it later... Thanks! William de Oliveira Ferreira Bacharel em Sistemas de Informação 2011/6/8 leledumbo leledumbo_c...@yahoo.co.id I guess you haven't seen: 1) http://wiki.lazarus.freepascal.org/Anchor_Docking#Docking_in_the_IDE 2)

Re: [Lazarus] How to PostMessage to object?

2011-06-08 Thread Krzysztof
Ok, this can be done with critical section but what with AV scenario? Example: 1. Thread add queue calling Application.QueueAsyncCall(MyObj.EventMethod, 0); 2. MyObj is destroyed by main thread 3. Main thread process messages and try call queue added by thread but reference to MyObj.EventMethod

Re: [Lazarus] How to PostMessage to object?

2011-06-08 Thread Krzysztof
Ok, I did not notice that exists method TApplication.RemoveAsyncCalls(const AnObject: TObject). Anyway it's strange that AnObject param is compared to Data param from QueueAsyncCall, not to AMethod, but this is not a problem. 2011/6/8 Krzysztof dib...@wp.pl Ok, this can be done with critical

Re: [Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread Flávio Etrusco
There's a brazilian mailing list: http://groups.google.com/group/lazarus-br 2011/6/8 William Oliveira Ferreira bdexterholl...@gmail.com: I Don´t know if someone agrees if me, i think dock the Messages window into the Source Editor Window is a nice idea as it makes it easier to  manage. Just

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Sven Barth
On 08.06.2011 10:30, Henry Vermaak wrote: On 08/06/11 09:16, Michael Schnell wrote: - why is it auto-set in Linux ? I believe Mattias fixed this, now. - Is it _necessary_ when compiling for Windows ? It depends if you want a console created with your app. There is a subsystem type

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Florian Klaempfl
Am 07.06.2011 20:43, schrieb Mattias Gaertner: On Tue, 7 Jun 2011 20:36:57 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: 2011/6/7 Mattias Gaertner nc-gaert...@netcologne.de: On Tue, 7 Jun 2011 17:02:30 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] So win32,

Re: [Lazarus] Writing a custom lazarus dropdown control

2011-06-08 Thread Graeme Geldenhuys
2011/6/8 Erwin van den Bosch er...@deseine.nl: It uses some windows specific calls. I need some help to convert/rewrite it under Lazarus. I would be very happy if I can get it to work under Windows and Linux but for now Windows only is good enough. Unfortunately I can't commend on LCL, but I

Re: [Lazarus] Illegal parameter: -WG

2011-06-08 Thread Vincent Snijders
2011/6/8 Florian Klaempfl flor...@freepascal.org: Am 07.06.2011 20:43, schrieb Mattias Gaertner: mac os darwin, darwin is Mac OS X (unix like), macos is Mac OS before version 10, which ran on the m68k. ... and PowerPC. Of course. I did not mention that to make the distinction with Mac OS X