Recent

Author Topic: [SOLVED] postmessage uses Windows and MACOs  (Read 333 times)

superc

  • Full Member
  • ***
  • Posts: 176
[SOLVED] postmessage uses Windows and MACOs
« on: March 14, 2022, 03:03:05 pm »
Hello,

I'm trying to convert my program win32 to MACOs: in many form I use 'Windows' uses and specifically postmessage:
in MACOs, if needed, what is the corresponding call?

Thanks is advance.
« Last Edit: March 14, 2022, 04:50:36 pm by superc »

Thaddy

  • Hero Member
  • *****
  • Posts: 11774
Re: postmessage uses Windows and MACOs
« Reply #1 on: March 14, 2022, 03:56:50 pm »
instead of windows, use lclintf ; That mimics a large part of the windows unit in a crossplatform way.
See https://wiki.freepascal.org/lclintf where you can find an x-platform postmessage() with the same signature as the one from windows.
« Last Edit: March 14, 2022, 04:06:52 pm by Thaddy »
Black themes should be banned.

superc

  • Full Member
  • ***
  • Posts: 176
Re: postmessage uses Windows and MACOs
« Reply #2 on: March 14, 2022, 04:50:22 pm »
very usefull, Thank you very much

 

TinyPortal © 2005-2018