Board index » delphi » D3: Create and Destroy TabSheets with Components dynamically

D3: Create and Destroy TabSheets with Components dynamically

Does anyone out there have the D3 source code to dynamically create and
destroy TTabSheets with components on them (i.e. TRichEdit)?

Thanks in advance.

 

Re:D3: Create and Destroy TabSheets with Components dynamically


Hi Clayton

I haven't tried till now. But I think, to create and add a TabSheet you
need something like this:

   MySheet := TTabSheet.Create(self);
   MySheet.Caption := 'New';
   MySheet.Parent := MyPageControl;
   MySheet.PageControl := MyPageControl;

To destroy the Sheet, you may use MySheet.Free (and MySheet := nil).

Hans-Georg.

------------------------------------------------------------------------
ibo Software GmbH
Development
Hans-Georg Stambke
Sandusweg 3
D-35435 Wettenberg
Tel.: 0641/98210-70
Fax: 0641/98210-60
email: hgstam...@ibo.de
Internet: http://www.ibo.de

Other Threads