How to dynamically create customized TabSheet runtime
问题 I would like to create a TTabsheet which has to be create during run time. The TTabSheet has several components, but all of these components will be identical on every tab. Is it possible to create a "type" variable which will create these tabs every time? Thanks 回答1: Yes. You could create inherited class from TTabSheet TCustomTabSheet = class(TTabSheet) public constructor Create(AOwner : TComponent); override; public FTestButton : TButton; end; constructor TCustomTabSheet.Create(AOwner :