Hello,
I'm creating my own workbench and i need to remove context menu(on right click) from 3dView.
is there any way to do that?
[SOLVED] Remove context menu from 3dView
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 12
- Joined: Thu Oct 14, 2021 3:34 pm
[SOLVED] Remove context menu from 3dView
Last edited by DenysKovalenko on Thu Nov 04, 2021 3:22 pm, edited 1 time in total.
Re: Remove context menu from 3dView
The context-menu is created in the virtual function NavigationStyle::openPopupMenu. The class View3DInventorViewer has the function setPopupMenuEnabled() to disable the context-menu.
-
- Posts: 12
- Joined: Thu Oct 14, 2021 3:34 pm
Re: Remove context menu from 3dView
Thanks for reply, but is there any way to do that in Python?
Cause i checked View3DInventorViewerPy class and there no setPopupMenuEnabled() function
Re: Remove context menu from 3dView
I have added this function today to the current developer version. git commit 9def811a3a49284DenysKovalenko wrote: ↑Tue Nov 02, 2021 2:09 pm Cause i checked View3DInventorViewerPy class and there no setPopupMenuEnabled() function
Do you use this version or the release v0.19?
-
- Posts: 12
- Joined: Thu Oct 14, 2021 3:34 pm
Re: Remove context menu from 3dView
Im using dev version and after update everything works for me.
Thanks for help
Thanks for help