03-29-2010 12:41 PM
Hello,
I'm working in VB 8.0 and have a program modification I'm trying to get working. Here is what I'm trying to do. The program has 128 test register spread out over three tab pages out of a total of 7 tab pages. All tabs are not visible when the program is running. When the operator selects one of the register page buttons to view from the main page I want the tab for that register page and the other two register page tabs to become visible so from that register page they can view the other register pages without having to return to the main test page. So is there a way to make only certain tabs visible while all the others are still hidden at run time and then hide them once you return back to the main page?
Gary
Solved! Go to Solution.
03-29-2010 01:07 PM
Hi Gary,
do you mean something like this?
Mike
03-29-2010 01:12 PM
ggaryt wrote:Hello,
I'm working in VB 8.0 and have a program modification I'm trying to get working. Here is what I'm trying to do. The program has 128 test register spread out over three tab pages out of a total of 7 tab pages.
So is it 3 tab pages or 7?
Tab controls don't work the way you're describing, so you'll have to use another method. Even if they did work that way, it would require that the controls on one tab be physically located so they don't overlap/share the same XY area as another control on another tab page. Basically, consider the tabs to be on different Z planes. If you want to stick with a tab control then you could use the tab control purely for selection, but none of the tab pages would have any controls. Then, depending on which tab page is selected you could hide/unhide the appropriate controls.
Another option is that for the control(s) that are on the other pages that should be made visible can be left as "floating". In other words, their XY location is as if they're inside the tab, but their Z location is such that they're not contained within a tab. You can do this my using the arrow keys to move a control. At edit time the control will have a shadow around it, but the shadow will go away at run-time. You can hide/unhide these controls as necessary depending on which tab is selected.
03-29-2010 01:22 PM
Hi Mike,
What you have sent to me is close and I don't believe I can do what I want with the tabs. If you program could select the individual tab and display them one at a time would very close since I want only three of seven total tab visible and only when you invoke the pages of interest (test register pages).
So from what I can gather is you can make all tab visible or none but not individually.
Gary
03-29-2010 01:41 PM
Hi Gary,
it's also possible to show only selected tab page selectors.
See the attached example.
Mike
03-29-2010 01:44 PM
03-29-2010 01:48 PM
Mike,
Thanks that will work and I'll get this going in my program.
Gary
03-29-2010 01:54 PM
Hi Mark,
Yes I know that 128 register is a bit but they are broken into three sets over three tab pages with the first two being tied to channel 1 & 2 respectively and the third as miscellaneous (mainly status registers) for the operator to look at. This program is meant for bench characterization and will be operated by an experience tech or engineer so it not going out to Joe public.
I'm sorry if this information wasn't very clear in my first posting.
Gary
03-29-2010 01:58 PM
03-29-2010 02:13 PM
ggaryt wrote:Mike,
Thanks that will work and I'll get this going in my program.
Gary
So you were wanting to make visible/invisible the tab selections, rather than having the content of another tab visible at the same time as seeing a different tab page?