I have just migrated from OpenOffice 2.0.3 to OpenOffice 2.1.
My problem is to disable one of main menu items from OOBasic code (I must
not use the configuration).

In OO 2.0.3 this code worked fine:

myMenu =
ThisComponent.getCurrentController.getFrame.LayoutManager.getElement("privat
e:resource/menubar/menubar").XMenuBar
myMenu.enableItem(myMenu.getItemId(1), false)

In OO 2.1 it doesn't work. Executing this code I receive grayed menu label,
but it becames active and accessible if I click on it or any another menu
item.

What should I do to make it inactive as it was in previous versions?

I look forward to your reply.
Pash

Reply via email to