|
-
Dec 4th, 2001, 04:38 PM
#1
Thread Starter
Addicted Member
Help With Tabs!
i would like to encourperate tabs into my app but am having some problems. i can use the "SS TAB"'s fine, but they look awful and require my app to be to long. so i tried the "TAB STRIP" and added all the tabs i needed, and was happy, but i couldnt select a certain tab to drop contents into like the SS TAB one worked. help would be greately appreciated. i just need to know howto select the seperate tabs (while editing the app od course) so i can drop buttons/text/boxes etc.. into it
Gray FOX: "Only a fool, trusts his life to a Weapon!"
Bart Simpson: "Bart no like! Baaad medicene!"
www.sling.to/dementia-freaks <<<---Goto my site!
http://pub80.ezboard.com/bdementiafreaksforum <<<---Goto my forum!
Thats it!
-
Dec 4th, 2001, 04:40 PM
#2
-
Dec 4th, 2001, 04:44 PM
#3
Thread Starter
Addicted Member
baaah! i cant? thats no good. well, how about a code example so when i click on tab1 for example frame1 is shown and the rest are hidden. i know it would be frame1.show frame2.hide etc... (i think) but i need the click code
Gray FOX: "Only a fool, trusts his life to a Weapon!"
Bart Simpson: "Bart no like! Baaad medicene!"
www.sling.to/dementia-freaks <<<---Goto my site!
http://pub80.ezboard.com/bdementiafreaksforum <<<---Goto my forum!
Thats it!
-
Dec 5th, 2001, 12:26 AM
#4
Junior Member
You cannot click on the tabs of a Tabstrip during Design mode and see the individual tabbed pages.
However, if you like the tabstrip (ahhh), you need to place a container for your controls, like a frame or picture control, onto the tab control for each tab.
In your application, you then note when a tab has been clicked on and make that frame or picture control visible, and the non-selected tab controls not visible.
Simple.
But if you are looking to keep your code small, you don't want either tab control. Can't remember where I've seen it, but there are tab controls out there with less weight and more control.
Postin means I'm desperate!
-
Dec 5th, 2001, 12:31 AM
#5
Junior Member
Oh, me forget to mention.
Set the KEY for each tab. Say the first tab is titled "UGLY" and the other is "FUNNY".
To note if it has been clicked on, I believe the code is:
toolbar1.SelectedItem = <KEY STRING>
So if you had code such as
Private Sub toolbar1_Click()
Select Case toolbar1.SelectedItem
Case "UGLY"
<code to get outta town>
Case "FUNNY"
<you can stay code>
End Select
End Sub
Postin means I'm desperate!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|