#1 2019-04-11 07:08:14

larand54
Member
Registered: 2018-12-25
Posts: 96

SynTaskDialog problem with FPC/Lazarus

Trying to make sample 16 to work with Lazarus and are stopped out by synTaskDialog which are used by mORMotUILogin.
I found that in mORMotUILogin there is a compiler switch that refer to:

  {$ifdef FPC}
  SynTaskDialog in '.\Samples\ThirdPartyDemos\Ondrej\SynTaskDialog4Lazarus\SynTaskDialog.pas',
  {$else}
  SynTaskDialog,

But I can see that it is the version of synTaskDialog from the ordinary mORMot library that is used and that one won't compile with FPC.

I find it very odd to have a standard library unit that refer to a sample third party unit. Is that good programming?

Ok, that's that.. but isn't it possible to have FPC work with this fundamental unit?


Delphi-11, WIN10

Offline

#2 2019-04-11 09:33:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: SynTaskDialog problem with FPC/Lazarus

mORMotUI and friends are currently NOT compatible with the LCL/Lazarus - only with the VCL/Delphi.

There is preliminary support, but nothing finalized, since we don't use it on production (we rely not on mORMotUI but on direct JSON client).

Any input is welcome!

Offline

#3 2019-04-11 14:49:35

larand54
Member
Registered: 2018-12-25
Posts: 96

Re: SynTaskDialog problem with FPC/Lazarus

Ok, I understand. I'll skip that part of the sample to get forward.
I'm new to mORMot and it's not an easy beast to tame so I feel that I'm not ready yet to come with any proposal here. Maybe in the future wink


Delphi-11, WIN10

Offline

Board footer

Powered by FluxBB