Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Graeme Geldenhuys
I hope I understand your question correctly... Michael Schnell wrote: What messages does it capture ? Anything that fits into 'var message' parameter. fpGUI uses the following base structure for the event queue. TfpgMessageRec = record MsgCode: integer; Sender: TObject; Dest:

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/17/2010 05:46 PM, Marco van de Voort wrote: Afaik it is nothing more than a table that says for msg with value xxx call method yyy. IOW it is abstract. In Windows obviously an msg is a Windows message. But what is a msg in Linux ? -Michael

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
Thanks for your valuable hints ! On 02/18/2010 09:21 AM, Graeme Geldenhuys wrote: You can obviously use other custom communications methods too. Of course I do know this, my current goal is to explore if/how I need to support procedure...message with the upcoming NoGUIApplication package.

Re: [fpc-devel] RTL and Unicode filenames operations.

2010-02-18 Thread Florian Klaempfl
Felipe Monteiro de Carvalho schrieb: 2010/2/17 Flávio Etrusco flavio.etru...@gmail.com: I've read somewhere that Windows ANSI functions support utf-8? (despite the name) lol!!! You read from someone deeply missinformed =D Switch the console to a font supporting unicode, execute chcp

Re: [fpc-devel] TProcess, bash, and escaping quotes

2010-02-18 Thread Graeme Geldenhuys
Seth Grover wrote: I'm working with TProcess, which for the most part I love, but I'm scratching my head right now because of a problem I'm experiencing. Suppose I have the following command: ifconfig | grep -E -e inet6? addr: | grep -v -E -e (127.0.0.1|::1|Scope:Link) | sed -e

Re: [fpc-devel] ReallocMem TotalAllocated: Round 2

2010-02-18 Thread Nikolai Zhubr
18.02.2010 0:29, Marco van de Voort: I haven't sent this to mantis yet. Please someone let me know if this example is appropriate (or not). I think so, please enter it in Mantis. I've created yet another (alternative) example for the same matter and filed a new bugreport including both.

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 09:21 AM, Graeme Geldenhuys wrote: How to send a message from another process ? On example would be to use IPC as defined in the SimpleIPC unit - part of FCL. SimpleIPC documentation can be found at: http://www.freepascal.org/docs-html/fcl/simpleipc/index.html

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 09:21 AM, Graeme Geldenhuys wrote: fpGUI has an internal event queue which later gets dispatched to the target using TObject.Dispatch(). fpGUI v0.4 and earlier used a Object based even system and had it's own distribution functions. Later version of fpGUI uses Record based

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Sergei Gorelkin
Michael Schnell wrote: Yep. Here you need to do a server and a client and it does not seem to use procedure message. But In Delphi/Windows you don't need to create a server. Just using procedure message is enough o receive a message from another process. Things are more complicated

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Jonas Maebe
On 18 Feb 2010, at 14:41, Michael Schnell wrote: Lazarus does have a directory /lazarus/lcl/interfaces/fpgui/ but it does not contain a file fpg_main.* and fpgPostMessage is not mentioned in any file :(. http://www.google.com/search?q=fpgui Jonas

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 02:48 PM, Sergei Gorelkin wrote:If this is possible with FPC/Linux, I should make sure that it's still possible with the NoGUIApplication package. Windows has a built-in transport for the messages, Linux doesn't. Of course there are libraries providing similar or even better

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 02:49 PM, Jonas Maebe wrote: http://www.google.com/search?q=fpgui Of course I did try this, but the project seems to be abandoned: http://opensoft.homeip.net/fpgui/ ERROR The requested URL could not be retrieved ___

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Jonas Maebe
On 18 Feb 2010, at 16:44, Michael Schnell wrote: Of course I did try this, but the project seems to be abandoned: http://opensoft.homeip.net/fpgui/ ERROR The requested URL could not be retrieved It works fine here. Jonas ___ fpc-devel

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Marc Weustink
Michael Schnell wrote: On 02/18/2010 02:48 PM, Sergei Gorelkin wrote:If this is possible with FPC/Linux, I should make sure that it's still possible with the NoGUIApplication package. Windows has a built-in transport for the messages, Linux doesn't. Of course there are libraries providing

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 05:12 PM, Marc Weustink wrote: Nope. On non windows widgetrsets, lazarus implements its own messagequeue which is handled in application.Idle. I'll try to find out how this works(and how things like Timer and the waiting for events are done). Maybe it's an alternative to use

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Michael Schnell
On 02/18/2010 04:50 PM, Jonas Maebe wrote: On 18 Feb 2010, at 16:44, Michael Schnell wrote: Of course I did try this, but the project seems to be abandoned: http://opensoft.homeip.net/fpgui/ ERROR The requested URL could not be retrieved It works fine here. I'll try at home

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Graeme Geldenhuys
On 18 February 2010 15:41, Michael Schnell mschn...@** wrote: my fpc sources don't have any fpg* files other than fpglibc* and fpgtk*. Lazarus does have a directory /lazarus/lcl/interfaces/fpgui/ but it does not contain a file fpg_main.* and fpgPostMessage is not mentioned in any file

Fwd: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Graeme Geldenhuys
Sorry, I posted the reply to the Lazarus list by accident. -- Forwarded message -- From: Graeme Geldenhuys graemeg.li...@gmail.com Date: 18 February 2010 19:16 Subject: Re: [fpc-devel] procedure ... message(); in Linux To: Lazarus mailing list laza...@lists.lazarus.freepascal.org

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Nikolai Zhubr
18.02.2010 16:16, Michael Schnell: [trim] use procedure message. But In Delphi/Windows you don't need to create a server. Just using procedure message is enough o receive a message from another process. No. AFAIK even in Delphi, message procedures for non-components are pretty much

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Graeme Geldenhuys
On 17 February 2010 16:47, Michael Schnell mschn...@lumino.de wrote: What messages does it capture ? How to send a message from a thread ? Just thought of something else. Not sure if this is a solution, but it might head you in the right direction. Have a look at two behavioural design

[fpc-devel] Full_Version_String in an application

2010-02-18 Thread Nikolai Zhubr
Hello people, Is it possible in an application to somehow get the information about FPC version was used to compile this application (in the form of string or integers, whatever)? Yes, I've searched through sources and googled, but still can't get it. Thank you. Nikolai

Re: [fpc-devel] Full_Version_String in an application

2010-02-18 Thread Nikolai Zhubr
19.02.2010 0:43, Nikolai Zhubr: Is it possible in an application to somehow get the information about FPC version was used to compile this application (in the form of string or integers, whatever)? P.S.: I'm not asking about conditional defines (I know about them, of course, but they are not

Re: [fpc-devel] Full_Version_String in an application

2010-02-18 Thread JoshyFun
Hello Nikolai, Thursday, February 18, 2010, 10:43:54 PM, you wrote: NZ Hello people, NZ Is it possible in an application to somehow get the information about NZ FPC version was used to compile this application (in the form of string NZ or integers, whatever)? NZ Yes, I've searched through

Re: [fpc-devel] Full_Version_String in an application

2010-02-18 Thread Nikolai Zhubr
19.02.2010 1:24, JoshyFun: I'm using: CreatedUsing:='Created using Lazarus '+LCLVersion+' and free pascal '+{ $I %FPCVERSION%}+' ('+{$I %DATE%}+' '+{$I %TIME%}+')'; Cool! I'll use this. Thank you very much! Nikolai ___ fpc-devel maillist -