Issue 82791 - setVisibility(FALSE) doesn't hide control element
Summary: setVisibility(FALSE) doesn't hide control element
Status: CLOSED DUPLICATE of issue 83611
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.3
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-19 15:55 UTC by lapont
Modified: 2007-11-18 12:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description lapont 2007-10-19 15:55:35 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
Comment 1 Olaf Felka 2007-10-22 08:37:48 UTC
@ jsk: Please have a look.
Comment 2 dfrench 2007-10-24 01:49:19 UTC
I can confirm this (works in 2.0.3, does not work in 2.3.0 on Windows XP Pro)
Comment 3 Frank Schönheit 2007-11-17 21:00:18 UTC
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 ***
Comment 4 Frank Schönheit 2007-11-18 12:40:55 UTC
closing duplicate