Solved

Borland C++ Builder TTabSheet at design time

Posted on 2000-05-08
9
1,731 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
  • 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 50 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

823 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