Adding TabSheets to PageControl component
Posted on 2000-04-27
I want to make a pagecontrol component with several tabsheets on it.
When I try to place it on a form, I get an error "Control '' has not parent window".
His is my Create method for the pagecontrol component.
Height := 280;
Width := 580;
tbsPage1 := TTabSheet.create(Self);
tbsPage1.PageControl := Self;
As soon as I add the .PageControl line of code, I can no longer add the component to any forms.
What am I doing wrong?