|Re: Howto dispose an MWindow? [message #959107 is a reply to message #959066]
||Fri, 26 October 2012 13:01
| Thomas Schindl
Registered: July 2009
So you are saying that toBeRendered(false) is only making the Shell|
invisible (visible=false)? I would expect toBeRendered to dispose the
Remembering the current position makes sense, because the MWindow stays
part of the workbench model and so opens on the next time at the old
position. So if you also want to wipe it from the model you need to
remove it from there manually!
IMHO toBeRendered=false should (and does) dispose the underlying shell.
Am 26.10.12 14:31, schrieb Alex Kipling:
> The difference is in different window behaviour:
> When I use toBeRendered(false), then the Windows remembers its last
> position, when it reapears.
> It won't happen, when closing Windows by the shell-close-button.
> The other difference is in code:
> When I close the Window by the ShellButton, the shell is disposed, so I
> have to restructure my code, to recreate the Window, when it should
> The toBeRendered(false) doesnt dispose teh window, so I doesnt't have to
> recreate the Window on toBeRendered(false).
Powered by FUDForum
. Page generated in 0.02447 seconds