f



Common Controls Tab Control Defects when themed

What is the best way to resolve the graphical issues that the Tab 
control suffers from when using XP/Vista themes?


0
ttdhead (26)
5/28/2010 3:18:05 AM
comp.lang.basic.visual.misc 10153 articles. 0 followers. Post Follow

10 Replies
476 Views

Similar Articles

[PageSpeed] 8

On 28/05/2010 04:18, Leo wrote:
> What is the best way to resolve the graphical issues that the Tab
> control suffers from when using XP/Vista themes?

By telling us what you think they are as a start...

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
0
dee.earley (149)
5/28/2010 11:29:10 AM
Dee Earley pretended :
> On 28/05/2010 04:18, Leo wrote:
>> What is the best way to resolve the graphical issues that the Tab
>> control suffers from when using XP/Vista themes?
>
> By telling us what you think they are as a start...

The colour of the tab page background does not get set to the right one 
and under XP it is a gradient. I want to be able to get its background 
to be the right colour/gradient.


0
ttdhead (26)
5/29/2010 3:04:35 AM
"Leo" <ttdhead@gmail.com> schrieb im Newsbeitrag 
news:htq07k$fsr$1@news.eternal-september.org...
> Dee Earley pretended :
>> On 28/05/2010 04:18, Leo wrote:
>>> What is the best way to resolve the graphical issues that the Tab
>>> control suffers from when using XP/Vista themes?
>>
>> By telling us what you think they are as a start...
>
> The colour of the tab page background does not get set to the right one and 
> under XP it is a gradient. I want to be able to get its background to be the 
> right colour/gradient.
>
>


Hmmm,

the right one?
Look into the properties of the Tab control. The default setting
for BackgroundColor is the symbolic constant "Buttonface",
same as for the form.
Has your form the "right" background color?

Helmut.

0
5/29/2010 8:36:28 AM
It happens that Helmut Meukel formulated :
> "Leo" <ttdhead@gmail.com> schrieb im Newsbeitrag 
> news:htq07k$fsr$1@news.eternal-september.org...
>> Dee Earley pretended :
>>> On 28/05/2010 04:18, Leo wrote:
>>>> What is the best way to resolve the graphical issues that the Tab
>>>> control suffers from when using XP/Vista themes?
>>>
>>> By telling us what you think they are as a start...
>>
>> The colour of the tab page background does not get set to the right one and 
>> under XP it is a gradient. I want to be able to get its background to be 
>> the right colour/gradient.
>>
>>
>
>
> Hmmm,
>
> the right one?
> Look into the properties of the Tab control. The default setting
> for BackgroundColor is the symbolic constant "Buttonface",
> same as for the form.
> Has your form the "right" background color?
>
> Helmut.

Under Windows 77 the background should be white including the top of 
the selected tab with the other tabs being a rounded grey colour. So I 
am not sure what colours to try if it's that.


0
ttdhead (26)
5/31/2010 12:06:52 PM
"Leo" <ttdhead@gmail.com> wrote...
> It happens that Helmut Meukel formulated :
>> "Leo" <ttdhead@gmail.com> schrieb im Newsbeitrag 
>> news:htq07k$fsr$1@news.eternal-september.org...
>>> Dee Earley pretended :
>>>> On 28/05/2010 04:18, Leo wrote:
>>>>> What is the best way to resolve the graphical issues that the Tab
>>>>> control suffers from when using XP/Vista themes?
>>>>
>>>> By telling us what you think they are as a start...
>>>
>>> The colour of the tab page background does not get set to the right one 
>>> and under XP it is a gradient. I want to be able to get its background 
>>> to be the right colour/gradient.
>>>
>>>
>>
>>
>> Hmmm,
>>
>> the right one?
>> Look into the properties of the Tab control. The default setting
>> for BackgroundColor is the symbolic constant "Buttonface",
>> same as for the form.
>> Has your form the "right" background color?
>>
>> Helmut.
>
> Under Windows 77 the background should be white including the top of the 
> selected tab with the other tabs being a rounded grey colour. So I am not 
> sure what colours to try if it's that.

Which tab control are you using? The version 6 windows common controls are 
not themed. You need to use the version 5 control (comctl32.ocx) to get a 
themed tab control. 


0
dwy (73)
5/31/2010 12:40:48 PM
David Youngblood explained on 31/05/2010 :
> "Leo" <ttdhead@gmail.com> wrote...
>> It happens that Helmut Meukel formulated :
>>> "Leo" <ttdhead@gmail.com> schrieb im Newsbeitrag 
>>> news:htq07k$fsr$1@news.eternal-september.org...
>>>> Dee Earley pretended :
>>>>> On 28/05/2010 04:18, Leo wrote:
>>>>>> What is the best way to resolve the graphical issues that the Tab
>>>>>> control suffers from when using XP/Vista themes?
>>>>>
>>>>> By telling us what you think they are as a start...
>>>>
>>>> The colour of the tab page background does not get set to the right one 
>>>> and under XP it is a gradient. I want to be able to get its background to 
>>>> be the right colour/gradient.
>>>>
>>>>
>>>
>>>
>>> Hmmm,
>>>
>>> the right one?
>>> Look into the properties of the Tab control. The default setting
>>> for BackgroundColor is the symbolic constant "Buttonface",
>>> same as for the form.
>>> Has your form the "right" background color?
>>>
>>> Helmut.
>>
>> Under Windows 77 the background should be white including the top of the 
>> selected tab with the other tabs being a rounded grey colour. So I am not 
>> sure what colours to try if it's that.
>
> Which tab control are you using? The version 6 windows common controls are 
> not themed. You need to use the version 5 control (comctl32.ocx) to get a 
> themed tab control.

I am using Version 5 of the control


0
ttdhead (26)
5/31/2010 12:50:15 PM
Leo used his keyboard to write :
> David Youngblood explained on 31/05/2010 :
>> "Leo" <ttdhead@gmail.com> wrote...
>>> It happens that Helmut Meukel formulated :
>>>> "Leo" <ttdhead@gmail.com> schrieb im Newsbeitrag 
>>>> news:htq07k$fsr$1@news.eternal-september.org...
>>>>> Dee Earley pretended :
>>>>>> On 28/05/2010 04:18, Leo wrote:
>>>>>>> What is the best way to resolve the graphical issues that the Tab
>>>>>>> control suffers from when using XP/Vista themes?
>>>>>>
>>>>>> By telling us what you think they are as a start...
>>>>>
>>>>> The colour of the tab page background does not get set to the right one 
>>>>> and under XP it is a gradient. I want to be able to get its background 
>>>>> to be the right colour/gradient.
>>>>>
>>>>>
>>>>
>>>>
>>>> Hmmm,
>>>>
>>>> the right one?
>>>> Look into the properties of the Tab control. The default setting
>>>> for BackgroundColor is the symbolic constant "Buttonface",
>>>> same as for the form.
>>>> Has your form the "right" background color?
>>>>
>>>> Helmut.
>>>
>>> Under Windows 77 the background should be white including the top of the 
>>> selected tab with the other tabs being a rounded grey colour. So I am not 
>>> sure what colours to try if it's that.
>>
>> Which tab control are you using? The version 6 windows common controls are 
>> not themed. You need to use the version 5 control (comctl32.ocx) to get a 
>> themed tab control.
>
> I am using Version 5 of the control

More testing shows that the top of the tabs are themed, but the tab 
page is not. So I am looking for the best way to get the backcolour set 
to the correct one for the OS?


0
ttdhead (26)
5/31/2010 12:57:33 PM
"Leo" <ttdhead@gmail.com> wrote in message 
news:hu0bn9$hao$1@news.eternal-september.org...
> Leo used his keyboard to write :
>> David Youngblood explained on 31/05/2010 :
>>> "Leo" <ttdhead@gmail.com> wrote...
>>>> Under Windows 77 the background should be white including the top of 
>>>> the selected tab with the other tabs being a rounded grey colour. So I 
>>>> am not sure what colours to try if it's that.
>>>
>>> Which tab control are you using? The version 6 windows common controls 
>>> are not themed. You need to use the version 5 control (comctl32.ocx) to 
>>> get a themed tab control.
>>
>> I am using Version 5 of the control
>
> More testing shows that the top of the tabs are themed, but the tab page 
> is not. So I am looking for the best way to get the backcolour set to the 
> correct one for the OS?

Are you using a cointaner control for each page, such as a picturebox. You 
will need to draw a gradient fill on the container to match the tab's 
background . You will also need to set the backcolor of any checkbox and 
option button controls to match the background. Below are the colors I use. 
Note that this does not match all themes correctly (silver has a wearthered 
look), but using these colors looks decent on the MS themes that I've 
tested.

Private Const GRADIENT_COLOR1 As Long = &HFEFCFC
Private Const GRADIENT_COLOR2 As Long = &HEEF3F4
Private Const CHECKBOX_COLOR1 As Long = &HF3F6F6
Private Const CHECKBOX_COLOR2 As Long = &HF2F5F6
Private Const CHECKBOX_COLOR3 As Long = &HF1F5F5


0
dwy (73)
5/31/2010 1:24:35 PM
It happens that David Youngblood formulated :
> "Leo" <ttdhead@gmail.com> wrote in message 
> news:hu0bn9$hao$1@news.eternal-september.org...
>> Leo used his keyboard to write :
>>> David Youngblood explained on 31/05/2010 :
>>>> "Leo" <ttdhead@gmail.com> wrote...
>>>>> Under Windows 77 the background should be white including the top of the 
>>>>> selected tab with the other tabs being a rounded grey colour. So I am 
>>>>> not sure what colours to try if it's that.
>>>>
>>>> Which tab control are you using? The version 6 windows common controls 
>>>> are not themed. You need to use the version 5 control (comctl32.ocx) to 
>>>> get a themed tab control.
>>>
>>> I am using Version 5 of the control
>>
>> More testing shows that the top of the tabs are themed, but the tab page is 
>> not. So I am looking for the best way to get the backcolour set to the 
>> correct one for the OS?
>
> Are you using a cointaner control for each page, such as a picturebox. You 
> will need to draw a gradient fill on the container to match the tab's 
> background . You will also need to set the backcolor of any checkbox and 
> option button controls to match the background. Below are the colors I use. 
> Note that this does not match all themes correctly (silver has a wearthered 
> look), but using these colors looks decent on the MS themes that I've tested.
>
> Private Const GRADIENT_COLOR1 As Long = &HFEFCFC
> Private Const GRADIENT_COLOR2 As Long = &HEEF3F4
> Private Const CHECKBOX_COLOR1 As Long = &HF3F6F6
> Private Const CHECKBOX_COLOR2 As Long = &HF2F5F6
> Private Const CHECKBOX_COLOR3 As Long = &HF1F5F5

I am currently using a frame with no visible caption.


0
ttdhead (26)
5/31/2010 2:01:15 PM
On 29/05/2010 04:04, Leo wrote:
> Dee Earley pretended :
>> On 28/05/2010 04:18, Leo wrote:
>>> What is the best way to resolve the graphical issues that the Tab
>>> control suffers from when using XP/Vista themes?
>>
>> By telling us what you think they are as a start...
>
> The colour of the tab page background does not get set to the right one
> and under XP it is a gradient. I want to be able to get its background
> to be the right colour/gradient.

I spent a few days trying to do this on XP and I resigned (in vb6) to 
just use a solid colour, taken from just above the tab contents when it 
was first shown.

The default background is only drawn by the tab control itself, and the 
only other control/object I found that could is a Win32 PropertySheet.

..NET, and various other ones all used solid white.

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
0
dee.earley (149)
6/1/2010 11:44:25 AM
Reply:

Similar Artilces:

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 Untitled_LV71.vi: http://forums.ni.com/attachments/ni/170/323165/1/Untitled_LV71.vi 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 Back Style Windows Themed Controls
A2003. I rather like the appearance I get with windows themed controls turned on, but I'm running into an odd problem with tab controls. When I set the back style to transparent, it really isn't transparent. I'm finding instead of one text box or a button that I'd like to have on the form "shining through" and displaying with all pages, it's as if the tab control keeps the odd colour background it generates. I originally developed the current app in question in A2003, but with a different theme than I have right now on my PC and the colours, such as the standard system colour -2147483633 for form backgrounds is a nice beige/tan colour. In spite of the nice colour, however, instead of one text box that lists information from another form, I must place one on each of the tab's pages. Instead of one OK button and one cancel button, I must either raise the blinking bottom of the tab control or put a copy of the two of these buttons on each page. It's irritating. Anyone else run into this and have a solution? TIA -- Tim http://www.ucs.mun.ca/~tmarshal/ ^o< /#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake /^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me ...

tab control inside another tab control
Hi. 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. Thanks. -- Georges 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 slowly. HTH - Turtle "Georges Heinesch" <news@geohei.lu> wrote in message news:3fe82fb8$1_2@news.vo.lu... > Hi. > > 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. > > Thanks. > > -- > Georges > > > 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. I don't recommend using nested tab controls for usability reasons. If you need to put a lot of information on one form, just use a whole lot of tab pages. If all the information doesn't fit inside tabs on a tab control on a 800x600-fitting form, then you need to figure out how to split the form up into many forms. For mega-sized forms, if you absolutely must, you can do what a lot of software vendors do for their "Options" dialog boxes--you can put a listbox with a...

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. Thanks As you found, you cannot place a tab control on one of the pages of another tab control. 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" <pmendez@thelyndco.com> wrote in message news:99915b66.0408030655.4d96353d@posting.google.com... > 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 "Backstyle" Property Not Working With Windows Themed Controls
The tab control "backstyle" property refuses to work when set to "transparent" in an A2003 database if Windows themes controls are being used. I've seen references to this in a few places, but no fix. If the A2003 database is opened using A2007 the property works fine. Go figure. Does anyone know of a workaround? ...

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? TIA Tony Williams "Tony Williams" <tw@tcpinvalid.com> wrote in message news:<coo2hr$285$1@sparta.btinternet.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 ...

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&nbsp;I can't seem to figure out how to get these same&nbsp;references! I can only get the tab control ref. :smileyindifferent: &nbsp; &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243049/1/Cotrols%20on%20pages.JPG"> 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 ...

Control + Tab between subforms on tab control pages ACC 2002
Greetings! 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 DoCmd.GoToControl "txtZoningClass+" End If End Sub 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, brian.flannery@ci.verona.wi.us (Brian) wrote: >Greetings! >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...

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.&nbsp; 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.&nbsp; Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data.&nbsp; Thanks for your help... Test Tab Control [1].vi: http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control [1].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? Thanks! ...

a2k
I have 3 groups of controls each in their own frame and all are sitting on a page in a tab control. I want the user to be able to tab between the controls in each frame; at the moment tabbing can move the cursor to another frame, which is a bit disconcerting when the user is filling out some address fields. I've played around with the tab index properties manually and even tried to set them using VBA. However if I do this I find some controls actually disappear! To correct this I have to use Auto Order. Apart from this the app is working nicely but little things like are a bit of a pain and the first thing that most people will complain about... Has anyone encountered this and come up with a solution? thanks Martin ...

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. Wayne wrote: > 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 perceive. -- Rick Brandt, Microsoft Access MVP Email (as appropriate) to... RBrandt at Hunter dot com On 9 Mar 2007 18:35:53 -0800, "Wayne" <cqdigital@volcanomail.com> wrote: In some applications tab controls contain subforms. If things get sluggish I typically only...

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 it. Any ideas? -- Bob Darlington Brisbane 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 > > it. > > Any ideas? > > > > -- > > Bob Darlington > > Brisbane 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 ...

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) TIA 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. <cefrancke@yahoo.com> wrote in message news:1111241572.858053.147460@z14g2000cwz.googlegroups.com... > 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...

copying controls from a form to a tab control
I have copied approx 20 controls from a form to a tab control for reasons of space. i now cannot run code triggered by the events of these controls. for example, the following will not trigger the message box when changed: Private Sub cboA_Change() MsgBox "combo A changed" End Sub the controls are all disabled and are only enabled when the previous control has a value set. any ideas? thanks Winshent Winshent, Instead of copying and pasting, try cutting and pasting. If you copy and then paste, the original controls stay on the form so when you paste the new controls get new names and not the names you chose which means that even if you then delete the original controls, the new controls will still have new names and therefore no events associated with them. Situation: cboA gets copies and pasted. Access changes the name to something like Combo294 You then delete cboA. Your Module now has cboA_Change() but there is no control named cboA Combo294 now exists, and looks the same, but has no events associated with. Make sense? -- Jeremy Shapiro Asandia, Corp. www.asandia.com 1.866.ASANDIA (272.6342) "winshent" <vincent.pirolli@btinternet.com> wrote in message news:c86c3b5e.0406110817.64d9c0f3@posting.google.com... > I have copied approx 20 controls from a form to a tab control for > reasons of space. > > i now cannot run code triggered by the events of these controls. > > for example, the following will not trigger the m...

Valve control
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing.&nbsp; The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges.&nbsp; 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&nbsp;a file.&nbsp; This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button.&nbsp; I have the VI up and running, all except for the opening part of the valve.&nbsp; I have included a simple example of where I am going with the valve control.&nbsp; Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming. &nbsp; Thank you, &nbsp; &nbsp; Jmc Valve control.vi: http://forums.ni.com/attachments/ni/170/198874/1/Valve control.vi ...

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 un retrievable." Jim Henderson" Zvezdana In my disgust, I had deleted all copies of the offending vi. I believe my problem must have been, primarily, a corrupted compile/save. Thanks Jim ...

How to control the tab control using event structure?
Hi, 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&nbsp;taking place for all pages &nbsp; So, how to get the event trigger for the active page when the application is started &nbsp; 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.&nbsp;The VI is trapped inside the event until stop&nbsp;is pressed to&nbsp;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&amp;view=by_date_ascending&amp;message.id=287905"...

Re: a2k
Deano wrote: > I have 3 groups of controls each in their own frame and all are > sitting on a page in a tab control. > > I want the user to be able to tab between the controls in each frame; > at the moment tabbing can move the cursor to another frame, which is > a bit disconcerting when the user is filling out some address fields. > > I've played around with the tab index properties manually and even > tried to set them using VBA. > However if I do this I find some controls actually disappear! To > correct this I have to use Auto Order. > > Apart from this the app is working nicely but little things like are > a bit of a pain and the first thing that most people will complain > about... > > Has anyone encountered this and come up with a solution? A reply to my own post from some time ago, since I have just solved this one. If anyone encounters this the problem is with the frame controls. You simply don't need them in this kind of scenario. A simple box drawn around groups of controls serves the same cosmetic purpose and all of a sudden it was very easy to re-order the tab index of all controls. I hope I am correct in saying that the frame control should only be used in conjunction with option button groups. ...

How do you refer to a control on subform inside a tab control?
Hi, (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! Thanks, ~Joshua Ammann 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. Larry Linson Microsoft Access MVP "Joshua Ammann" <joshua@ammann.com> wrote in message news:328b5d2d.0409081117.3401162e@posting.google.com... > Hi, > > (Using Access 2000) > > I have two tables, similar to Customers and Orders. ...

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:) -- regards, Bradley Is it possible that your text box is behind the tab control? Peter De Bae...

Basic Tab Control Question
In my Access 97 database I have a form with a tab control that has about 150 controls on it (no subforms). When I add another tab and click on it (in both design and form view) all I see are the controls from the first tab. Why is this? Should I not be seeing a blank tab so that new controls can be added on it? Any help would be much appreciated. Am I missing something? Mark Mark C wrote: >In my Access 97 database I have a form with a tab control that has about 150 >controls on it (no subforms). When I add another tab and click on it (in >both design and form view) all I see are the controls from the first tab. >Why is this? Should I not be seeing a blank tab so that new controls can be >added on it? Any help would be much appreciated. Am I missing something? Sounds like you just positioned the controls on top of the tab control instead of creating the controls inside the tab. You can either select all the controls and cut them. Then select the first tab and paste them back, or delete all the controls and select the first tab before recreating them. -- Marsh MVP [MS Access] Thanks Marsh Problem solved. Its been a few years since I had to use the tab control. I'll make sure this one gets entered into the old memory bank. Mark C. "Marshall Barton" <marshbarton@wowway.com> wrote in message news:982um09amv5b554nrs4kpf7d86ig5bsk6u@4ax.com... > Mark C wrote: > >>In my Access 97 database I have a form with a...

Form layout question: How move controls in a Form to (in) a Tab Control?
Hi, I created a form with a lot of controls on it. (textboxes, pulldown's etc.) Because the form is a little full I want to move the controls to different pages on a tab control. HOW can one do this?. If I drag them the tab control is not 'activated' if the mouse pointer is above the tab control. (if one creates a new textbox and place it on the tab control this tab control page turns black to show it's activated) This does not work while dragging??! Thanks in advance, Eddie Smit Holland. (The Netherlands) >Because the form is a little full I want to move the >controls to different pages on a tab control. HOW can one >do this?. Cut and Paste :) You'll need to relink any code behind the control by going to Properties -> Event Procedure and clicking on the ... and selecting what type of Event Procedure it was (code, macro, expression builder) HTH -- Nath www.cooldigitec.co.uk (Email mangling obvious) *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! Before you cut and paste, make sure the backround of the tab control is "Normal" and npt "Transparent" or you will paste the controls to the form! -- PC Datasheet A Resource for Access, Excel and Word Applications resource@pcdatasheet.com www.pcdatasheet.com � Design and basic development for new applications � Additions, Modification...

Web resources about - Common Controls Tab Control Defects when themed - comp.lang.basic.visual.misc

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Jihadi threat in Europe now 'beyond control' of authorities
Belgium's violent Islamic extremism problem has reached such a scale it now appears to be beyond the ability of European authorities to control, ...

Brussels terror attacks: Malcolm Turnbull says tight border control needed
... policies. Malcolm Turnbull has said the Brussels attacks should remind Australians of the importance of their country's tight border control ...

Obamacare's birth control requirement returns to Supreme Court
Obamacare's birth control requirement returns to Supreme Court

Supreme Court hears challenge to Obamacare birth control mandate - CNNPolitics.com
The Supreme Court on Wednesday will take up a case from an order of nuns called the Little Sisters of the Poor to Obamacare's 'contraceptive ...

How to control your home media with 3D Touch and Launch Center Pro
While some apps haven’t quite figured out best use cases for 3D Touch yet, a handful of apps have gotten it right. One of those apps is Launch ...

Obamacare birth control mandate arguments hinge on 'burden' and what's 'objectionable'
... non-profits are arguing against a provision of Obamacare that requires employers to provide health insurance coverage that includes birth control. ...

Crews Bringing Wildfires in Kansas, Oklahoma Under Control
Authorities say a wildfire in south-central Kansas still poses a threat but conditions are improving in the two counties most affected

Supreme Court divided over health law birth control plan
... seems deeply divided over the arrangement devised by the Obama administration to spare faith-based groups from having to pay for birth control ...

Today in Conservative Reverence for Local Control
North Carolina wants to make sure that no subdivision can provide civil rights protections to LBGT people: North Carolina’s General Assembly ...

Resources last updated: 3/24/2016 7:49:48 PM