04-27-2019, 05:01 PM
Unfortunately I cannot compile the demo as I don't have Delphi.
I have ploughed through the code and as far as I can see the simplest operation boils down to what I illustrated above, ie (combining the caption with the Add):-
tnp = LogTreeView->Items->Add( NULL, "First Node" );
snp = LogTreeView->Items->Add( tnp, "First Sub Node" );
LogTreeView->Items->Add( NULL, "Second Node" );
It remains completely non-functional (can't contract node, can't get TreeItemClick to fire). I put a button on the form to make sure it wasn't general, the button works fine.
I have ploughed through the code and as far as I can see the simplest operation boils down to what I illustrated above, ie (combining the caption with the Add):-
tnp = LogTreeView->Items->Add( NULL, "First Node" );
snp = LogTreeView->Items->Add( tnp, "First Sub Node" );
LogTreeView->Items->Add( NULL, "Second Node" );
It remains completely non-functional (can't contract node, can't get TreeItemClick to fire). I put a button on the form to make sure it wasn't general, the button works fine.