Can't click on nodes in treeview
-
freegadgets
- Posts: 10
- Joined: Sat Dec 04, 2004 6:37 pm
- Location: Canada
Can't click on nodes in treeview
I created a tree menu, but there doesn’t seem to be a way to detect when node are clicked on? Is there any way to detect if the user right-clicks the mouse on node in a treeview, and which node they clicked on?
Re: Can't click on nodes in treeview
No, I don't think there is a public function to figure out the item for right-clicks so far.
You could copy CGUITreeView::mouseAction and use the part where it figure out the item.
It's probably line 708 to 734 (looks so on first view to me, I didn't write it so I'm not sure).
You could copy CGUITreeView::mouseAction and use the part where it figure out the item.
It's probably line 708 to 734 (looks so on first view to me, I didn't write it so I'm not sure).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm