[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Borland C++ Builder TTabSheet at design time

Posted on 2000-05-08
9
Medium Priority
?
1,841 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

650 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