lars.saalbach Posted October 25, 2012 Posted October 25, 2012 Hello Unigine-Team, at the moment i'm developing a new GUI for our project. So, like wrote in the title, I need a right click event on widgets. I read the topic: https://developer.unigine.com/forum/topic/933-right-click-callback-from-script/page__hl__right+click__fromsearch__1 But it doesn't help me much. I got a list of "Users" and I want to show a "ContextMenu" by right clicking on a user to handle some actions, the context menu is dynamic for each user. Please provide me an example how I can handle this. Yes I know I could handle it with a "PRESSED" event for a label, and check the mouse type. But really, is this very USABLE to handle? (Sarcasm) I mean, 50 labels, which each is layed down to a callback. And 50 labels, which need to be created, attached, sized, customized whatever. Best regards Lars
frustum Posted November 7, 2012 Posted November 7, 2012 Actually, it's very easy. I've made a sample for you. "samples/widgets/menubox_01" sample will be available in the upcoming SDK.
Recommended Posts