Apache OpenOffice (AOO) Bugzilla – Issue 82791
setVisibility(FALSE) doesn't hide control element
Last modified: 2007-11-18 12:40:55 UTC
This issue can be shown in this way: 1. Open a new writer document 2. Insert a test field (control element) 3. Make this macro: Sub Main odoc=thiscomponent oview= odoc.currentcontroller() obox=odoc.drawpage.getforms().getbyname("Standard").getbyname("TextBox") ctlr=oview.getcontrol(obox) ctlr.setDesignMode(False) ctlr.setVisible(False) End Sub 4. Run the macro in 2.3.0 the text field is still visible but 'deactivated'. In 2.2.1 and earlier the text field is hidden as expected. The same applies to control elements in calc
@ jsk: Please have a look.
I can confirm this (works in 2.0.3, does not work in 2.3.0 on Windows XP Pro)
reported (later) as issue 83611. I mark this earlier issue here as duplicate, since the later issue contains more information by now. The short story of issue 83611: setting a control invisible has never been an officially supported feature. The long-term solution would be to introduce a model property controlling the visibility. We currently are in a discussion whether there might be another solution. *** This issue has been marked as a duplicate of 83611 ***
closing duplicate