Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to dynamically create tabsheets?

Status
Not open for further replies.

cjtaylor

Programmer
Aug 12, 2001
69
0
0
US
I'm wonder how to dynamically create tabsheets and have them show up on my Pagecontrol without very much luck. I'm able to dynamically create other contols but not the tabsheet, I'm doing it like this

TTabSheet *Tab2;

Tab2 = new TTabSheet(this);
Tab2->Parent = PageControl1;
Tab2->Visible = true;
Tab2->TabVisible = true;

Any help would be appreciated.

Thanks
 
The step your missing here is setting the PageControl property of your tabsheet. See

TTabSheet.PageControl

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top