Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-02

cannot compile CPortLaz 1.0 with lazarus 0.9.28.x

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roberto Padovani

Hi all,

I cannot compile CPortLaz 1.0 with lazarus 0.9.28.2, nor with daily Lazarus-0.9.28.3-23634-fpc-2.4.0-20100205-win32.exe

The errors are:

C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(97,19) Error: This kind
of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(108,25) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(108,25) Error: This
kind of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(168,19) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(168,19) Error: This
kind of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(175,25) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(175,25) Error: This
kind of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(498,19) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(498,19) Error: This
kind of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(509,25) Error: No
property found to override
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(509,25) Error: This
kind of property can't be published
C:\lazarus\extras\Cportlaz_v1.0.0\CPortCtl.pas(561,1) Fatal: There
were 12 errors compiling module, stopping

maybe it is due to the new fpc or the most recent changes to LCL. Each error refers to the properties defined as:

published
    ....
    property Ctl3D;
    ...
    property ParentCtl3D;
    ...

in the following classes

TComComboBox = class(TCustomComboBox)
TComRadioGroup = class(TCustomRadioGroup)
TComTerminal = class(TCustomComTerminal)
where it is: TCustomComTerminal = class(TCustomControl)

is anyone using this (great) package successfully with the recent lazarus/fpc ?

Thanks,

Roberto

Reply by email

JoshyFun
to Roberto Padovani

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.

Best regards, JoshyFun

Reply by email

Roberto Padovani
to JoshyFun

2010/2/5 JoshyFun :

Show quoted text 28 lines
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

Show quoted text 11 lines
-- Best regards, ?JoshyFun -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email