Hello, I need to manage by macro the visualization of a button within a writer document. If I add a button with property "Visible" set on Yes, everything works fine, while if I add an invisible button, there's no way to change its state to visible.
oDoc = TextComponent oButton = oDoc.DrawPage.Forms.GetByIndex(0).getByName("MyButton") oButtonCtrl = oDoc.CurrentController.getControl(oButton) oButtonCtrl.setVisible(True) 'doesn't work MsgBox oButtonCtrl.isVisible 'false, it's still invisible I execute this code on Windows 7, OOO330m20 (Build:9567). Any idea? Thanks. Cesare -- ----------------------------------------------------------------- To unsubscribe send email to dev-unsubscr...@openoffice.org For additional commands send email to sy...@openoffice.org with Subject: help