tab control inside another tab control
Is it possible to put a tab control inside another tab control. I tried
it several times, but for some reason this doesn't seem to work.
Can someone confirm this, or tell me what the trick is.
The only way I know to do this is to put a subform on the first tab control.
Then you can put your second tab control on the subform.
If you do this repeatedly, however, you will find the form loading rather
"Georges Heinesch" <firstname.lastname@example.org> wrote in message
> Is it possible to...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...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.
<firstname.lastname@example.org> 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...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 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...reference field on subform on tab control
How can I filter records of a subform that is part of a tab control?
The filter works fine on the form when it is not part of the tab using
this in the macro condition:
I have a main form with a tab control which has three tabs and on each
tab there is a subform.
Main Form: frmEmploymentVerification
Tab Control Name: TabEmployment
Sub Form: sfmEmploymentVerification6M
Field on Sub Form: OpenedDateFilter
My filter is a combo box that lists "This Week", "Last Month" etc to
show the appropriate records. This combo box is currently located on
the subform itself and is using a macro to apply the filter. This is
what I have in the condition field:
I get an error saying: The action or method is invalid because the
formor report isn't bound to a table or query.
My subform is bound to a query so I'm not sure where to go from here.
Should the combo box be part of the tab page instead of the subform?
Any help to get me going in the right direction would be great.
the first thing to do is forget the tab control - it has nothing to do with
the syntax of the subform reference.
> The filter works fine on the form when it is not part of the tab
i suspect that you opened the subform by itself, from the database window -
and assumed that it didn't work when you opened the main form be...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,
...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...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" <email@example.com> wrote in message news:<firstname.lastname@example.org>...
> 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 ...Making sure MS Access scrolls properly in subforms/controls
In my database, I have one instance where a specific collection of 7
forms are expected all at one time, so I tried to build an entry screen
where the entry form for each individual form is present as a subform
in a tabcontrol in one main form, to make it easier for my unit's Data
Entry Officers. Unfortunately, there seems to be a problem with
scrolling that I have been resolve, probably caused either by the
tabcontrol or the subforms, since it does not occur when the form which
was used as a basis for the subform is opened individually. This
problem is that where the individual subform is longer than the screen
allows, the page does not scroll down when fields below the screen are
selected (so that when the field at the bottom of the screen is exited
by pressing tab, or enter, or by an autotab or skip, the next field is
selected without the screen scrolling down). Does anyone know how to
Not to worry - have sidestepped the issue by breaking up the content of
the subforms among further tab controls (which now means that I have
tab controls in subforms in a further tab control ... sigh).
...How to reference the MS Graph control place inside an unbound object frame
I would like to set the value of the Y axes on my graph at runtime. I
created the graph my opening a form and placing an unbound object frame
on it then placed the MS Graph control into this. Next I copied /
pasted this object into a report. How can I do this? I can't fiqure
out how reference the MS Graph control in code.
On 4 Nov 2005 11:12:05 -0800, TD wrote:
> I would like to set the value of the Y axes on my graph at runtime. I
> created the graph my opening a form and placing an unbound object frame
> on it then placed the MS Graph control into this. Next I copied /
> pasted this object into a report. How can I do this? I can't fiqure
> out how reference the MS Graph control in code.
Graphs are in OLEUnbound controls.
Here is an example setting the Chart's Title using code.
Place the code in the Report Header Format event (or wherever it works
Me!OLEUnbound7.ChartTitle.Text = Forms!frmDate!Location & " Avg.
Arrival Rate for the Year " & Forms!frmDate!StartDate
Me!OLEUnbound7.Axes(2).HasTitle = False
Change OLEUnbound7 to whatever the actual name of your control is.
Please respond only to this newsgroup.
I do not reply to personal e-mail
When I type Me.OLEUnbound3. there are no options like Axes() or
...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 ...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?
...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...Finding control type from control reference
I have a stric type control (A) on the front panel of a VI. This control is a cluster made up of a number of instances of another strict typed control (B). Later control (B) is also a cluster made up of two controls, a check box and an enum. In the VI there is a value change event handler for control A. (I have included the check box to conrol B, it previously had only the enum). There is existing code in that event handler that works on the enum control. When I check a box, event handler is called and it tries to detect which enum's value has been changed. Since none has been changed, it enters into an endless loop.What I want to do is use the CtlRef (terminal?) of the event handler to execute the previous code if the control is enum, otherwise do nothing. (I'll place the code in a case structure). How can I find the controls type from CtlRef?What are those things inside the event handler called (e.g. OldVal, NewVal, CtlRef)?Thanks a lot for your time!Have a very nice weekend!
From what I understood of the description you provided, it appears that you are looking for the class ID of the controls. Each control type has a class ID.
You can get the class ID's from the controls within a cluster.
To see if I understood correctly, please see the attached example. If it is not what you are looking for, please provide clarification (and do not rate my post).
Oops.. I didn't answer the 2nd part of...Tab Control and Rectangle Hiding Controls
I'm trying to change the back colour of a tab control in Access 2010 by
using a rectangle.
I've selected the tab control (not an individual page) and pasted the
rectagle (solid with required colour).
I then send the rectangle to the back and then the tab control to the back.
The problem is that most (but not all controls remain hidden) on each tab.
Subform and list boxes are visible, but labels and text boxes aren't.
I've done this before in another application, but can't remember how I did
On Thursday, June 20, 2013 1:57:59 AM UTC-5, Bob Darlington wrote:
> I'm trying to change the back colour of a tab control in Access 2010 by
> using a rectangle.
> I've selected the tab control (not an individual page) and pasted the
> rectagle (solid with required colour).
> I then send the rectangle to the back and then the tab control to the back.
> The problem is that most (but not all controls remain hidden) on each tab.
> Subform and list boxes are visible, but labels and text boxes aren't.
> I've done this before in another application, but can't remember how I did
> Any ideas?
> Bob Darlington
Not sure I understand your issue. Anyway, check in properties and set the background to transparent.
...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 ...refering to a subform control
On my subform I have 2 fields FundCode and ClassNumber. Both are comboboxes.
I'm trying to filter ClassNumber based on FundCode.
When I create a separate query it returns the records I expect based on the
record I select in the subform. Here's the query code.
SELECT dbo_FundClasses.ClassNumber, dbo_FundClasses.FundCode
When I set the rowsource of ClassNumber to the same query I get the same
records no matter which subform record I select. The list presented is
always being filtered from the first subform record even if I select another
record with a different fundcode.
> Main form-frmCheckRequest
> Sub form-subfrmCheckRequestPayments
> On my subform I have 2 fields FundCode and ClassNumber. Both are comboboxes.
> I'm trying to filter ClassNumber based on FundCode.
> When I create a separate query it returns the records I expect based on the
> record I select in the subform. Here's the query code.
> SELECT dbo_FundClasses.ClassNumber, dbo_FundClasses.FundCode
> FROM dbo_FundClasses
> When I set the rowsource of ClassNumber to the same query I get the same
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing. The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges. At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to a file. This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button. I have the VI up and running, all except for the opening part of the valve. I have included a simple example of where I am going with the valve control. Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming.
...how to access database control of many oracle10g database instances on same server
I am on Redhat Linux 9 and using Oracle 10G (10.0.1.3?).
I know how to create a Oracle database instance and use
EM database control to administer the database.
To access database control from a browser, Oracle asks to enter
The URL does not specify the ORACLE_SID.
I however want to create several database instances on the same box.
Will Oracle automatically set up a different port (e.g., 5501) for
All the documentation I have found on Oracle's web site refers to a
single database instance on a server.
Appreciate any pointers.
Thanks a lot,
You need to read about Grid Control. Actually when you create your
database using DBCA, it should ask you whether you want to use Grid
Control or DB Console.
Jining Han wrote:
> You need to read about Grid Control. Actually when you create your
> database using DBCA, it should ask you whether you want to use Grid
> Control or DB Console.
> Jining Han
I hae read about Grid Control, but I think there is still a way to
access many instnaces on the same server using database control.
Of course you can, a DB Console for each database, and you can choose
that as your preferred approach, too. But I really think it's a waste
of resources and a big inconvenience. You are probably better off
with the "tradictional" desktop console.
Just my 2 cents.
<firstname.lastname@example.org> wrote in message
news:...How to control the tab control using event structure?
I am using tab control and event structure in the program.
When i run the application event is not happening for the active page.
When user switches from active page to the other page then event is taking place for all pages
So, how to get the event trigger for the active page when the application is started
For more clarification i am attaching the code "Test Control Tab using Event Structure.vi"
Test Control Tab using Event Structure.vi:
http://forums.ni.com/attachments/ni/170/288159/1/Test Control Tab using Event Structure.vi
You have a basic misunderstanding of dataflow. Maybe you should start with some tutorials or study some of the examples that ship with LabVIEW.
- The event structure belongs inside the while loop, and not vice versa. RIght now, the event structure only runs exactly once and never again.
- If the stop is pressed first, the VI will stop. Game over.
- If the tab control is changed (from any state to any other state!), the inner loop will spin forever as fast as the CPU allows, either executing one or the other case. It just reads the tab terminal to decide which case to execute. Changing tab never triggers any events. The VI is trapped inside the event until stop is pressed to stop the VI.
you were closer to a reasonable program in the other thread:
<a href="http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=287905"...tab control strict typedef hides controls
"Has the issue of no typedef tabs been resolved in LV7? I am modifying
a LV61 vi and severely broke the panel trying to convert a tab to a
typedef. I was able to customize, however there was a compile/save
error and all the embedded controls on the tab pages became hidden and
In my disgust, I had deleted all copies of the offending vi. I believe
my problem must have been, primarily, a corrupted compile/save.
...Control visiblilty of a text box on a Tab Control
Hey, thanks for reading my question.
I'm using a combo box to control the visibility of a text box. When I
make a change to the combo box it will set the visible property to
true on a text box. When I had these objects not on the Tab Control
everything worked great. Now with these object on the tab control and
I open the form the vicinity works but when I change the combo box
which set the visibility nothing changes.
What am I missing? Any one got any suggestions.
N. Graves wrote:
> Hey, thanks for reading my question.
> I'm using a combo box to control the visibility of a text box. When I
> make a change to the combo box it will set the visible property to
> true on a text box. When I had these objects not on the Tab Control
> everything worked great. Now with these object on the tab control and
> I open the form the vicinity works but when I change the combo box
> which set the visibility nothing changes.
> What am I missing? Any one got any suggestions.
Is your code behind your combobox still there? When you move an object
(cut and paste) to a tab control the event procedure code is "lost". You
may note that your Event Procedure is not there anymore in your combobox
properties.. but when you click on the build button it will bring up the
code... and upon returning the Event Procedure reappears!
An Access quirk:)
Is it possible that your text box is behind the tab control?
Peter De Bae...