Hi Laurent,

On 13.09.2010 17:01, Laurent Godard wrote:
Hi all

i have a macro running and i want to deactivate OOo while it is running,
so that the user can't activate any menu nor click inside the sheet

under windows&  linux, it works using
thisComponent.CurrentController.Frame.ContainerWindow.Enable = False

But under macosX, the main menus (File, Edit, ...) are still active

I tried adding
oLayout = ThisComponent.CurrentController.getFrame.LayoutManager
oLayout.HideElement("private:resource/menubar/menubar/")
and it works under linux and  windows, the main menus disappear

But no success under MacOsX i think due to menus detached of the OOo
document window

is there any trick to lock OOo main menu under macOsX ?
(the best would be cross-plateform compatible ;) )

When I saw your post some weeks ago, I recognized that I couldn't help, so I didn't answer and hoped that someone else would step in.

Unfortunately it looks as if noone subscribed to this list can help. My gut feeling is that it is not possible to disable the Mac menu bar, but that may be wrong. In case an answer would still help you, I can forward that to some colleagues that know the Mac better.

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "nospamfor...@gmx.de".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to