On Wednesday 21 March 2007, + [EMAIL PROTECTED] wrote:
> 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("priva
>t 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?

Hi,
 Please try 2.2 of OpenOffice.org. 

If that does not work then ask on [email protected] as they are more 
familiar with using the API of OpenOffice.org.

Please reply to [email protected] only


-- 
CPH : openoffice.org contributor

Maybe your question has been answered already?
                                http://user-faq.openoffice.org/#FAQ

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to