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 ;) ) thanks in advance Laurent --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org For additional commands, e-mail: dev-h...@framework.openoffice.org