Recent

Author Topic: Stability of LCL Classes? (Porting Project to Lazarus 1.8RC5)  (Read 2453 times)

guest60499

  • Guest
Stability of LCL Classes? (Porting Project to Lazarus 1.8RC5)
« on: November 17, 2017, 06:53:45 am »
It seems that LCL classes are subject to change. This is problematic, as a project I work on contains bindings to the LCL that have become hard to maintain. An example follows. The solution was found, but is there a better way to track these changes? The release notes do not seem to contain all changes.

The following error is in reference to this unit.

Code: [Select]
procedure TControl_ShouldAutoAdjustLeftAndTop(const Params: PParamArray; const Result: Pointer); lape_extdecl
begin
  PBoolean(Result)^ := PControl(Params^[0])^.ShouldAutoAdjustLeftAndTop();
end;

Code: [Select]
lplclcontrols.pas(142,46) Error: identifier idents no member "ShouldAutoAdjustLeftAndTop"
Renamed and interface changed in this commit.

zeljko

  • Hero Member
  • *****
  • Posts: 1089
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Stability of LCL Classes? (Porting Project to Lazarus 1.8RC5)
« Reply #1 on: November 17, 2017, 12:27:31 pm »
It's changed in trunk. You should use stable version if you need stable api.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3655
  • I like bugs.
Re: Stability of LCL Classes? (Porting Project to Lazarus 1.8RC5)
« Reply #2 on: November 17, 2017, 02:24:25 pm »
Zeljko, it changed also in 1.8. Yes, it should be mentioned in release notes for sure. There seems to be a replacement function. The code should be easy to adjust.