Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Sep 2002
    Location
    London, England
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Format Tab Control (2003)

    I have set the Back Style property on a tab control to transparent but it hasn't made any difference - the tab control remains opaque. I've discovered that if I untick the 'Use Windows Themed Controls on Forms' option in the Forms/Reports tab of the Options menu, the tab control does become transparent. However, the project I am working on is for a design department and I wanted the user interface to look as slick as possible. In my humble opinion the Windows themed controls, particularly the rounded buttons that change colour when you mouse over them, look more modern and more likely to appeal to designers. Sadly, with Windows Themed Controls selected the tab control looks terrible. Is there any way of having both Windows themed controls and transparent tab controls?

    Is there, in fact, any other way of making tab controls look better? The only thing I've managed to alter is the font/size/weight of the tab captions.

    Thanks again for any help

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

    Re: Format Tab Control (2003)

    You could set the Style property of the tab control to None, and provide another method for activating a tab page, for example toggle buttons, option buttons or command buttons. You activate a tab page in code by setting the value of the tab control to the index of the tab page, starting at 0 for the first page. So the code to activate the 3rd page of a tab control named tabPages would be

    Me.tabPages.Value = 2

  3. #3
    3 Star Lounger
    Join Date
    Sep 2002
    Location
    London, England
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Format Tab Control (2003)

    That gets rid of the light brown space behind the tabs, but the tab control itself is still not transparent.

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

    Re: Format Tab Control (2003)

    There is nothing to be done about that. You could create several subforms superimposed on each other, and use code to unhide one subform and hide all the others, but it's more tedious than using a tab control.

  5. #5
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Format Tab Control (2003)

    I have just been experimenting with this.

    On my computer, when I set the style to None, and the background to Transparent, the Tab Control does disappear completely.

    and it did not make any difference whether I turned on Use Windows Themed Controls or not.

    I can then use a group of toggle buttons to replace the tab control page tabs, and change pages using Me.tabPages = me.optiongroup -1

    I decided not to keep it that way however because working in Design View with a Tab Control with a style None is such a nuisance.

    PS I can't stand the new look rounded command buttons so I set my computer to use windows classic style. This may explain why this works for me and not for you.
    Regards
    John



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

    Re: Format Tab Control (2003)

    (This is more for IanR than for you)

    One could set the style of the tab control to Tabs during development, and set it to None when finished (this might necessitate minor adjustments in the position of other controls).

  7. #7
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Format Tab Control (2003)

    ___________
    when finished ???
    ___________

    Do you finish things sometimes?
    Regards
    John



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

    Re: Format Tab Control (2003)

    One has to stop designing at some point - even if only temporarily. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

Posting Permissions

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