Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Access the individual TAB in TabStrip Options

Status
Not open for further replies.

maupiti

Programmer
Oct 27, 2003
240
US
Visual Basic 5.0

1) I have a TabStrip Options with 4 Tabs. I can see that the first TAB is being highligted and selected, but I cannot
access the second, third and fourth TAB using a mouse.
I need to access the individual TAB so I can put the text fields and button on it.

2)In both Tabstrip and SSTab is there a way to varied the size (length and width) of individual Tab ?

3)In both Tabstrip and SSTab Is there a way to have say the first three tabs are contiguous to one another while the fourth one have a 1 inch space from the third TAB ?
 
maupiti,

Do the following to access the individual tabs on TabStrip:

1. Put array of 4 frames on the first tab. Make sure put them on the tab, not inside each other. Assign different captions to them. Make the dimentions and Left, Top identical for all your frames (this is important!).

2. Copy this code:

Private Sub TabStrip1_Click()
frame1(TabStrip1.SelectedItem.Index - 1).ZOrder vbBringToFront
End Sub

3. Run

This is the way to access the individual tabs on this control I am using.

Vladk
 
Hi vladk. Thank you for your help.

I see how it work. The question is.

If you can 't access the individual tab at design time, then how are you going to line up the text box, buttons and other control properly ?

At run time, I guess you just have to send those control that are not part of tab 1 to the back, and those control that are part of tab 2 bring it to the front.

Is it how it should be done ?

===================================

On both, the TAB-Strip and the SS-TAB, is there a way to
varied the size of each individual TAB ?
 
Hi vladk. In my previous question showed below, I got a solution for it. You can get rid of TAB-strip and use SS-TAB
in the SS-TAB "Style" property, use the SS-Style-Property-Page attribute and it will give you a variable TAB size according to the text length of the TAB.

On both, the TAB-Strip and the SS-TAB, is there a way to
varied the size of each individual TAB ?
above is the answer






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top