PC Review


Reply
Thread Tools Rate Thread

Tab Control Color

 
 
quixote
Guest
Posts: n/a
 
      8th Oct 2004
I have a form with a Tab control and under a certain
condition I would like to either change the color of a
Page or change the color of the text(even just make it
bold would be fine). I can't seem to find the properties
or the proper syntax to do this any ideas?

This is essentially the login I want:

If condition Then

Me.myTab.MyPage(1).BGColor = vbRed
or

Me.myTab.MyPage.Text = vbRed or Bold
End if


Thanks

 
Reply With Quote
 
 
 
 
MikeC
Guest
Posts: n/a
 
      8th Oct 2004
The tab control that comes with Access offers no background color property
for the individual tabs.
However, alternative methods are possible. The sample database/code
provided at the below web page should get you started.

http://www.lebans.com/tabcolors.htm



"quixote" <(E-Mail Removed)> wrote in message
news:275501c4ad73$bc79ce00$(E-Mail Removed)...
>I have a form with a Tab control and under a certain
> condition I would like to either change the color of a
> Page or change the color of the text(even just make it
> bold would be fine). I can't seem to find the properties
> or the proper syntax to do this any ideas?
>
> This is essentially the login I want:
>
> If condition Then
>
> Me.myTab.MyPage(1).BGColor = vbRed
> or
>
> Me.myTab.MyPage.Text = vbRed or Bold
> End if
>
>
> Thanks
>



 
Reply With Quote
 
 
 
 
Frank Schlüter
Guest
Posts: n/a
 
      11th Oct 2004
Hello,
I tried to change the TabColor with your function, Steve. But, the MS
Tab-Control only accepts 256Colors-Bitmaps. Try the color 255,253,242 (rgb).
The TabStrip is displayed in white (changing the color of the rectangle of
course is no problem). But not your function failed, the TaBStrip is the
problem. Try to set an 24Bit-image with the standard properties-dialog. The
same effect, the shown image is not the original. I hope you understand my
problem. What can we do? A letter to MS? ;-)

By Frank


"MikeC" <(E-Mail Removed)> schrieb im Newsbeitrag
news:OMC9d.26650$(E-Mail Removed)...
> The tab control that comes with Access offers no background color property
> for the individual tabs.
> However, alternative methods are possible. The sample database/code
> provided at the below web page should get you started.
>
> http://www.lebans.com/tabcolors.htm
>
>
>
> "quixote" <(E-Mail Removed)> wrote in message
> news:275501c4ad73$bc79ce00$(E-Mail Removed)...
> >I have a form with a Tab control and under a certain
> > condition I would like to either change the color of a
> > Page or change the color of the text(even just make it
> > bold would be fine). I can't seem to find the properties
> > or the proper syntax to do this any ideas?
> >
> > This is essentially the login I want:
> >
> > If condition Then
> >
> > Me.myTab.MyPage(1).BGColor = vbRed
> > or
> >
> > Me.myTab.MyPage.Text = vbRed or Bold
> > End if
> >
> >
> > Thanks
> >

>
>



 
Reply With Quote
 
Stephen Lebans
Guest
Posts: n/a
 
      12th Oct 2004
This limitation is documented in the commented source code behind the
sample Form. There is no workaround that I could find.

--

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


"Frank Schlüter" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hello,
> I tried to change the TabColor with your function, Steve. But, the MS
> Tab-Control only accepts 256Colors-Bitmaps. Try the color 255,253,242

(rgb).
> The TabStrip is displayed in white (changing the color of the

rectangle of
> course is no problem). But not your function failed, the TaBStrip is

the
> problem. Try to set an 24Bit-image with the standard

properties-dialog. The
> same effect, the shown image is not the original. I hope you

understand my
> problem. What can we do? A letter to MS? ;-)
>
> By Frank
>
>
> "MikeC" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:OMC9d.26650$(E-Mail Removed)...
> > The tab control that comes with Access offers no background color

property
> > for the individual tabs.
> > However, alternative methods are possible. The sample database/code
> > provided at the below web page should get you started.
> >
> > http://www.lebans.com/tabcolors.htm
> >
> >
> >
> > "quixote" <(E-Mail Removed)> wrote in message
> > news:275501c4ad73$bc79ce00$(E-Mail Removed)...
> > >I have a form with a Tab control and under a certain
> > > condition I would like to either change the color of a
> > > Page or change the color of the text(even just make it
> > > bold would be fine). I can't seem to find the properties
> > > or the proper syntax to do this any ideas?
> > >
> > > This is essentially the login I want:
> > >
> > > If condition Then
> > >
> > > Me.myTab.MyPage(1).BGColor = vbRed
> > > or
> > >
> > > Me.myTab.MyPage.Text = vbRed or Bold
> > > End if
> > >
> > >
> > > Thanks
> > >

> >
> >

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
attempting to format a color pattern in tab 3, based tab 2 and tab mturboman Microsoft Excel Misc 5 24th Feb 2010 10:10 AM
color transition (color changes from dark color to light color) color transition Microsoft Powerpoint 2 21st Nov 2009 01:21 PM
1 tab control, 5 tab pages - different color =?Utf-8?B?TWFydGhh?= Microsoft C# .NET 5 14th Aug 2005 04:11 AM
tab control tab color Kevin Microsoft VB .NET 2 3rd May 2005 07:53 PM
Fill Color/ Background Color/Tab Color M.Cave Microsoft Excel Misc 2 11th Oct 2004 02:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:25 AM.