新的 MDI 子项调整其他最大化表单的大小

发布于 2024-08-09 19:00:13 字数 266 浏览 3 评论 0原文

我有一个带有主 MDI 表单的项目。里面有一个子MDI窗体,它始终存在并且无法关闭(是否可以在保留最小和最大按钮的同时隐藏关闭按钮?)。因为子窗体是程序的重要组成部分,所以用户喜欢将其最大化。当另一个 MDI 子项弹出时,最大化的窗体将恢复到其原始大小。

有没有办法让 MDIchild 最大化,而其他窗体漂浮在前面?或者只能在任何特定时间最大化活动形式?

编辑-我专门寻找VB6是否支持这样的操作。尽管解决方法可能会有所帮助,但我更喜欢简单的是或否的答案。到目前为止,这似乎是“不”。

I have a project with a main MDI form. There is a child MDI form inside that is always present and cannot be closed (Is it possible to hide the close button while keeping the min and max buttons?). Because the child form is such an important part of the program, users like to have it maximized. When another MDI child pops up, the maximized form returns to its original size.

Is there a way to keep an MDIchild maximized with other forms floating around in front? Or can only the active form be maximized at any particular time?

EDIT - I'm specifically looking for whether or not VB6 supports such an operation. Although work-arounds may be helpful, I'd prefer a simple yes or no answer. So far it seems like 'no'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

星軌x 2024-08-16 19:00:13

不久前我遇到了类似的问题,我很确定你所描述的是处理这件事的正常方式。我要做的就是打开那个重要的表单,使其填充整个 MDI 子区域,但不会将其最小化-最大化按钮放在工具栏中。将其锁定并锚定在那里,然后处理 closequery 方法以不允许其关闭。

I had a similar issue a while back, I'm pretty sure that what you're describing is the normal way this things should be handled. What I'd do is open that important form up so that it fills the whole MDI child area, but doesn't put its minimize-maximize buttons in the toolbar. Lock and anchor it there then handle the closequery method to not allow it to be closed.

⒈起吃苦の倖褔 2024-08-16 19:00:13

如果有问题的子 MDI 窗体“始终存在”并且用户喜欢将其保持最大化,那么它确实不应该是子窗体。相反,将 GUI 功能从此窗体移至主窗体。您可以将这些控件放在面板(或其他停靠控件)上,以便用户可以根据需要隐藏和显示它。

If the child MDI form in question is "always present" and users like to keep it maximized, then it really shouldn't be a child form. Instead, move the GUI features from this form to the main form. You can put these controls on a panel (or other docking control) so that users can hide it and show it as required.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文