A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Change tab/background colour on the tabContainer control in MS Access?



 
 
Thread Tools Display Modes
  #1  
Old July 4th, 2004, 09:13 PM
Grahammer
external usenet poster
 
Posts: n/a
Default Change tab/background colour on the tabContainer control in MS Access?

I'm using the tabControl for a data entry form and it works quite well, with
one small problem...

The default grey appearance of the tabs and tab area looks very shoddy on my
form. Is there a way to change the color of the background on the tabs and
the tabs background area? I'll even try an API call if necessary.

Thanks!!!


  #2  
Old July 5th, 2004, 03:21 AM
Stephen Lebans
external usenet poster
 
Posts: n/a
Default Change tab/background colour on the tabContainer control in MS Access?

See:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color
2) Rotated Text

Notes:
You must set the Tab controls TAB Fixed Height and Width properties
You must set the Individual Tab pages TAG property to whatever color
value you desire.



History
Version 1.6
Added support to allow for the coloring of just the Current/Active TABS
and not the background of the Tab control

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Grahammer" wrote in message
...
I'm using the tabControl for a data entry form and it works quite

well, with
one small problem...

The default grey appearance of the tabs and tab area looks very shoddy

on my
form. Is there a way to change the color of the background on the tabs

and
the tabs background area? I'll even try an API call if necessary.

Thanks!!!



  #3  
Old July 5th, 2004, 03:53 PM
Kentucky5
external usenet poster
 
Posts: n/a
Default Change tab/background colour on the tabContainer control in MS Access?

I have buttons on my form that if on that particular
subform there is data entered it would change the color of
the button associated with that, how would I do that?


-----Original Message-----
See:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the

standard Access TAB
control in order to allow for:

1) Tabs of any color
2) Rotated Text

Notes:
You must set the Tab controls TAB Fixed Height and Width

properties
You must set the Individual Tab pages TAG property to

whatever color
value you desire.



History
Version 1.6
Added support to allow for the coloring of just the

Current/Active TABS
and not the background of the Tab control

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can

benefit.


"Grahammer" wrote in message
...
I'm using the tabControl for a data entry form and it

works quite
well, with
one small problem...

The default grey appearance of the tabs and tab area

looks very shoddy
on my
form. Is there a way to change the color of the

background on the tabs
and
the tabs background area? I'll even try an API call if

necessary.

Thanks!!!



.

  #4  
Old July 6th, 2004, 11:25 AM
Al Borges
external usenet poster
 
Posts: n/a
Default Change tab/background colour on the tabContainer control in MS Access?

Hi:

What you need to do is to place a conditional colored bitmap scheme for the
tabs. This is how I would handle this problem that you wish to tackle; say
you have 3 subform folders-

Dim rst as recordset
Set rst = Forms![YourFocusForm]![Subform1].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page1.picture = "C:\RedBackground.bmp"
else
page1.picture = "C:\BlueBackground.bmp"
End If

Set rst = Forms![YourFocusForm]![Subform2].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page2.picture = "C:\RedBackground.bmp"
else
page2.picture = "C:\BlueBackground.bmp"
End If

Set rst = Forms![YourFocusForm]![Subform3].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page3.picture = "C:\RedBackground.bmp"
else
page3.picture = "C:\BlueBackground.bmp"
End If
rst.Close

That should work for you... at least theoretically. Let us know if it works!

Regards,
Al

"Kentucky5" wrote in message
...
I have buttons on my form that if on that particular
subform there is data entered it would change the color of
the button associated with that, how would I do that?


-----Original Message-----
See:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the

standard Access TAB
control in order to allow for:

1) Tabs of any color
2) Rotated Text

Notes:
You must set the Tab controls TAB Fixed Height and Width

properties
You must set the Individual Tab pages TAG property to

whatever color
value you desire.



History
Version 1.6
Added support to allow for the coloring of just the

Current/Active TABS
and not the background of the Tab control

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can

benefit.


"Grahammer" wrote in message
...
I'm using the tabControl for a data entry form and it

works quite
well, with
one small problem...

The default grey appearance of the tabs and tab area

looks very shoddy
on my
form. Is there a way to change the color of the

background on the tabs
and
the tabs background area? I'll even try an API call if

necessary.

Thanks!!!



.



  #5  
Old July 7th, 2004, 01:31 AM
Kentucky5
external usenet poster
 
Posts: n/a
Default Change tab/background colour on the tabContainer control in MS Access?

Al,
Thank you I will try this and definitely let you know if
it works or not.
-----Original Message-----
Hi:

What you need to do is to place a conditional colored

bitmap scheme for the
tabs. This is how I would handle this problem that you

wish to tackle; say
you have 3 subform folders-

Dim rst as recordset
Set rst = Forms![YourFocusForm]!

[Subform1].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page1.picture = "C:\RedBackground.bmp"
else
page1.picture = "C:\BlueBackground.bmp"
End If

Set rst = Forms![YourFocusForm]!

[Subform2].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page2.picture = "C:\RedBackground.bmp"
else
page2.picture = "C:\BlueBackground.bmp"
End If

Set rst = Forms![YourFocusForm]!

[Subform3].form.RecordsetClone
rst.movefirst
rst.movelast
If rst.recordcount 0 Then
page3.picture = "C:\RedBackground.bmp"
else
page3.picture = "C:\BlueBackground.bmp"
End If
rst.Close

That should work for you... at least theoretically. Let

us know if it works!

Regards,
Al

"Kentucky5" wrote

in message
...
I have buttons on my form that if on that particular
subform there is data entered it would change the color

of
the button associated with that, how would I do that?


-----Original Message-----
See:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the

standard Access TAB
control in order to allow for:

1) Tabs of any color
2) Rotated Text

Notes:
You must set the Tab controls TAB Fixed Height and

Width
properties
You must set the Individual Tab pages TAG property to

whatever color
value you desire.



History
Version 1.6
Added support to allow for the coloring of just the

Current/Active TABS
and not the background of the Tab control

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can

benefit.


"Grahammer" wrote in message
...
I'm using the tabControl for a data entry form and it

works quite
well, with
one small problem...

The default grey appearance of the tabs and tab area

looks very shoddy
on my
form. Is there a way to change the color of the

background on the tabs
and
the tabs background area? I'll even try an API call

if
necessary.

Thanks!!!



.



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the bubble colour based on a fourth value Wayne Charts and Charting 4 July 23rd, 2004 07:39 PM
Automatically, and independently, change bar colour dependanton result Andy Pope Charts and Charting 0 May 5th, 2004 09:37 AM
Linking Excel data through Access to use a Form as an Interface Laura Links and Linking 0 March 23rd, 2004 03:59 PM
Cell Colour Change Within an if Function Alex Worksheet Functions 1 January 29th, 2004 12:36 PM
cell to change colour at given date - how to Tobit Worksheet Functions 2 September 17th, 2003 12:20 PM


All times are GMT +1. The time now is 12:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.