Tab control in one of the tabs of another tab control
One of my colleagues is working with a tab control. He has several tabs. He is trying to embed another tab control inside one of the tabs of the first tab control. He had placed the second tab control inside one of the tabs of the first tab control. But the problem is that the second tab control does not show up (unless one goes to the block diagram and double clicks the second tab control, only then does it shows up; when the vi is closed and reopened its again not there). I told him that I had never seen such functionality (a tab control inside another tab control) in any application but is it somehow possible. All this is required while the VI is not running and is being developed (of course it should work at run time, but this functionality must show while the VI is not running, i.e., this functionality should be non-programmatic. Is it possible. Thanks for your time.
Hi rashid, yes it is possible. See the attached example. I see no problems with it.Hope it helps.Mike
Thanks <a href="../view_profile?user.id=88992" class="auth_text" style="font-weight: bold;" target="_blank"> MikeS81</a>! Yes you are absolutely right. Your VI is working perfectly. I wonder what has my friend done to get such behaviour as he is getting. Strange! Thanks for the help!Have a very nice day!
Hi rashid, can you upload your vi, maybe someone found the proble...Tab control within another tab control
I am creating a form with a tab control containing 10 tabs. and what I
want to do is on only on of the tabs, I want a sub section of tabs.
So what it ends up being is one main tab control with another tab
control embedded into only one of the tab pages. The problem I am
getting is when I insert the sub section tab control into one of the
tabs from the main tab control, the sub section tab control appears in
every tab in the main tab control. Can anyone help? What do I need
to do so it only appears in one tab, not all.
As you found, you cannot place a tab control on one of the pages of another
However, you can place a subform on a tab control page, and the subform can
have its own tab control.
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Paul Mendez" <firstname.lastname@example.org> wrote in message
> I am creating a form with a tab control containing 10 tabs. and what I
> want to do is on only on of the tabs, I want a sub section of tabs.
> So what it ends up being is one main tab control with another tab
> control embedded into only one of the tab pages. The problem I am
> getting is when I insert the sub section tab control into one of the
> tabs from the main tab control, the sub section tab control appears in
> every tab in the main...Tab Events of Access Application ? (NOT Access Tab Control)
I'm trying to use the event when a person moves to a different form by
clicking on the built in Access application tabs.
Is there something I can reference or does it require some kind of
subclassing/hook api calls?
On Jul 21, 9:47=A0pm, "christianlo...@yahoo.com"
> I'm trying to use the event when a person moves to a different form by
> clicking on the built in Access application tabs.
> Is there something I can reference or does it require some kind of
> subclassing/hook api calls?
You can use the OnDeactivate event.
> You can use the OnDeactivate event.
Aha. Now I am forced to make an event for each form. Trying to
automate what tab the ribbon moves to based on the access application
Access could use a rewrite of it's event system imho. There are no top
level application events to tap into, no 'after delete' event, record
saves w/ a 'dirty=true', it's all quite ridiculous.
I was hoping the new table events would be the solution but they come
up w/ this 'data macro' crap where there doesn't seem to be any way to
call your own code on the event.
Sometimes I wonder if the ms developers ever use Access.
However, I love the report and form design improvements.
<email@example.com> wrote in message
news:firstname.lastname@example.org...Control Container inside a Tab Control
Is there a generic container that can go in a tab control? I cant seem
to get a tab control (which can hold many types of other controls) to
be contained by another tab control.
My main form uses a tab control (8 pages). On each page I would like to
have a few groups of controls (no tabs in the group, just buttons,
combos etc). I thought the tab would be a great container, but I cant
put it on the 'main' tab control.
Any ideas? (Currently I'm using a naming scheme)
No. There is no control array, and you cannot insert a tab control on a page
of another tab control.
You can put a subform on the page of a tab control, and the subform can
contain its own tab control.
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<email@example.com> wrote in message
> Is there a generic container that can go in a tab control? I cant seem
> to get a tab control (which can hold many types of other controls) to
> be contained by another tab control.
> My main form uses a tab control (8 pages). On each page I would like to
> have a few groups of controls (no tabs in the group, just buttons,
> combos etc). I thought the tab would be a great container, but I cant
> put it on the 'main' tab control.
> Any ideas? (Currently I'm using a nam...How do you refer to a control on subform inside a tab control?
(Using Access 2000)
I have two tables, similar to Customers and Orders. (Not an exact
parallel, but works for this example.)
On a form showing customer data, there is a tab control. One of the
tabs has a subform showing order data (in datasheet view). On the same
tab there is an unbound textbox (next to the datasheet). I placed a
command button that runs code to add the QTY from each line in the
subform and put the sum in the unbound textbox. That works, but when
you edit the QTY the total does not change until you click the button
again. I tried using AfterUpdate on the QTY field in the subform, but
an error always occurs when I try refer to the textbox.
I have tried about 9 different implicit/explicit references to the
textbox, but the procedure is just not recoginzing it.
Is it possible to refer to a control within the tab control of a form
from a subform inside the same tab control? How?!
Any help is greatly appreciated!
From code in the Form embedded in a Subform Control, to refer to a Control,
txtX, on the main (parent) Form:
Me.Parent!txtX = <the value you want to set>
For Controls on a Tab, you don't have or need a reference to the Tab Control
or Tab Page.
Microsoft Access MVP
"Joshua Ammann" <firstname.lastname@example.org> wrote in message
> (Using Access 2000)
> I have two tables, similar to Customers and Orders. ...Control + Tab between subforms on tab control pages ACC 2002
What I am looking for is help trying to accomplish control + tab
exiting subform #1 on page #1 and entering the first control (main
form) on page #2. I've tried the following code, however it seems to
"fire twice", placing me at the first control on subform #2 on page
#3, totally skipping page #2. It seems to very briefly stop the
control on page two, but keeps going. Hope that made sense. Key
preview for subform is set to yes. This is a continous subform, so
options to leave subform on last control won't work. That's why I'm
trying to use control tab. I'd appreciate any suggestions.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyTab And Shift = 2 Then
The problem is probably that you did not assign KeyCode = 0 in your handler.
Thus, after your code runs, the keypress is also processed normally.
On 13 Sep 2004 11:39:22 -0700, email@example.com (Brian) wrote:
>What I am looking for is help trying to accomplish control + tab
>exiting subform #1 on page #1 and entering the first control (main
>form) on page #2. I've tried the following code, however it seems to
>"fire twice", placing me at the first control on subform #2 on page
>#3, totally skipping page #2. It seems to very briefly stop the
>control on page two, but keeps going. Hope that made sense. Key
>preview f...Getting XP look with tabbed dialog control and tab strip control
I know how to use a manifest file to get the XP look for the Windows Common
Controls 6 group of controls but I also have both the tabbed dialog and tab
strip controls in my app and I want those to take on the XP look as well.
Does anyone know how?
Also, while I am able to get the XP look through a manifest file in my app's
folder I should be able to do this without the file having to be in the
app's folder. I've read it has to do with compiling with a resource file
but I don't know how to do that. Can anyone offer any assistance?
...How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls
on a single page of a tabbed control. How??
In LV 6.1 an up you should be ablel to right click on the edge of the
tab control when the tab-page in question is selected.
The bttom selcetion in the pop-up is "Reoder controls in page..."
selecting this option will switch editing modes to allow you to
specify the ored, just like in a cluster.
I seem to remeber in older versions you had to drag the tabable
controls off the tab control, specify the tabbing oder and then drag
them back on. The oldest version I have on ...Front panel controls and indicators flicker inside Tab Control
I'm using a Tab Control to organize controls and indicators by functions or processes. I notice that all of them no mater which tab I?m in, flicker. I don't have any item overlap each other. Even more strange is that when I made a similar Tab Control within the same application and transferred all of the controls and indicators to it, the flicker went away. In the end I kept the new tab control and deleted the old one and everything is working great.
Anyone has any idea why this happened? Also I wanted to post this problem/solution in case anyone else has a similar problem in the future.
what's your LV version? i remember some bugs with LV 6.x and tab pages.
what controls do you use? dou you handle with huge data amounts in graphs, pictures etc.? Or do you write to controls with very high rates?
The best next step would be to post a stripped code that reproduces the behaviour so we can take a look at it.
I'm using LV 8.5 for Window 2000. As I mentioned in the original post, the problem went away by just creating another Tab control and moving, without any modifications, the controls and indicators to it.
Thanks for the reply,
...Refs to controls on tab control
I'm really stumped. I have been able to get all of my references to all my controls with property nodes - even controls inside clusters for all of the controls on a vi front panel. However, when I move these very same controls onto a tab control I can't seem to figure out how to get these same references! I can only get the tab control ref. :smileyindifferent:
BenMessage Edited by Ben on 04-20-2007 05:01 PM
Cotrols on pages.JPG:
http://forums.ni.com/attachments/ni/170/243049/1/Cotrols on pages.JPG
...Syntax of control on tab controls
I have a form "frmturnover" on which there is asubform "subfrmturnover"
which has three tabcontrols say Page1, Page2 and Page3. There is control
"control2" on Page2 that when its is entered I want to check if it is the
same value as a control "control1" on Page1 and then show a pop up box if
they don't match. I can work out the code for the message box but I'm
getting a little lost on the syntax for referring to the controls on the
pages of the tab control.
I also want to check the value of Control2 on page2 with the vale of
control3 on a page1 of a subform "subfrmmain" on another form "frmmain"
can anyone point me in the right direction?
"Tony Williams" <firstname.lastname@example.org> wrote in message news:<email@example.com>...
> I have a form "frmturnover" on which there is asubform "subfrmturnover"
> which has three tabcontrols say Page1, Page2 and Page3. There is control
> "control2" on Page2 that when its is entered I want to check if it is the
> same value as a control "control1" on Page1 and then show a pop up box if
> they don't match. I can work out the code for the message box but I'm
> getting a little lost on the syntax for referring to the controls on the
> pages of the tab control.
> I also want to check the value of Control2 on page2 with the vale of
> control3 on a page1 ...Vertical Tabs on Tab Control?
I've used conventional horizontal tabs on one application.
Now I'd like to have a row of tabs, representing each
letter of the alphabet, running down the right side of a
These are owner drawn tabs.
I have questions.
I want a single line of alphabet tabs. If the control
shrinks to too small to show all of the tabs, I'd like them
to display a ragged edge, and arrows in order to scroll them.
Instead, multiple lines of tabs are drawn. The Resource
Editor's "Tab Control Properties" window has "Multiline...Hide a tab on a tab control
I have a tab control with about 5 tabs on it.
Depending on who logs on, I want to hide one particular tab.
How do I do it?
Per John Fox:
>I have a tab control with about 5 tabs on it.
>Depending on who logs on, I want to hide one particular tab.
>How do I do it?
Code below selects different tabs and makes some tabs invisible.
2160 With Me.tabMain
2161 If .Value = mTabMain_Page_Security Then 'If
user walking a compressed list, don't want tb jumping back to sec
if looking at docs
..Pages(mTabMain_Page_CompanyGroupIssuer).Visible = True Then
2163 .Value = mTabMain_Page_CompanyGroupIssuer
2164 End If
2165 End If
2169 End With
2170 With Me.tabMain
2171 .Pages(mTabMain_Page_Security).Visible = False
2172 .Pages(mTabMain_Page_Allocations).Visible =
2179 End With
Thank you - sorted!
> Per John Fox:
>> Dear All,
>> I have a tab control with about 5 tabs on it.
>> Depending on who logs on, I want to hide one particular tab.
>> How do I do it?
> Code below selects different tabs and makes some tabs invisible.
> 2160 With Me.tabMain
> 2161 If .Value = mTabMain_Page_Security Then 'If
> user walking a compresse...tabbing order in tab controls
How can I set the tabbing order of controls in a tab control on the
front panel when having several other controls on the front panel.
Right-click on the tab and select "Reorder controls In page" from the
menu that pops up.
This is not exactly what I meant.
When I'm creating a local variable I can choose its destination
(right-click - select item). Because there are so many I would like to
reorder the tabbing order to choose the correct on the top.
All this action are taken in the block diagramm.
From the edit menu, select
Set Tabbing order
changing the tabbing order will also change the order the variables
are listed when you want to list or select a local variable
...Tab Indexing in a Tab Control
Anyone know why when I set my tabs index in my tab control (I have 3
tabs on the control) the numbering gets messed up when I save the form
I thought each tab on the control had an independent tab index, I guess
Just a suggestion,
the Tab Index for a container (Tab Page) is different than the Page
Index for a Tab Control.
You might be thinking that the Tab Index is related to the Tab Pages.
The order of the pages is Page Index. (Right Click Page Order)
The order of the controls on a page, form or other container control is
Tab Index. (Right Click Tab Order)
Tab, in this case means the Tab key on your key board. As you hit the
tab key the focus moves from control to control based on the order of
the index of each control and whether or not the control has it's Tab
Stop property set to True.
As far as I know, each Tab Page does have a collection of controls,
where each control will have a Tab Index in that Tab Page collection.
The indexes stay the same for me. That is, when I set the Tab Index for
each control on a Tab Page, it remains the same after saving. If I
change the Tab Index for each control on another Tab Page, it remains
the same also, and it does not affect any other Tab Page control
Hope This Helps
...How to color tab of tab control when content of tab meets generic criteria
I have an MS Access form that uses a tab control with multiple tabs.
On each tab, there are various fields.
How can I color-- or if easier add some simple icon--to a particular
tab (say tab 2 of 5 in the tab control) if a field on tab 2 meets some
generic criteria like salary field is > 50000. I'm trying to give the
operator a visual cue that tab 2 contains important data that should
be reviewed--so the operator does not have to visit each tab to
manually inspect all fields (which may contain only nominal values).
If I could color tab #2 red or mark just tab #2 with an icon, then the
operator would know to navigate to tab #2 specifically.
Please include all VB/code and tell me which event to use/how to
Thanks Access gurus.
You could create a Bitmap that you would set as the Picture property of
the desired TAB Page.
Perhaps using the form's Current event you could do something like:
If Me.txtSalary >50000 then me.TabControlName.Pages(0).Picture =
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Scot Balfour" <firstname.lastname@example.org> wrote in message
> I have an MS Access form that uses a tab control with multiple tabs.
> On each tab, there are various fields.
> How can I color-- or if easier add some simple icon--to a particular
> tab (say tab 2 of 5 i...Can a Combo Box control a Tab Control, like an Enumerated Ring control can
Is there any way to have a Combo Box control a Tab Control. An Enumerated Ring control can if all the names match "Exactly", question is can a Combo Box do the same, especially within an Event Structure?
I haven't been able to figure it out. Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data. Thanks for your help...
Test Tab Control .vi:
http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control .vi
A tab control can be treated like an enum, so your question comes down to: "Can I map a ...Tab Control
Is there a way to lock all the items on a tab in a form without having
to list each field and lock individually? I see a way to enable/
disable, but not lock.
On Mar 10, 5:58=A0pm, musicloverlch <lho...@gmail.com> wrote:
> Is there a way to lock all the items on a tab in a form without having
> to list each field and lock individually? =A0I see a way to enable/
> disable, but not lock.
What I usually do is hide the tab. But if you want the user to see the
data, you'll probably have to go through each control one by one and
...Change values of Tabs on Tab Control
I have a LabVIEW application where it is possible to change the language on the front panel, in connection with this I want to change the names/labels of the Tabs on a Tab Control.
Is this possible?
yes it is possible. See the attachment.
Awesome all... got what i needed.
...Re: tabbing order in tab controls
Is there a way to change the tabbing order without having the order on a list or local change also? I didn't take that into account when making the program, should have ordered all the control before wiring it all up :-/
Hi leachdor,When you change the tab order of a specific control in LabVIEW, it must then re-order the other controls in order to ensure that each tab order value is only applied to one control, and that there are only as many tab stops as there are controls. As such, there is no way to simply re-order a single control without modifying other controls.
Hi and thanks for the response. I think I may have explained the behavior i'm seeing wrong. Changing the tab order, you have those two little boxes the first showing the changed order number, and the black background one that shows what it was previously. Each time you change one, yep you have to change the order of the rest otherwise you might tab and select two fields at once!The behavior I'm not sure about though, is when I change them to the proper order on the front page, it changes my block diagram. For example if I have a cluster with 3 items in it, and I change the tab order of the items inside that cluster. Then if I had previously used an "unbundle" function prior to the tab order change, and it was all wired up with item 1 at the top, item 2 in the middle output, and item 3 as the bottom output - AFTER the change, those controls...Tab order on multirow tab control
Is there a way to stop the default action of a multirow tab control
whereby the row with focus moves to the front of the tabs? I find this
behaviour annoying and confusing to the user and am at a loss as to why
MS has designed their tab controls like this.
> Is there a way to stop the default action of a multirow tab control
> whereby the row with focus moves to the front of the tabs? I find
> this behaviour annoying and confusing to the user and am at a loss as
> to why MS has designed their tab controls like this.
ALL multi-row tabs act this way. How else can you identify the active tab
except by moving it to the front?
Try the Buttons format instead of the Tabs format. The buttons don't move.
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Rick, I guess I hadn't thought about the fact that the tab needs to
move to the front row as you have explained. Maybe it would be more
intuitive to the user to highlight the tab by having its text go bold
when selected instead of changing the tab row order. That way the user
would always find the required tab in the same place instead of having
to hunt for it. What do other users think or am I the only one who
finds the action of the tab control confusing - maybe I'm easily
Anyhow, thanks for the info Rick - it's much appreciated.
"Wayne" <email@example.com...Tab control tabs dissapear when clicked
I have yet another problem with the infamous tab control in my Access 97
database. I have a form with a tab control with 4 tabs on each tab is a sub
form bound to a form. When the main form loads the vertical scroll bar moves
the main form down just low enough to were one can't see the tabs on the tab
control. Once you scroll back to the top of the main form and click on one
of the four tabs the sub form on that tab becomes visible but the same
scenario as above happens. The main form vertical scroll bar once again
moves down just low enough to were you can't see the tabs until you scroll
back to the top. Does anyone know why this would be happening? I have tried
every possible combination of repositioning controls and changing settings
and nothing works. Any help would be much appreciated.
Thanks in advance,
I found the answer at the following site.
"Mark C" <firstname.lastname@example.org> wrote in message
>I have yet another problem with the infamous tab control in my Access 97
>database. I have a form with a tab control with 4 tabs on each tab is a sub
>form bound to a form. When the main form loads the vertical scroll bar
>moves the main form down just low enough to were one can't see the tabs on
>the tab control. Once you scroll back to the top of the main form and click
>on one of the four tabs the sub form on that tab beco...Tab Control
I would like to customize Tabs on the Tab Control. More exactly - I would like to add bevels to the tabs as shown below:
Is it theoretically possible? May be some workarounds exists?
with best regards,
This requirement coming from corporate UI Guidelines, where shapes of Tabs strongly predefined. I can do required "skinning" for most controls which can be customezed, but unfortunately not for Tab Control...
Andrey...Maximum Number Of Controls On A Tab Control
Is there a "best practice" maximum number of controls that can be
loaded on to a tab control before things start getting messy and
sluggish? I'm asking for a "best practice" maximum number across all
tabs and not the maximum number that is theoretically possible.
I figure that trying to add lots of controls to lots of tabs must
affect performance at some point.
Any help is appreciated.
> Is there a "best practice" maximum number of controls that can be
> loaded on to a tab control before things start getting messy and
> sluggish? I'm asking for a "best practice" maximum number across all
> tabs and not the maximum number that is theoretically possible.
> I figure that trying to add lots of controls to lots of tabs must
> affect performance at some point.
> Any help is appreciated.
There is a maimum number of controls on a Form. Not sure about a TabControl.
Think of it this way. A TabControl is just a handy way of toggling the
visibility of a bunch of controls all at the same time. It likely has almost no
affect on performance at all. Certainly not any that I have been able to
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
On 9 Mar 2007 18:35:53 -0800, "Wayne" <email@example.com>
In some applications tab controls contain subforms. If things get
sluggish I typically only...