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

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 26 10:19:25 CET 2010


On Fri, 26 Feb 2010 09:41:15 +0100
Michael Schnell <mschnell at lumino.de> wrote:

> On 02/25/2010 07:47 PM, David W Noon wrote:
> >
> > for a couple of years.  Provided you are using Lazarus classes, it
> > works just like Windows: the PostMessage() and SendMessage() functions
> > in the LCLIntf unit provide closely analogous functionality to their
> > Win32 API namesakes.  [In all the applications I have written to
> > exploit this, I used the Gtk2 widget set.]
> >   
> 
> I'll try to find "PostMessage" in the LCL source code (once again).
> 
> > What is it that you cannot get working?
> >   
> 
> When compiling, I get "Identifier not found: Postmessage", even though I
> do have "uses Classes" in a standard "Application" project.

Classes is not part of the LCL.
SendMessage is defined in unit LCLIntf and implemented in the
LCL interfaces. In the end it calls Dispatch. AFAIK under gtk it does
not support sending messages to/from other apps.


Mattias



More information about the fpc-devel mailing list