Backcolor for Tab controls?

tkpstock

Cubicle Warrior
Local time
Yesterday, 23:36
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
 
Is there a way to change the back color of a tab control? Especially change the colors of the tabs themselves...?
 
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
 
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.
 
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?
 
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 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.
 
So is there a way to get rid of the tabs so that I don't have labels AND tabs?
 
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.
 
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!
 
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.
 
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.
 
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. :o
 

Users who are viewing this thread

Back
Top Bottom