Recent

Author Topic: What is Lazarus equivalent of the Consts unit, and TWTimer and WM_TIMER?  (Read 3510 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
I am trying to compile some units from the Synopse framework which is designed mainly for Delphi and I need the Lazarus equivalents for some units and constants.

The Consts unit

WM_TIMER and TWMTimer which are used in a THintWindow unit. I am not sure if these are for the mORMot's own UI library for part of Delphi itself.

In the case of the Windows unit, I replace the code with:
Code: [Select]
  {$ifdef FPC}
  LCLIntf, LCLType, LMessages,
  {$else}
  Windows,
  {$endif}

Are there other units besides these three units?
Lazarus 3.0/FPC 3.2.2

taazz

  • Hero Member
  • *****
  • Posts: 5368
I am trying to compile some units from the Synopse framework which is designed mainly for Delphi and I need the Lazarus equivalents for some units and constants.

The Consts unit

WM_TIMER and TWMTimer which are used in a THintWindow unit. I am not sure if these are for the mORMot's own UI library for part of Delphi itself.

In the case of the Windows unit, I replace the code with:
Code: [Select]
  {$ifdef FPC}
  LCLIntf, LCLType, LMessages,
  {$else}
  Windows,
  {$endif}

Are there other units besides these three units?

WM_Timer is a windows only message, probably already used from the TTimer component in lcl. The only thing you have to remember is to use LMessages and rename the message from wm_xxxxx to lm_xxxxx.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018