• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1867
  • Last Modified:

Borland C++ Builder TTabSheet at design time

I'm using Borland C++ Builder and have created a few TTabSheet. What I can't see at design time is how to delete a Tab which I no longer need (I am currently setting its visible and enbabled properties to false).

Nor can I see how to move one Tab before another (other than cut/pasting their contents and then renaming).

I can't believe that Borland missed this. How did I ?
0
graham_k
Asked:
graham_k
  • 5
  • 2
  • 2
1 Solution
 
HrdwareGuyCommented:
Try using the page control instead.  It will have the feautures you are looking for and should have the same basic functionality of the tab sheet.
0
 
jbodomCommented:
Have a look at the TabIndex and Tabs properties.  To add tabs, add TStrings to the Tabs property and to delete a tab, delete the unwanted Tabs::TStrings.  You must change the order of the Tabs::TStrings to change the order of the tabs.
0
 
graham_kAuthor Commented:
o.k, I'll check it out this evening (Japan time) & get back to you tomorrow.

Thanks for the info.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
graham_kAuthor Commented:
well, I'm using a TPageControl, onto which I dropped a TTabSheet.

I see the TTabSheet properties Tabs & TabIndex in the help file, so I imagine that I can manipulate them at run time.
What bamboozles me is that I can't see them in the object inspector.

I have been working on this project for months the GUI has eveloved & become rather complicated.

I'd relly like to delete one unneeded tab at design time. I'd also like to move one tab before another. Is there any way to do this at design time, or can I only do it at runtime?
0
 
jbodomCommented:
A TTabSheet control doesn't have Tabs and TabIndex properties.  I thought you were using a TTabControl.  A TTabControl control does.  To change the order of TTabSheets in a TPageControl at design time, change the PageIndex property of the TTabSheet.
0
 
graham_kAuthor Commented:
o.k, I'll try that this evening. Any idea how to delete the superfluous tab?
0
 
HrdwareGuyCommented:
Bring up the tab you want to get rid of, right click on the TabSheet, select Delete Page.
0
 
graham_kAuthor Commented:
jbodom, you were right about PageIndex. Thanx. You get these points.

Hrdwareguy, I will check out the ability to right click & delete (don't see how  I could have been stupid enough to have missed that). If correct, I'll give you some points on Monday.

Thanks again guys. I knew that Borland couldn't have been so stupid as to overlook these things. Just wondering how I was :-)
0
 
graham_kAuthor Commented:
btw, I meant to say some time ago that there is no right click menu option to delete a tab sheet.

however, when talking to friend he pointed out the glaringly obvious. Click the TabSheet, then press the Delete key.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now