Child-Form container

Started by Petrus Vorster, March 25, 2016, 06:18:23 PM

Previous topic - Next topic

Petrus Vorster

Something like a Tab-control, but without the tabs.
It is so easy to manage child-forms with this, but it should just have had a tab "on/off" switch and had allowed for background colour changes and cosmetic settings.
Everything is moving over to this "one form" look, and the tabcontrol has perfect functionality, but limited settings.
This will make a lot of people very happy!!!
-Regards
Peter

Paul Squires

Why not just use a Form and set its "TabControlChild" property to TRUE. You can then load the Form as non-modal and use it as a container for controls. You can show/hide this child form just like any other control and all child controls residing on that Form will automatically be hidden also. I use this easy technique all the time. The "Project Properties" and "Environment Options" in the FF designer itself uses these techniques.
Paul Squires
PlanetSquires Software

Petrus Vorster

I know you have been showing this, and i have been looking at older projects about this.
For some reason, whenever I have a childform on display and the main form re-sizes, the whole thing goes to pot.
I would still like the drag-drop-and-forget benefits a control offers, but if you would run through this again on the sizing of the child-forms , i will be very happy.
-Regards
Peter