Slastraf Posted February 2, 2021 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
Josh Posted February 3, 2021 Posted February 3, 2021 Get rid of the *. Quote Let's build cool stuff and have fun.
Slastraf Posted February 3, 2021 Author 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
Josh Posted February 3, 2021 Posted February 3, 2021 And of course "addNode" should be "AddNode". 1 Quote Let's build cool stuff and have fun.
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.