How to disable menu and context menu into Spark

Hello,

Is there a way to disable or grey out some menus or context menus into Spark?

Thanks a lot!

Only by editing the source code and compiling your own version.