Backcolor for Tab controls? (1 Viewer)

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
Tab Control Backcolor?

Is there a way to change the back color of a tab in a tab control? Using code, whatever?

Thanks
 

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
Is there a way to change the back color of a tab control? Especially change the colors of the tabs themselves...?
 
V

vseale

Guest
Backcolor on Tab

There's no property setting. There is a workaround -
create an image control
set to the desired color
format to "Bring to Front"
place over the tab

If you want text on the tab -
create a label box
Type in text
format to "Bring to Front"
place over the image which has already been placed over the tab
 

trucktime

Registered User.
Local time
Today, 16:01
Joined
Oct 24, 2004
Messages
556
Tab Color

I haven't found such code.

I stopped using the Tab Control.
Instead I draw two Rectangles, a large one for the main area and a small
one to simulate the actual tab. I can set the colors easily and I use the SpecialEffect settings to simulate the tabs to go up and down.
Coding is a little more work, but it is worth it to me.
 

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
Neither of these objects will come in front of the tab of a tab control - otherwise, I'd have tried that long ago.

More thoughts?
 

Mile-O

Back once again...
Local time
Today, 23:01
Joined
Dec 10, 2002
Messages
11,316
My preference is just to set the Tab's background to Transparent and then use labels that, when clicked, change the tab. That way, I can have any tab background I want.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 17:01
Joined
Feb 28, 2001
Messages
27,319
The problem is that the color for tab controls is derived from a WINDOWS setting, not an Access setting. At least in theory, there is a way to do what you want but it is not trivial because the setting you want is in a different part of the registry.
 

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
So is there a way to get rid of the tabs so that I don't have labels AND tabs?
 

Mile-O

Back once again...
Local time
Today, 23:01
Joined
Dec 10, 2002
Messages
11,316
tkpstock said:
So is there a way to get rid of the tabs so that I don't have labels AND tabs?

Set the tab's Style property to None.
 

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
Thanks - your method works pretty well! I am having a somewhat hard time getting a "professional, seamless" look - any suggestions? I am pretty close - I have the active tab "raised" and the others "flat", the others are darker colors while the active tab matches the tab control.

Thanks!
 

Mile-O

Back once again...
Local time
Today, 23:01
Joined
Dec 10, 2002
Messages
11,316
How's this example?
 

Attachments

  • dbTabs.zip
    9.8 KB · Views: 196

godofhell

Database Guru
Local time
Today, 15:01
Joined
May 20, 2005
Messages
180
Another way to get the effect using the tab control is to set the Caption to a space so that no caption displays and set an image with the color and name you want on it. This will be like setting an image button on a web page so that you get the rollover effect, except that it will be for the tab. The image must be a .bmp format.
 

Mile-O

Back once again...
Local time
Today, 23:01
Joined
Dec 10, 2002
Messages
11,316
I had to merge these threads since they'd both grown off on their own. In future, tkpstock, please select the most appropriate forum and post your question only once to it. Thanks.
 

tkpstock

Cubicle Warrior
Local time
Today, 18:01
Joined
Feb 25, 2005
Messages
206
SJ McAbney said:
I had to merge these threads since they'd both grown off on their own. In future, tkpstock, please select the most appropriate forum and post your question only once to it. Thanks.
[tkpstock: with red slap mark on hand] Ok. Sorry. :eek:
 

Users who are viewing this thread

Top Bottom