当最后一部分关闭时,如何使日食部分堆栈不消失? [英] How to make an eclipse partstack not disappear when the last part is closed?

查看:135
本文介绍了当最后一部分关闭时,如何使日食部分堆栈不消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个包含mpartstack的主窗口的项目,我从另一个部分动态添加零件。问题是当最后一部分关闭时,mpartstack消失,另一部分占用所有空间。当我尝试添加新零件时,没有任何反应。



我尝试在添加到堆栈的部分中使用preDestroy函数,尝试添加一个新的部分。 preDestroy偶尔做的工作,但远远不能令人满意。



我已经看得很远,试图找到任何关于做什么的线索,但除了一些这个问题的错误报告。



所以:mpartstack是否可以处于不可封闭的状态,还是有任何教科书方式拦截即将关闭的部分? p>

提前感谢
/ K

解决方案

添加标签 NoAutoCollapse 到模型中的 MPartStack 定义。


I'm working on a project with a main window consisting of a mpartstack where I add parts dynamically from another part. The problem is that when the last part gets closed the mpartstack disappears and the other part takes up all the space. When I try to add new parts nothing happens.

I've tried fiddling around with the preDestroy function in the parts that are added to the stack by trying to add a new part. The preDestroy works occasionally but far from satisfactory.

I've looked far and wide to try to find any clue on what to do but I've found nothing except for some bug reports on the matter.

So: can a mpartstack be in a uncloseable state or is there any textbook way to intercept a part that is about to be closed?

Thanks in advance /K

解决方案

Add the tag NoAutoCollapse to the MPartStack definition in the model.

这篇关于当最后一部分关闭时,如何使日食部分堆栈不消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆