[Lazarus] How do use sockets?

2011-11-26 Thread Fabiano de Almeida
Hi all! How do I create a socket server and client in Lazarus? In Delphi I used the visual components of the ICS (Internet Component Suite from The OverByte) thank's Fabiano. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Fabiano de Almeida
on the wiki (http://wiki.lazarus.freepascal.org/Sockets), used an old package. Can't compile on Lazarus from SVN. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Build project now rebuilds everithing

2011-11-26 Thread Juha Manninen
2011/11/26 cobines cobi...@gmail.com W dniu 2011-11-06 19:08, cobines pisze: However, weird thing. If I choose Build from menu then it doesn't seem to rebuild FCL, LCL, but if I start Build from a hotkey then it does. The call from menu item is: procedure

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Felipe Monteiro de Carvalho
Use LNet: http://wiki.lazarus.freepascal.org/lNet or Synapse: http://wiki.lazarus.freepascal.org/Synapse LNet is better for single threaded applications and Synapse is better for multi-threaded applications. -- Felipe Monteiro de Carvalho -- ___

Re: [Lazarus] Build project now rebuilds everithing

2011-11-26 Thread Mattias Gaertner
On Sat, 26 Nov 2011 11:26:40 +0200 Juha Manninen juha.mannine...@gmail.com wrote: 2011/11/26 cobines cobi...@gmail.com W dniu 2011-11-06 19:08, cobines pisze: However, weird thing. If I choose Build from menu then it doesn't seem to rebuild FCL, LCL, but if I start Build from a hotkey

Re: [Lazarus] Build project now rebuilds everithing

2011-11-26 Thread Juha Manninen
2011/11/26 Mattias Gaertner nc-gaert...@netcologne.de Indeed there is a difference. I should have checked it properly. Is it ok to remove pbfCompileDependenciesClean from the hotkey handler? Yes. Removed in r33794. Juha -- ___ Lazarus mailing

[Lazarus] Documenting constant values

2011-11-26 Thread Hans-Peter Diettrich
Delphi introduces very many constants, corresponding to WinAPI defines. The user has no idea which constants can be used in which place, because the argument types are almost DWORD - TCursor is a nice exception. Can we agree to define range types or simple type alias for *all* such arguments,

Re: [Lazarus] FontCanUTF8(Font: HFont)

2011-11-26 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: You have to read the implementations to see what the routines do, and in this case it looks pretty clear that it is a legacy introduced because LCL-gtk1 needed it. It probably can be deprecated. Reading the implementation doesn't help much, as can be seen

Re: [Lazarus] Sending messages

2011-11-26 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Fri, 25 Nov 2011 22:57:34 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: zeljko schrieb: On Friday 25 of November 2011 14:33:16 Hans-Peter Diettrich wrote: And how does PostMessage fit into the picture? I'm using PostMessage in an audio application

Re: [Lazarus] Sending messages

2011-11-26 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: On Fri, Nov 25, 2011 at 2:33 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: This doesn't answer my question. What's the *source* of the processed messages? And how does PostMessage fit into the picture? If this is for writing documentation, then you

Re: [Lazarus] Documenting constant values

2011-11-26 Thread Felipe Monteiro de Carvalho
I think this should be discussed on a per-API basis. Please give a concrete example. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] FontCanUTF8(Font: HFont)

2011-11-26 Thread Felipe Monteiro de Carvalho
On Sat, Nov 26, 2011 at 10:27 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Reading the implementation doesn't help much, as can be seen with your example: What does *FontIsDoubleByteCharsFont* mean? This *might* mean UTF-16, but then the name *FontCanUTF8* already is wrong. It

Re: [Lazarus] FontCanUTF8(Font: HFont)

2011-11-26 Thread Mattias Gaertner
On Sat, 26 Nov 2011 12:22:31 +0100 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Sat, Nov 26, 2011 at 10:27 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Reading the implementation doesn't help much, as can be seen with your example: What does

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread Alexsander Rosa
My company uses PostgreSQL since 2002 and Lazarus since 2005. Check our blog about the porting of our ERP from Delphi to Lazarus: http://port2laz.blogspot.com/ 2011/11/25 Everton Vieira tonvie...@gmail.com Hi people, anyone uses the combination of Postgres with Lazarus? I've been gotting a

Re: [Lazarus] Sending messages

2011-11-26 Thread Mattias Gaertner
On Sat, 26 Nov 2011 11:14:48 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: On Fri, 25 Nov 2011 22:57:34 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: zeljko schrieb: On Friday 25 of November 2011 14:33:16 Hans-Peter Diettrich wrote:

Re: [Lazarus] Sending messages

2011-11-26 Thread Mattias Gaertner
On Sat, 26 Nov 2011 11:50:53 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: Felipe Monteiro de Carvalho schrieb: On Fri, Nov 25, 2011 at 2:33 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: This doesn't answer my question. What's the *source* of the processed messages? And

[Lazarus] TWidgetSet.GetTextExtentExPoint

2011-11-26 Thread Hans-Peter Diettrich
The loop in this method is a bit weird. When the best fit is found, the loop continues but does nothing. IMO it should break instead, or fill the remaining array elements with defined values. When both MaxCount and PartialWidths are Nil, the loop must not even be entered. DoDi --

Re: [Lazarus] TWidgetSet.GetTextExtentExPoint

2011-11-26 Thread Felipe Monteiro de Carvalho
Indeed it could be more optimized, I'll see about that later on, but note that this purely a question of optimization not correctness. If MaxCount=PartialWidths=nil then you are using the wrong routine. -- Felipe Monteiro de Carvalho -- ___ Lazarus

Re: [Lazarus] Documenting constant values

2011-11-26 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: I think this should be discussed on a per-API basis. Please give a concrete example. I gave it already: TCursor. The generated help links the cursor parameters to the TCursor documentation, for all procedures and methods. Now it's clear, to the user and

Re: [Lazarus] Sending messages

2011-11-26 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Maybe you should give people some time to answer your mails, before writing several mails all based on the same misunderstanding. ACK E.g. TWidgetset.AllocHWND allows to create (hidden) windows, which then can receive messages. Does this allow to send messages to

Re: [Lazarus] Documenting constant values

2011-11-26 Thread Sven Barth
On 26.11.2011 14:14, Hans-Peter Diettrich wrote: Felipe Monteiro de Carvalho schrieb: I think this should be discussed on a per-API basis. Please give a concrete example. I gave it already: TCursor. The generated help links the cursor parameters to the TCursor documentation, for all

Re: [Lazarus] Sending messages

2011-11-26 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: It would be nice to get not implemented errors or at least platform specific hints at *compile* time, not only when an application runs on a customer's machine. Yes, that would be nice. But many functions are not called directly by the application or are compiled

[Lazarus] TSQLite3Connection setting itself to active in the designer

2011-11-26 Thread Bernd
I have made a strange observation: I have a form with a TSQLite3Connection and all the other components needed to drive a TDBGrid and everything is working fine. There is only one thing that initially caused me problems until I found out what it was: When the connection component is set to active

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread Everton Vieira
In create table return: Access violation. in create database return: Database not assign. There's must be some tip to do this operation at least in Linux enviroment. I'm using openSuse. Anyone knows something about it? 2011/11/26 zeljko zel...@holobit.net ** On Friday 25 of November 2011

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread silvioprog
2011/11/26 Everton Vieira tonvie...@gmail.com: In create table return: Access violation. in create database return: Database not assign. There's must be some tip to do this operation at least in Linux enviroment. I'm using openSuse. Anyone knows something about it? See this issue:

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread Everton Vieira
Yeah, eu que iniciei, em windows realmente funciona o CreateDB, mas não ta funcionando numa instalção openSuse. Eu não consigo mas reportar naquele issue, ele já está fechado. 2011/11/26 silvioprog silviop...@gmail.com 2011/11/26 Everton Vieira tonvie...@gmail.com: In create table return:

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread silvioprog
2011/11/26 Everton Vieira tonvie...@gmail.com: Yeah, eu que iniciei, em windows realmente funciona o CreateDB, mas não ta funcionando numa instalção openSuse. Eu não consigo mas reportar naquele issue, ele já está fechado.

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread silvioprog
Em 26 de novembro de 2011 16:48, silvioprog silviop...@gmail.com escreveu: 2011/11/26 Everton Vieira tonvie...@gmail.com: Yeah, eu que iniciei, em windows realmente funciona o CreateDB, mas não ta funcionando numa instalção openSuse. Eu não consigo mas reportar naquele issue, ele já está

Re: [Lazarus] Postgres and Lazarus

2011-11-26 Thread Everton Vieira
zypper install postgresql-devel Segunda-feira testarei. Muito obrigado. []'s Everton. Em 26 de novembro de 2011 16:50, silvioprog silviop...@gmail.com escreveu: Em 26 de novembro de 2011 16:48, silvioprog silviop...@gmail.com escreveu: 2011/11/26 Everton Vieira tonvie...@gmail.com: Yeah,

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Bernd
2011/11/26 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: Use LNet: http://wiki.lazarus.freepascal.org/lNet or Synapse: http://wiki.lazarus.freepascal.org/Synapse LNet is better for single threaded applications and Synapse is better for multi-threaded applications. I recently

Re: [Lazarus] TSQLite3Connection setting itself to active in the designer

2011-11-26 Thread Martin Schreiber
On 11/26/2011 07:17 PM, Bernd wrote: Its not really ultra dramatic, I can leave the DatabaseName property empty (which is what I have done now) this will prevent it completely from being activated at all. Strangely it does NOT help setting it to a different copy of the sqlite file, for some

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Graeme Geldenhuys
On 26/11/2011, Bernd prof7bit@ wrote: If I were required to begin developing another networking application tomorrow I would choose LNet again. Is LNet still being developed. The last time I checked, nothing has changed in the last year or two - or maybe I was just looking in the wrong

Re: [Lazarus] Build project now rebuilds everithing

2011-11-26 Thread cobines
2011/11/26 Juha Manninen juha.mannine...@gmail.com: Removed in r33794. Juha Thanks. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Changing a TLabel.Caption

2011-11-26 Thread Timothy Groves
I tried changing a TLabel.Caption property, and got a SIGSEGV. Here's the offending code: if (cmbProfileMeasures.Text = 'Inches') then begin labPDFWidth.Caption := 'in X'; labPDFHeight.Caption := 'in'; end else if (cmbProfileMeasures.Text = 'Points') then

Re: [Lazarus] Changing a TLabel.Caption

2011-11-26 Thread Juha Manninen
2011/11/26 Timothy Groves the.tail.kin...@gmail.com I tried changing a TLabel.Caption property, and got a SIGSEGV. Here's the offending code: if (cmbProfileMeasures.Text = 'Inches') then begin labPDFWidth.Caption := 'in X'; labPDFHeight.Caption := 'in'; end else

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Bernd
2011/11/26 Graeme Geldenhuys graemeg.li...@gmail.com: On 26/11/2011, Bernd prof7bit@ wrote: If I were required to begin developing another networking application tomorrow I would choose LNet again. Is LNet still being developed. The last time I checked, nothing has changed in the last

Re: [Lazarus] How do use sockets?

2011-11-26 Thread Felipe Monteiro de Carvalho
On Sat, Nov 26, 2011 at 9:23 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Is LNet still being developed. I sent some patches some months ago including perl-like regular expression integration into TLTelnet, but from what I remember Almindor never answered my mails. Maybe I should just