7 replies
by sl-campbell
There is no way to change the tab colors with this tab control delivered with Access.
You could create 4 bitmaps that rectangular in form, each with a different color, and add them to the individual tabs' Picture property, but only part of the tab (Left side) is with color and the right side with the text still has a grey backgroung.
by sl-campbell
Expanding on the idea of creating 4 different colored bitmaps another idea came in mind which works for me:
Place the text needed for each tab into these 4 colored bitmaps.
Each bitmap must be the same width.
Then, after assigning each tabs' picture to one of these bitmaps, change the width of all the tabs to a size that reduces the tab width enough to hide the tab name (I used 0.01).
Bingo!
by sl-campbell
You cannot change the tab sheet color. You have two options:
1).You need to draw a rectangle ON each of the tab sheets with the same dimension as the tab sheet, set its' view to Normal (not transparent), under the menu point Format, select 'Send to Background', (or whatever it is called in the english version), and change it's color.
The problem with this is you cannot make the size eaxctly the same as the sheet.
2). This option calls also for a rectangle, but drawn onto the form instead of the tab control. Set its' view to normal, send it to the background and move it UNDER the tab control and fine tune the position and size, or do it on then form load event, capturing the position and size of the tab control, (minus the tab controls' top height).
Make sure the tab controls' view is transparent.
Then, at run time on each tabs' click change the color of the rectangle! (you will need to define a color and set the current tab at first on the form load event because a tab click hasn't happened yet to change to the first color, or do it in design mode - just make sure the same tab is clicked in design mode that you want to show when the form loads or the color may be wrong)
by sl-campbell
John, Has this worked for you?
by john_wills
by john_wills
by john_wills
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending