procedure TForm1.TabControl1Change(Sender: TObject);
begin
case TabControl1.tabIndex
of 0: Frame0.BringToFront;
of 1: Frame1.BringToFront;
...
end;
end;
1.form可以是frame 的owner. 相反则不行.
2.frame is a container for other components.But frames can be nested within forms or other frames, and they can be saved on the Component palette for easy reuse.