04-17-2019, 03:57 PM
(04-17-2019, 01:53 PM)Jose Nilton Pace Wrote: Hi Denville, see this demo in IW15.
Thanks for the reply. Being a c++ man Pascal is a bit obscure to me - nevertheless, using the demo code and peeking at the .hpp file I am now able to create a sub-node..
TIWTreeViewItem* tnp = LogTreeView->Items->Add( NULL, Node_text );
LogTreeView->Items->Add( tnp, Subnode_text );
However the main node is displayed expanded with the sub-nodes all visible; clicking on the + or - has no effect, and this is the case regardless of whethrer I set tnp->Expanded to false, true, or leave it alone. I need it to start not expanded and expand when the user clicks on + !
Also, I implemented the TreeItemClick event but nothing seems to fire this - I notice that it is not designate an Async event, I also noticed the AsyncMode property and tried this True and (default) false, but with no success.
Denville.