My application has a form that is used to design other forms and contains an Object Inspector (bas ascii art follows)
----------------------- |obj | design forms | |insp| here | | | | -----------------------
therefore, the main form of the application contains the form of the object and another form on which the components can be placed (there also is a toolbar at the top to select components, but I did not show this).
Now, if I make the main shape larger, I would like the content to expand to fit it ...
------------------------------- |obj | design forms | |insp| here | | | | | | | | | | -------------------------------
therefore my form "form designer" has Align := alClient;
but if I put a component on it so that it overlaps the edge ...
------------------------------- |obj | design forms | |insp| here ----------- | | |component| | | ----------- | | | -------------------------------
the screen of course displays
------------------------------- |obj | design forms | |insp| here -----| | | |comp| | | -----| | | | -------------------------------
and i need an auto scroll bar.
But it seems that Align := alClient; overrides AutoScroll: = true;
Any idea how to resolve this conflict? 1) the designer’s area should decrease and grow, always filling the right side of the main form when changing the main form 2) if a component is placed that will hang over the edge of the designer’s form, then it should increase the scroll bar
OR Am I completely missing the point? I have code that handles component placement - should I check it if I need to add scroll bars?