|
-
Aug 14th, 2001, 02:25 PM
#1
Thread Starter
New Member
How do I use the MS Tabbed Dialog Control?
I have been trying to figure out how to use this tabbed dialog control (comctl32.ocx i think) for awhile now, i was able to do it once, but i don't remember... The way I had it before was on the TabControl1_click() subroutine was I would get the index of the tab that was active and display a Picture box with the corresponding index ... IE:
Sub TabControl1_click()
for i = 0 to 6
picture1(i).visible=false
next
picture1(tabcontrol1.___what_goes_here?___).visible = true
End Sub
What do i put in the snippet to get the current and selected tab?
Thanks in advance... Kage ^_~
Email me with answer at [email protected]
-
Aug 16th, 2001, 08:24 PM
#2
Member
Im not really sure what you mean, but to find out which tab is being displayed you use Tabcontrol.Tab. This displays the Tab's index (remember it starts indexing at 0). The question wasnt that clear, but I hope this helps.
-
Aug 17th, 2001, 06:34 AM
#3
Thread Starter
New Member
Let me clarify
Using the MS comctl32.ocx...(windows common controls) i have a tabbed dialog, the kind on property window pages
I want to know which tab is the active one when clicked...
I know that: tabctl1.tabs(x) tells VB that i want to do something with that tab
What I don't know is how to retrieve the selected tab, these controls are weird and I don't know where to get full documentation on their run-time properties, help with that would be most useful (maybe the comctl1.hlp file?)
is it something like ;
X = tabctl1.tab.index? tabctl1.tab?
-
Aug 18th, 2001, 05:37 PM
#4
Hyperactive Member
i dont know if u got the answer yet but maybe:
picture1(tabcontrol1.tab(i)).visible = true
does that work?
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
|