How can I create a tab on my form? I was going to use multiple forms but I think tabs would be cleaner for the user. :)
Printable View
How can I create a tab on my form? I was going to use multiple forms but I think tabs would be cleaner for the user. :)
there is a tab control you can place on your form
Do I need to import it? I can't seem to find it. :confused:
click projects
click components
then find microsoft tabbed dialog control
tick the box and apply
if you do not find it this way
do a search for tabctl32.ocx
and browse to it
Cool thanks!
Now that I've created 5 tabs, how can I have the information on each tab be different? I've got 3 frames created for tab1 but they show up on all 5 tabs. :confused:
Are you using the TabStrip control or the SSTab control?
SSTab control.
The way I do it is to create multiple FRAME controls and the when a user clicks a tab, I ZOrder the appropriate frame (bringing it to the front or top).
If you move a control, that wasn't first created on the tab, to a tab then it's parent is the form and it will stay, if you create it initially on the tab or cut and paste it right on to the tab it should have the tab as its parent and work right.
I'm not sure I follow. I created my form, added the tab component, then added the tab to my form. Then I created three frames on the first tab thinking those three frames would only stay on that one tab. Should I go about this some other way?
Hmm that shoulda worked! What I meant was sometimes it gets freaky when you create a control on the form and then try to move it onto the Tab.
Oh ok, I see. Well I'm not sure why this would be happening to me. Maybe I'm missing a property setting or something? Any ideas?
I never got the tab control to handle it automatically.
What I ended up having to do is modify those ZOrders to pull the right frame above the other frames, and I think you are going to have to do that also.
Here is an old build of a program of mine that uses this sort of a feature.
Go ahead and check out how I did it ;)
You shouldn't need any props, that is wierd here I know it works check it out (attached).
Edneeis is right...
When you created the frames, if you did so by double-clicking the tool, then the frame was placed on the form and not on the tab. Make sure the tab you want is foremost and then draw the control onto the tab.Quote:
Originally posted by Fool
I'm not sure I follow. I created my form, added the tab component, then added the tab to my form. Then I created three frames on the first tab thinking those three frames would only stay on that one tab. Should I go about this some other way?
That did it. Thanks! :)Quote:
Originally posted by John McKernan
When you created the frames, if you did so by double-clicking the tool, then the frame was placed on the form and not on the tab. Make sure the tab you want is foremost and then draw the control onto the tab.