Results 1 to 12 of 12
  1. #1
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tab control colour (2003 (SP1))

    I've got a form with a coloured background that I want to use on a tabbed control. Is this possible?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control colour (2003 (SP1))

    Do you mean that you want to use the form as a subform in a tab page? That should be no problem.

    Or do you mean that you want to use a tab control on the form with a coloured background? (I know, that's not what you state.) You can set the Back Style property of the tab control to transparent, this will make the tab pages transparent. The strip with the tabs cannot be made transparent, it is always the "3D Objects" colour set in the Display Properties control panel in Windows.

  3. #3
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tab control colour (2003 (SP1))

    Heres another angle. Do you want the tab control colour to match the colour of an existing form. If so, see this page to get some tips: Coloured Tabs for Your Access Forms
    Regards,
    Rudi

  4. #4
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control colour (2003 (SP1))

    No, I didn't put that well at all!

    I do want the tabbed control to have the same background colour as the main form. However, setting it to transparent makes no difference. I've set the colour in the 'detail' properties & tried using a tiled basic colour BMP. But no change.

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control colour (2003 (SP1))

    Could you try to explain in detail what the setup is? It is still not clear to me.
    Perhaps you could attach a stripped down and zipped copy of the database.

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tab control colour (2003 (SP1))

    It sounds like you're confusing the settings for the tab control with the settings for the form or subform. You can set the transparency of the tab control to pick up the color of the form or subform it is on. You cannot set the transparency of the form, if that's what you're trying.
    Charlotte

  7. #7
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control colour (2003 (SP1))

    OK dokey [img]/forums/images/smilies/smile.gif[/img] Here's a cut down version. I've set the form to open on startup. Now on this works PC the tabbed control remians a pale cream colour.

    edit; PS I'm using the tabbed control because the subform data on it is normally from linked tables which slow things down considerably.

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control colour (2003 (SP1))

    The screenshot below shows part of the main form, with the tab control. What exactly is the problem?

    Oh, wait. You're using Access 2003. Have you turned off "Use Windows Themed Controls" in the Forms/Reports tab of Tools | Options...?

  9. #9
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control colour (2003 (SP1))

    Bingo! That's all it was.

    BTW, can the grey part at the top be chnaged?

  10. #10
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control colour (2003 (SP1))

    > BTW, can the grey part at the top be chnaged?

    No, as I explained in my first reply. You can fake it as described in the link in Rudi's reply.

  11. #11
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tab control colour (2003 (SP1))

    The tabs can't but the gray band behind them can be hidden with another trick, if that's what you want to do. If you create a subform that has no contents and is the right size to cover the gray strip exposed by tab control when the tabs don't fill it, you can set the backcolor of the subform to the same color as the background of your main form. This will cover up the gray area when the form is run, since the subform will "float" to the top and hide the gray strip.
    Charlotte

  12. #12
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control colour (2003 (SP1))

    Ah, that'll do the job. Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •