Lazarus

Programming => Operating Systems => Linux => Topic started by: McClane on May 03, 2019, 05:39:51 am

Title: TLMessage, sending and receiving
Post by: McClane on May 03, 2019, 05:39:51 am
Hi, I tried to do this example:
https://github.com/alrieckert/lazarus/blob/master/examples/messages/unit1.pas
but it doesn't work on linux.

  case TLMessage.WParam of
    1: S := '<SendMessage>';
    2: S := '<PostMessage>';
  else
    S := '<unknown>'
  end;

gives me this result Error: type identifier not allowed here (refering to wparam)

Thanks in advace.
Title: Re: TLMessage, sending and receiving
Post by: Handoko on May 03, 2019, 05:58:50 am
I've just copied/pasted and tested the source code on Lazarus 2.0.2 GTK2 on Ubuntu 19.04. It works without any compile nor runtime error.
Title: Re: TLMessage, sending and receiving
Post by: McClane on May 03, 2019, 08:18:37 pm
It's working.
I'm sorry I made a mistake.
Thanks for your reply Handoko and have a nice day.