[Lazarus] cannot compile CPortLaz 1.0 with lazarus 0.9.28.x

Roberto Padovani padovani.r at gmail.com
Fri Feb 5 15:59:15 CET 2010


2010/2/5 JoshyFun <joshyfun at gmail.com>:
> Hello Lazarus-List,
>
> Friday, February 5, 2010, 12:04:06 PM, you wrote:
>
> RP> Hi all,
>
> RP> I cannot compile CPortLaz 1.0 with lazarus 0.9.28.2, nor  with daily
> RP> Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe
> RP> The errors are:
> RP> C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error: No
> RP> property found to override
> [...]
> RP> maybe it is due to the new fpc or the most recent changes to LCL.
> RP> Each error refers to the properties defined as:
> RP> published
> RP>     ....
> RP>     property Ctl3D;
> RP>     ...
> RP>     property ParentCtl3D;
> RP>     ...
> RP> in the following classes
> [...]
> RP> is anyone using this (great) package successfully with the recent lazarus/fpc ?
>
> Those properties are legacy and have no sense in modern (post win3.11)
> operative systems, so simple edit your code and remove any reference
> to Ctl3D or ParentCtl3D it does not affect anything in your code.
>

Ok, thanks. I have removed all of those references, except for one
because the following code is using it:

if FBorderStyle = bsSingle then
    begin
      if Ctl3D then
        Border := SM_CXEDGE
      else
        Border := SM_CXBORDER;
      NewWidth := NewWidth + 2 * GetSystemMetrics(BORDER);
    end;

So I just created that property, instead of inheriting it, and I kept it there.
Everything now works fine, but the maintainer of CPortLaz should fix
the code on the Lazarus CCR.
Anyone knows him?

thanks again,

  Roberto

> --
> Best regards,
>  JoshyFun
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



More information about the Lazarus mailing list