I have a Delphi 6 application with multiple forms. One important characteristic of the form selected in the Compiler Options to be the main form is that when it is minimized, all other forms (windows) in the application are minimized, and conversely, when it is restored all other forms that were visible are restored.
I would like to switch that trait of the main form to another form of the application at runtime so it acts like the main form in that sense (minimize/restore leadership). Is there a Delphi technique, or a Windows API call, that will allow me to do this? If not, is there a way to have a secondary form emulate this behavior that won't cause more problems than it's worth?