Jump to content

How to catch mouse right-click event in WidgetTreeBox?


photo

Recommended Posts

I would like to allow the user to open a context menu when right-clicking on an item in a TreeBox. In the menubox_01 UnigineScript sample, the Label widgets have GUI_PRESSED callbacks attached. I have tried mimicking this implementation with TreeBox, but GUI_PRESSED and GUI_CLICKED callbacks only fire with left mouse button, not right button. How can I elegantly capture RMB press inside TreeBox?

 

I would also expect right mouse button to change item selection in TreeBox, but it is ignored.

Link to comment
×
×
  • Create New...