Solved

Borland C++ Builder TTabSheet at design time

Posted on 2000-05-08
9
1,696 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now