You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since about two weeks, the bgracontrols package cannot be compiled anymore against LCL trunk. The reason for this is that several deprecated functions were removed from the LCL, but are still used by bgracontrols:
This unit used the old GetImageIndex() and LoadImage() functions.
393c393< function _LoadImage(AIdx: Integer; const AName: String): Integer;---> function _LoadImage(AImgSize: Integer; const AName: String): Integer;395c395< Result := IDEImages.GetImageIndex(AIdx,AName);---> Result := IDEImages.GetImageIndex(AName,AImgSize);397c397< Result := IDEImages.LoadImage(AIdx,AName);---> Result := IDEImages.LoadImage(AName,AImgSize);
bcbutton.pas
This unit uses FreeThenNil(), which is now only available in the LazUtilities unit. Alternative solution: Replace FreeThenNil() by the standard FreeAndNil().
This unit uses FreeThenNil(), which is now only available in the LazUtilities unit. Alternative solution: Replace FreeThenNil() by the standard FreeAndNil().
Since about two weeks, the bgracontrols package cannot be compiled anymore against LCL trunk. The reason for this is that several deprecated functions were removed from the LCL, but are still used by bgracontrols:
LCL Remove OffsetRect:
(this was just a call to the Types.OffsetRect function and in that sense redundant)
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/476da882fa0bc48e411822358f56353f4b9d3d20?page=2#f8c1f4e737095e4972d72ad0e5c6fa2e2c114d0b
LCL Remove FreeThenNil:
(this was deprecated, use LazUtilities.FreeThenNil instead)
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/476da882fa0bc48e411822358f56353f4b9d3d20?page=2#44e1506a2432d5f9f804f40021c9dc16d70edabc
LCL Remove GetImageIndex / LoadImage:
(this was deprecated, use the other overload instead)
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/fddb4de9bcdfc5face742cf2bdf606de5d882d08#d93520908061a62daa1d4d6bccd908f1e40102a1
Solution
The solution is to use the new functions instead.
bcstylesform.pas
This unit used the old GetImageIndex() and LoadImage() functions.
bcbutton.pas
This unit uses FreeThenNil(), which is now only available in the LazUtilities unit.
Alternative solution: Replace FreeThenNil() by the standard FreeAndNil().
bcbuttonfocus.pas
This unit uses FreeThenNil(), which is now only available in the LazUtilities unit.
Alternative solution: Replace FreeThenNil() by the standard FreeAndNil().
bgraspriteanimation.pas
This unit uses OffsetRect, which is now only available in the Types unit.
The text was updated successfully, but these errors were encountered: