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?
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?
Comment