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:
The HighContrastMode property has three values (see SftTabsHighContrastConstants):
| Value | Description |
|---|---|
| highContrastSftTabsAuto | Follow the Windows High Contrast setting. The control re-renders when the setting flips. Recommended for new applications. |
| highContrastSftTabsOn | Always 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.