ataylor Posted September 8, 2015 Share Posted September 8, 2015 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
maxi Posted September 9, 2015 Share Posted September 9, 2015 Hi Adam, This will be fixed in next release. Untill then you can rebuild engine using attached file (engine/source/engine/gui/widgets/WidgetTreeBox.cpp) WidgetTreeBox.cpp Link to comment
Recommended Posts