Fluid Form Layout in Delphi

I think your best option is to use a component that handles the layout of your vcl controls on your form in runtime (depending on the conditions that you define). I recommend you try the Devexpress ExpressLayout Control

you can find two great demo videos here

  • ExpressLayout Control - How to Customize Layout Views
  • ExpressLayout Control - Create and Customize a Simple Layout

alt text
(source: devexpress.com)

You can check these features

Auto-Management - Control groups and individual control elements are automatically managed by the Layout Control. You never worry about pixel-by-pixel positioning.

Form auto-sizing - The form can be automatically resized to fit its contents best.

Bye.


Now, I'm not sure how complex layout you have, but I guess you can use TFlowPanel and/or TGridPanel for this. Flowpanel has a nice handling of components that change visiblity. I'm not sure how well gridpanel handles the same...