Embarcadero RAD Studio XE2 中是否可以(本地)拥有嵌套表单?

发布于 2024-12-19 02:48:08 字数 201 浏览 5 评论 0原文

我正在构建一个应用程序,我希望在一个主窗体内有“嵌套”窗体,但我不知道如何使用任何组件来执行此操作。

我确信我可以很容易地编写一些类似的功能,但我不想走这条路,直到我确定没有“内置”选项/属性。

我使用的是 C++Builder 版本,但我很确定这在这里没有太大区别。

任何帮助将不胜感激,我对这个工具很陌生,在网上找不到任何关于这个的信息

I'm building an application where I'd like to have "nested" forms inside of one main form, but I can't figure out how to do this with any of the components.

I'm sure I could pretty easily code some similar functionality, but I didn't want to go down that road until I was sure there wasn't a "built-in" option/property for this.

I'm using the C++Builder version, but I'm pretty sure that doesn't make much of a difference here.

Any help would be greatly appreciated, I'm pretty new to the tool and couldn't find anything about this online

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

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

发布评论

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

评论(1

暮年慕年 2024-12-26 02:48:08

VCL 应用程序中,您可能正在寻找 MDI

将父窗体的 FormStyle 设置为 fsMDIForm,并将每个子窗口的 FormStyle 设置为 fsMDIChild

不过,您应该知道,MDI 已被弃用多年,并且大多数应用程序都不使用它。就连 MS Office 也已经放弃了 MDI 界面十多年,而是在内部实现了一些模仿它的东西。

In VCL applications, you're probably looking for MDI.

Set your parent form's FormStyle to fsMDIForm, and each of your child window's FormStyle to fsMDIChild.

You should be aware, though, that MDI has been deprecated for years now, and is not used by most applications. Even MS Office has forsaken the MDI interface for more than a decade, implementing something internally that mimics it instead.

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