| [E4AP] Hiding Ui Elements [message #915604] |
Mon, 17 September 2012 12:10  |
Christoph Keimel Messages: 277 Registered: December 2010 Location: Germany |
Senior Member |
|
|
Hello
From reading Bug 372211 I understand, that the attribute toBeRendered should be used to hide UIElements. I played with this and found out that setting toBeRendered = false has different results for different parts of the model:
a) Used on a Part, PartStack, PartSash it will destroy the element and remove it from the model
b) Used on a HandledMenuItem or HandledToolItem it will hide the element but leave it in the model
This inconsistency makes it difficult to work with persisted models. What is the desired behaviour?
I wanted to hide ui elements without removing them from the model, so I can show/remove elements based on user settings and/or security credentials. Of course this implies, that I would also like to be able to reactivate an element. Is using toBeRendered the best practise in this case?
Thanks
Christoph
[Updated on: Mon, 17 September 2012 12:10] Report message to a moderator
|
|
|
|
| Re: [E4Ap] Hiding Ui Elements [message #915902 is a reply to message #915630] |
Tue, 18 September 2012 03:26  |
Christoph Keimel Messages: 277 Registered: December 2010 Location: Germany |
Senior Member |
|
|
Hi Tom
thanks for the quick reply. You are right ... as a test case revealed. We had a bug in our code causing the problem. Good to know we are on the right track.
Greetings
Christoph
|
|
|
Powered by
FUDForum. Page generated in 0.04843 seconds