Recent

Author Topic: IBX 2.4.0 error when building with Lazarus Trunk  (Read 327 times)

dsiders

  • Sr. Member
  • ****
  • Posts: 448
IBX 2.4.0 error when building with Lazarus Trunk
« on: March 23, 2021, 09:44:22 pm »
A recent change in Lazarus trunk has created a problem when building IBX 2.4.0. tvsUpdating was removed from the TTreeViewState enumeration, and subsequently from TCustomTreeView.States. As a result, TDBTreeView.Delete in IBX now fails to compile.

Sounds similar to regex issues. I wasn't sure if you explicitly support Lazarus trunk, or not. If not, consider this a "heads up".

And for reference:

Code: Pascal  [Select][+][-]
  1. procedure TDBTreeView.Delete(Node: TTreeNode);
  2. begin
  3.   if not (tvsUpdating in States) {TreeNodes being cleared}
  4.      and not (tvsManualNotify in States) {Tree Collapse with node delete}
  5.      and ScrollToNode(TDBTreeNode(Node)) then
  6.      DataSet.Delete;
  7.   inherited Delete(Node);
  8. end;
Lazarus 2.0.12 / 2.1 (SVN) / FPC 3.0.4 / FPC 3.2.0 / x86-win64 / Windows 8.1

jamie

  • Hero Member
  • *****
  • Posts: 4440
Re: IBX 2.4.0 error when building with Lazarus Trunk
« Reply #1 on: March 23, 2021, 11:32:48 pm »
Report it before it goes on forgotten, Please.

Maybe too much was taken out of it.
The only true wisdom is knowing you know nothing

dsiders

  • Sr. Member
  • ****
  • Posts: 448
Re: IBX 2.4.0 error when building with Lazarus Trunk
« Reply #2 on: March 24, 2021, 12:09:15 am »
Report it before it goes on forgotten, Please.
Maybe too much was taken out of it.

Do you mean as a bug against TCustomTreeView / TTreeNodes?

I can, but I'm not sure they will reconsider. There is no other code using the state value in the LCL codebase. Hence, their willingness to remove it.
Lazarus 2.0.12 / 2.1 (SVN) / FPC 3.0.4 / FPC 3.2.0 / x86-win64 / Windows 8.1

 

TinyPortal © 2005-2018