I think i found the reason why resp. am near by.
As already slightly suspected, the 2.0.12 didn't only prevent "onCollapsing .. when clearing items" , but did something similar for the Expand code too (treeviw.inc):
//2.0.10
function TCustomTreeView.CanExpand(Node: TTreeNode): Boolean;
begin
Result := True;
if Assigned(FOnExpanding) then FOnExpanding(Self, Node, Result);
end;
//2.0.12:
function TCustomTreeView.CanExpand(Node: TTreeNode): Boolean;
begin
Result := True;
if Assigned(FOnExpanding) and not (tvsUpdating in FStates) then
FOnExpanding(Self, Node, Result);
end;
If i reactivate back (just for testing) the 2.0.10 function, then my prog is back again.
Obviously it is assumed (in the context of my app, but not in the simplified test case) that the node is in an
Updating state (shy? Due to BeginUpdate?) and
prohibits the Expand.
So it's simply the question how to reactiave the old behaviou back, if wanted. What might be the best way recommended?