Can't click on nodes in treeview

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
freegadgets
Posts: 10
Joined: Sat Dec 04, 2004 6:37 pm
Location: Canada

Can't click on nodes in treeview

Post by freegadgets »

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?
CuteAlien
Admin
Posts: 10024
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Can't click on nodes in treeview

Post by CuteAlien »

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).
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
Post Reply