Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top