I have a delphi application that used a PageControl
with a number of TabSheets
. I also create new TabSheets
at runtime and populate them with instances of predefined frames. These frames work well, except for the cosmetic problem of not centering on the TabSheet
. I have tried to use Frame.Align := alClient
, but that didn't do it. The relevant code follows:
CreateNewPage(3);
NewLimitedChoiceFrame := TLimitedChoiceFrame.Create(NewInputPage);
NewLimitedChoiceFrame.Parent := NewInputPage;
CreateNewPage
creates a new instance of a TabSheet
and makes the PageControl
it's owner and parent. The result is assigned to the global variable NewInputPage
.