Recent

Author Topic: [SOLVED] Notice: procedure OffsetRect() has removed from LCLProc  (Read 1064 times)

paweld

  • Hero Member
  • *****
  • Posts: 970
In Lazarus trunk, the OffsetRect() procedure has been removed from LCLProc. In all units that use this procedure, add a Types unit to uses section.
In the components I use, the changes should be made in:
- VisualPlanIt
- jvcllaz
- rx
- BGRA Controls
- mbColorLib 
 
Commit: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/1475336c8cce828b2059e917d0089753f66e8e26
« Last Edit: June 06, 2023, 09:57:01 pm by paweld »
Best regards / Pozdrawiam
paweld

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #1 on: June 06, 2023, 07:22:21 pm »
I lost a few hours today before I figured out that ...

We are encouraged to use/test trunk but it can be a real punition !


wp

  • Hero Member
  • *****
  • Posts: 11854
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #2 on: June 06, 2023, 08:26:05 pm »
VisualPlanIt, JVCLLaz, and mbColorLib fixed in the CCR repository.

TRon

  • Hero Member
  • *****
  • Posts: 2433
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #3 on: June 06, 2023, 08:52:12 pm »
In Lazarus trunk, the OffsetRect() procedure has been removed from LCLProc. In all units that use this procedure, add a Types unit to uses section.
Your change ? in which case, see: https://forum.lazarus.freepascal.org/index.php/topic,63588.msg481837/topicseen.html

paweld

  • Hero Member
  • *****
  • Posts: 970
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #4 on: June 06, 2023, 09:09:51 pm »
Quote from: TRon
Your change ?
Not mine.
Informs to make it easier to track down the problem when compiling additional packages, such as in the thread you attached.
Best regards / Pozdrawiam
paweld

paweld

  • Hero Member
  • *****
  • Posts: 970
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #5 on: June 06, 2023, 09:13:21 pm »
@wp: Thank you.
Best regards / Pozdrawiam
paweld

TRon

  • Hero Member
  • *****
  • Posts: 2433
Re: Notice: procedure OffsetRect() has removed from LCLProc
« Reply #6 on: June 06, 2023, 09:24:58 pm »
@paweld: In that case my apologies and thank you for the notice.

paweld

  • Hero Member
  • *****
  • Posts: 970
[SOLVED] Notice: procedure OffsetRect() has removed from LCLProc
« Reply #7 on: June 06, 2023, 09:56:24 pm »
@JuhaManninen added a new commit, which eliminates the problem.
Thanks @Juha.
Best regards / Pozdrawiam
paweld

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: [SOLVED] Notice: procedure OffsetRect() has removed from LCLProc
« Reply #8 on: June 07, 2023, 12:38:12 am »
The issue did affect also the unit LCLIntf in which another OffsetRect had been removed. Juha has fixed this in the meantime as well.

He marked the restored procedurs in LCLIntf and LCLProc as deprecated indicating that they will be removed in the release version after the upcoming one. So, please update your code already now, before you will be caught again: Every unit calling these deprecated procedures must have unit Types in its uses clause.


 

TinyPortal © 2005-2018