In my application, there is a menu that opens the document properties window when clicked. However, I am facing an issue where the application menu gets inherited by the document properties window itself, allowing you to open another document properties window from within it. I am looking for a way to disable the menu specifically for the document properties window without making the window frameless as I still want the title bar to be visible.
I have attempted various methods such as docProps.removeMenu(), docProps.setMenu(null), and even docProps.setApplicationMenu(null) but none of them seem to work. I have tried moving the code around, making docProps a global variable, but nothing has seemed to solve the problem.
Here is the snippet of my code:
// Code goes here
You can access the entire project on https://github.com/Leglaine/ElectroText
When trying to call docProps.setApplicationMenu(null), I receive an error message stating that setApplicationMenu cannot be called on docProps. Any assistance would be greatly appreciated. Thank you!