?
Solved

Borland C++ Builder TTabSheet at design time

Posted on 2000-05-08
9
Medium Priority
?
1,798 Views
Last Modified: 2012-08-14
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
Comment
Question by:graham_k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 

Expert Comment

by:HrdwareGuy
ID: 2792538
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
 
LVL 1

Accepted Solution

by:
jbodom earned 200 total points
ID: 2793474
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
 
LVL 6

Author Comment

by:graham_k
ID: 2794926
o.k, I'll check it out this evening (Japan time) & get back to you tomorrow.

Thanks for the info.
0
Industry Leaders: 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!

 
LVL 6

Author Comment

by:graham_k
ID: 2798302
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
 
LVL 1

Expert Comment

by:jbodom
ID: 2798549
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
 
LVL 6

Author Comment

by:graham_k
ID: 2798661
o.k, I'll try that this evening. Any idea how to delete the superfluous tab?
0
 

Expert Comment

by:HrdwareGuy
ID: 2800274
Bring up the tab you want to get rid of, right click on the TabSheet, select Delete Page.
0
 
LVL 6

Author Comment

by:graham_k
ID: 2802641
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
 
LVL 6

Author Comment

by:graham_k
ID: 2824296
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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question