Get(HighContrastState)
Category: Get
Syntax: Get ( HighContrastState ) |
Parameters: None
Data type returned: Number
Description:
Windows only: Returns a number representing the state of the Use High Contrast option in the Accessibility Options control panel.
Returns:
0 if Use High Contrast is unavailable, inactive, or if the function is used on the Mac OS.
1 if Use High Contrast is available and active.
Examples:
If you have users with impaired vision, you might create alternate versions of your layouts that are easier for them to use. If so, you can test in your navigation scripts whether Use High Contrast is active and go to an appropriate layout or zoom the window.
If [ Get (HighContrastState) = 1 ] Go to Layout ["ContactDetail (HC)"] Else Go to Layout ["ContactDetail"] End If