Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 12:07 AM, Mattias Gaertner wrote: QT functions are beyond the LCL docs. The fishy thing is that there are WIN-API-look-alike functions in the LCL (such as PostMessage() ) and the lack of a documentation suggests that they are suppose to work as documented by Microsoft (even if

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/25/2011 10:57 PM, Hans-Peter Diettrich wrote: On Windows the owning thread is part of the window class data, but what about other widgetsets? Does the Delphi VLC really support creating Forms from other threads than the main thread ? AFAIK, the VCL is not more thread save than the LCL

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 11:14 AM, Hans-Peter Diettrich wrote: What again raises the question, how many message queues are supported by the LCL, and what's required to use them. As creating a Form from a thread is not supported (the LCL is documented to be not thread safe), the target of the Message only

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 11:14 AM, Hans-Peter Diettrich wrote: IMO the documentation of the TWidgetset base class is an essential part of the Lazarus documentation. Yep. But, IMHO, the documentation of non LCLWidgetType-dependent is more essential. PostMessage right now is "supposed to be" non LCLWidge

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 01:10 PM, Mattias Gaertner wrote: The "LCL interface" or "LCL widget set" Please do use the term "LCLWidgetType" as this is what the IDE user interface provides (Project -> Project Options -> Build Modes) . So I understand that this is what "users" are supposed to see and what i

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 08:25 AM, zeljko wrote: Maybe he want to explain how and where PostMessage can be used in multithreading environment, IMO this is important part since PostMessage is thread safe and gives you ability to do calculating stuff in threads and flood main thread with messages needed

Re: [Lazarus] How do use sockets?

2011-11-28 Thread Michael Schnell
Please don't hitchhike a running threads with unrelated stuff ! -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 11:50 AM, Hans-Peter Diettrich wrote: E.g. it's well known that a single-threaded applications should call Application.ProcessMessages during lengthy tasks, in order to keep the GUI responsive. Is something like that required in threads, too, or what else is the suggested way fo

Re: [Lazarus] Sending messages

2011-11-28 Thread Michael Schnell
On 11/26/2011 01:33 PM, Mattias Gaertner wrote: TWidgetset.AllocHWND is WinAPI specific. If you use this you leave the safe harbor of the LCL. To be clear this also is true with PostMessage(), as there are lots of Windows-specific Message-Numbers and possible targets for Messages that are not p

Re: [Lazarus] How to check if a string is a valid floating-point number.

2011-11-28 Thread Santiago A.
El vie, 25-11-2011 a las 14:34 +0100, Bart escribió: > On 11/25/11, Santiago A. mailto:s...@ciberpiula.net>> > wrote: > > El 25/11/2011 10:16, Kjow escribió: > > > > What about the standard pascal function "val" > > > > Doesn't Val() use a hardcoded period (.) as decimalseparator? > The StrToFloa

Re: [Lazarus] How to check if a string is a valid floating-point number.

2011-11-28 Thread silvioprog
2011/11/28 Santiago A. : [...] > By the way, I don't have a delphi near to check it. Is tryStrTofloat a fpc > function or it is also a delphi function? If there is such function in > delphi, someone gave up searching help too soon. After F1 on Delphi: = Delphi Object and Component Re

[Lazarus] [OT?] How to silently install Firebird ?

2011-11-28 Thread Koenraad Lelong
Hi, I made an application using firebird. Not the first actually ;-) I wanted to create an installer for it using inno-setup. I also included the firebird installation, a silent install. Unfortunately, my application does not work, because the firebird-driver is not found. Investigation showe

Re: [Lazarus] [OT?] How to silently install Firebird ?

2011-11-28 Thread Graeme Geldenhuys
On 28/11/2011, Koenraad Lelong wrote: > > This happens at least since Firebird 2.1.4. Firebird 2.0.4 works OK. > Am I doing something wrong ? The docs say it should work. You best option would be to ask these questions in the Firebird support newsgroups or mailing lists. -- Regards, - Graem

[Lazarus] TDBLookupComboBox (dblookup.inc)

2011-11-28 Thread Marcos Douglas
Hi, The TDBLookupComboBox uses Field.AsString or Field.Value to access the data... but I have problems with it using Unicode. I use MSSQL and I have to convert the string data using SysToUTF8/UTF8ToSys in OnGetText/OnSetText events [1] This works in TDBGrid, but not in TDBLookupComboBox. I'm work

Re: [Lazarus] TDBLookupComboBox (dblookup.inc)

2011-11-28 Thread Marcos Douglas
On Mon, Nov 28, 2011 at 10:28 AM, Marcos Douglas wrote: > Hi, > > The TDBLookupComboBox uses Field.AsString or Field.Value to access the > data... but I have problems with it using Unicode. > I use MSSQL and I have to convert the string data using > SysToUTF8/UTF8ToSys in OnGetText/OnSetText event

Re: [Lazarus] TDBLookupComboBox (dblookup.inc)

2011-11-28 Thread Luiz Americo Pereira Camara
On 28/11/2011 11:37, Marcos Douglas wrote: On Mon, Nov 28, 2011 at 10:28 AM, Marcos Douglas wrote: Hi, The TDBLookupComboBox uses Field.AsString or Field.Value to access the data... but I have problems with it using Unicode. I use MSSQL and I have to convert the string data using SysToUTF8/UTF

Re: [Lazarus] TDBLookupComboBox (dblookup.inc)

2011-11-28 Thread Marcos Douglas
On Mon, Nov 28, 2011 at 12:00 PM, Luiz Americo Pereira Camara wrote: > On 28/11/2011 11:37, Marcos Douglas wrote: >> >> On Mon, Nov 28, 2011 at 10:28 AM, Marcos Douglas  wrote: >>> >>> Hi, >>> >>> The TDBLookupComboBox uses Field.AsString or Field.Value to access the >>> data... but I have problem

Re: [Lazarus] How do use sockets?

2011-11-28 Thread Jesus Reyes
--- El dom 27-nov-11, Graeme Geldenhuys escribió: > > Is this the right SVN paths? > > https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk  > (source) > > This is the correct path. The demo I was talking about is > also under this URI. > > The documentation describing most of Demo 18

Re: [Lazarus] Changing a TLabel.Caption

2011-11-28 Thread Lukasz Sokol
On 26/11/2011 22:31, Juha Manninen wrote: > 2011/11/26 Timothy Groves > > > I tried changing a TLabel.Caption property, and got a SIGSEGV. Here's > the offending code: > > if (cmbProfileMeasures.Text = 'Inches') then > begin > labPDFW

[Lazarus] Codetools->Space is not saved.

2011-11-28 Thread Torsten Bonde Christiansen
Hi List. The settings for Codetools->Space is not saved when closing the tools option form. Must be a regression bug since it used to work fine. My system: Free Pascal Compiler version 2.4.4 [2011/09/14] for x86_64 Lazarus trunk - Revision: 33842 REgards, Torsten Bonde Christiansen. -- _

Re: [Lazarus] Changing a TLabel.Caption

2011-11-28 Thread Juha Manninen
2011/11/28 Lukasz Sokol > Wild guess : OP is putting this code into FormCreate handler ? OP has not put that code anywhere automatically, it is created by hand. Besides the code would be ok in a FormCreate handler. Timothy, we can find the problem if you send a complete application demonstratin

Re: [Lazarus] How do use sockets?

2011-11-28 Thread Graeme Geldenhuys
On 28/11/2011, Jesus Reyes wrote: >> >> http://tiopf.sourceforge.net/Doc/PersistingObjectsAndRelationships/SimpleCollection/index.shtml >> >> > > The tiOPF Quick Start at > http://tiopf.sourceforge.net/Doc/QuickStart/index.shtml is half written, do > you have the missing part? or do you have some

Re: [Lazarus] Codetools->Space is not saved.

2011-11-28 Thread Mattias Gaertner
On Mon, 28 Nov 2011 20:34:21 +0100 Torsten Bonde Christiansen wrote: > Hi List. > > The settings for Codetools->Space is not saved when closing the tools > option form. Must be a regression bug since it > used to work fine. Sorry, my fault, Fixed. Mattias -- _

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-28 Thread silvioprog
Anyone? D: 2011/11/27 silvioprog : > Hi, > > I'm trying, trying, trying, but without sucess. x( > > Find attached, my test example. It uses DOM and XML Reader. > > If someone can see where I'm missing in this project, please show me > where the error is. > > Thx. -- Silvio Clécio ===

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-28 Thread Graeme Geldenhuys
On 28/11/2011, silvioprog wrote: > > I'm trying, trying, trying, but without sucess. x( > Find attached, my test example. It uses DOM and XML Reader. > If someone can see where I'm missing in this project, please show me > where the error is. F*cken hell, now I know why I don't EVER use or work

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-28 Thread Graeme Geldenhuys
On 29/11/2011, Graeme Geldenhuys wrote: > And to be clear, as a programmer, this is the API interface I would > expect to use... which I don't think is unreasonable. Obviously this > doesn't work, but hey, that's XML for you. > > ReadXMLFile(VXML, ExtractFilePath(ParamStr(0)) + 'LazSolutionsDT

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-28 Thread Mattias Gaertner
On Tue, 29 Nov 2011 08:55:39 +0200 Graeme Geldenhuys wrote: > On 29/11/2011, Graeme Geldenhuys wrote: > > And to be clear, as a programmer, this is the API interface I would > > expect to use... which I don't think is unreasonable. Obviously this > > doesn't work, but hey, that's XML for you. >

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-28 Thread Graeme Geldenhuys
On 29/11/2011, Mattias Gaertner wrote: > > uses laz2_xmlcfg > > cfg:=TXMLConfig.Create('/path/to/package.lpk'); > writeln(cfg.GetValue('Package/Version/Major','')); > writeln(cfg.GetValue('Package/Version/Minor','')); > writeln(cfg.GetValue('Package/Version/Release','')); > writeln(cfg.G