Slastraf Posted February 2, 2021 Share Posted February 2, 2021 Hello, I am yet challenged by adding nodes, namely a subnode to a selected node. shared_ptr<TreeViewNode> *currentNode; ... case EVENT_WIDGETSELECT: ... if(event.extra->As<TreeViewNode>()) *currentNode = event.extra->As<TreeViewNode>(); ... currentNode->addNode(); // currentNode has no member addNode() I think the code is self explainatory. How do I make this right ? regards Quote Link to comment Share on other sites More sharing options...
Josh Posted February 3, 2021 Share Posted February 3, 2021 Get rid of the *. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Slastraf Posted February 3, 2021 Author Share Posted February 3, 2021 I understand pointers at a fundamental level but the flip did not switch yet in production, I wish the kit would be available in c# Quote Link to comment Share on other sites More sharing options...
Josh Posted February 3, 2021 Share Posted February 3, 2021 And of course "addNode" should be "AddNode". 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.