Recent

Author Topic: TLMessage, sending and receiving  (Read 389 times)

McClane

  • New Member
  • *
  • Posts: 31
TLMessage, sending and receiving
« 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.

Handoko

  • Hero Member
  • *****
  • Posts: 3183
  • My goal: build my own game engine using Lazarus
Re: TLMessage, sending and receiving
« Reply #1 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.
« Last Edit: May 03, 2019, 06:02:23 am by Handoko »

McClane

  • New Member
  • *
  • Posts: 31
Re: TLMessage, sending and receiving
« Reply #2 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.