Transparent TabControl in A2K7 and Windows XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jamey

    Transparent TabControl in A2K7 and Windows XP

    Ran into an inconvenience with TabControls yesterday. I found a
    partial explanation from Allen Browne on the MS message boards
    explaining when it happens, but not why. I thought Stephen Lebans
    (who's done a little work with this for his multi-colored listbox
    class), or someone else might've figured this out.

    Here's the scenario:

    DBs created on Windows XP using A2K7 are apparently incapable of
    displaying TabControl transparency. Regardless of the BackStyle
    property setting for a TabControl, the control is displayed with an
    opaque background.

    Per Allen's post, changing the display theme to "Windows Classic"
    restores the display transparency of the control, but with a "Windows
    XP" theme, the control display reverts to opaque, regardless of
    BackStyle property setting.

    TabControls in DBs created on Windows XP using A2K3 display correctly
    based on the BackStyle setting regardless of operating system or
    Access version. Further, any form containing a TabControl imported
    into those DBs created in A2K3 also display correctly. For example, if
    a form containing a TabControl is created in A2K7 it will not display
    transparently unless it is imported into a DB created in A2K3.

    The converse of this import anomaly is not true. That is, a form
    containing a TabControl created in A2K3 and imported into a DB created
    in A2K7 also displays opaquely regardless of BackStyle property
    setting.

    I've monkeyed around with all manner of property setting (property
    sheet, VBA design-time, and VBA run-time). I've tried changing the
    BackStyle property for the default TabControl object, as well.

    Any ideas/experience with this thing?

    Any ideas?
  • Allen Browne

    #2
    Re: Transparent TabControl in A2K7 and Windows XP

    Yes, this is a bit of a pain.

    Have you tried unchecking the 'Use Windows Themed Controls' option under:
    Office Button | Access Options | Current Database

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "Jamey" <cantankeris@ya hoo.comwrote in message
    news:ad56a7e7-1e00-4a1c-a461-a31c2c761a2e@8g 2000hse.googleg roups.com...
    Ran into an inconvenience with TabControls yesterday. I found a
    partial explanation from Allen Browne on the MS message boards
    explaining when it happens, but not why. I thought Stephen Lebans
    (who's done a little work with this for his multi-colored listbox
    class), or someone else might've figured this out.

    Comment

    • Jamey

      #3
      Re: Transparent TabControl in A2K7 and Windows XP

      On Jul 18, 12:07 am, "Allen Browne" <AllenBro...@Se eSig.Invalid>
      wrote:
      Yes, this is a bit of a pain.
      >
      Have you tried unchecking the 'Use Windows Themed Controls' option under:
          Office Button | Access Options | Current Database
      >
      --
      Allen Browne - Microsoft MVP.  Perth, Western Australia
      Tips for Access users -http://allenbrowne.com/tips.html
      Reply to group, rather than allenbrowne at mvps dot org.
      Sorry so late getting back to this, been on vacation.

      Yes, Allen, that's the trick. That option gets unchecked for the
      databases created in earlier versions, automatically, and that leads
      to the creation version issues detailed above.

      Didn't even know that option was there.

      I changed the setting in Tools|Options|F orms/Reports tab.

      Comment

      Working...