context menu when right clicking on objects in 3d view

Jan 6, 2014 at 8:32 PM
I would like to have a context menu to pop up when I right click on an object.
Two questions:
1) does Helix have any functions to create menus?
2) right click seems to control the camera, is there a way to override that? or switch camera control to a combination of left and right click buttons together?
Jan 7, 2014 at 5:27 AM
I don't know it Helix has GUI functions - although you could just pop a menu by the cursor using system API.
About how to control the camera, you can select which button (gesture) does what like this for example:
v3d.RotateGesture = new System.Windows.Input.MouseGesture(MouseAction.LeftClick);
where v3d is HelixViewport3D type.
Jan 7, 2014 at 10:44 PM
1) Use a standard WPF ContextMenu
2) Yes, change the gesture as AnotherBor suggests
Jan 9, 2014 at 5:28 PM
Thank you!