HeaderPane
Main
Hide
Share Link
Print

High Contrast

Windows High Contrast is an accessibility setting, not a visual preference. Users who enable it have committed to a specific high-contrast color scheme for everything on screen, and Microsoft's accessibility guidelines require applications to let the user's scheme win over any application-chosen colors. SftTabs/OCX 7.0 follows the Windows setting once the HighContrastMode property is set to highContrastSftTabsAuto. The default is highContrastSftTabsOff, so that applications written for earlier versions keep their appearance.

When high contrast is active, the tab control:

  • renders its background, the tab text and the active tab using the user's high contrast palette (the system colors),
  • ignores the colors defined by the application for the control and for individual tabs - the user's contrast theme wins,
  • suppresses dark mode rendering - high contrast takes precedence over dark mode,
  • suppresses Windows themes. The control draws the tabs itself, using the system colors directly.

The HighContrastMode property has three values (see SftTabsHighContrastConstants):

ValueDescription
highContrastSftTabsAutoFollow the Windows High Contrast setting. The control re-renders when the setting flips. Recommended for new applications.
highContrastSftTabsOnAlways use the system palette, regardless of the Windows High Contrast setting. Useful for testing, or for applications that want consistent high-contrast rendering for a specific tab control.
highContrastSftTabsOff (default)Ignore the Windows High Contrast setting and render normally. Users with accessibility needs will see rendering that does not comply with their contrast theme.

The HighContrastChange event is fired each time the active state flips (highContrastSftTabsAuto only) so the application can update the form and the controls around the tab control to match. The HighContrastActive property reports the current state at any time.

Dark mode and Windows High Contrast are independent. If both are active, high contrast takes precedence - the contrast theme's palette wins over the dark palette, because honoring the user's contrast theme is the stronger accessibility requirement. See Dark Mode.


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.