大网数据广告活动
安装更新与部署

Accessibility (Windows Installer)

· 52CE 我爱测

Authors should be aware of the tables and fields in the following list when designing their UI to be in compliance with Active Accessibility guidelines.

Authors should be aware of the tables and fields in the following list when designing their UI to be in compliance with Active Accessibility guidelines. The user interface of an installer package should facilitate accessibility of the application or product to all users.

  • Tooltip text is contained in the Help column of the Control table. This text is shown by screen readers for controls containing a picture.
  • The Text field of the Control table for the VolumeCostList, ListView, DirectoryList and SelectionTree controls is never displayed. Instead it can be read by screen review utilities as the description of the control. People who cannot use the visual information on the screen can interpret the information with the aid of a screen review utility. Screen review utilities (also referred to as a screen reader programs or speech access utilities) take the displayed information on the screen and direct it through alternative media, such as synthesized speech or a refreshable Braille display.
  • Controls in dialog boxes should be linked using the Control_Next field of the Control table. The controls need to be authored such that they can all be reached by using the TAB key.
  • Shortcut keys should be provided for gaining access to controls directly.
  • Text color displayed in the user interface is set in the TextStyle table. If the chosen text color is too close to the background's then the text's color choice is ignored.
  • Text size and font is set in the TextStyle table. Larger font sizes should be used for packages intended for the Asian market. For example, a font size of 10 points that is legible for English text may not necessarily be true for Chinese.
  • For Edit, PathEdit, ListView, ComboBox or VolumeSelectCombo controls, screen readers take accName and accKeyboardShortcut from a Text Control that must precede the control in the Control_Next sequence of the dialog box. The screen reader takes accName from the Text field of the Text control and accKeyboardShortcut from the keyboard shortcut in the Text field, if a shortcut exists.
  • Because static text cannot take the focus, a Text control that describes an Edit, PathEdit, ListView, ComboBox or VolumeSelectCombo control must be made the first control in the dialog box to ensure compatibility with screen readers.
  • For a PushButton control that displays an icon or bitmap image, accName and accKeyboardShortcut are specified in the Help field of the Control table record, to the left of the | separator.
  • Avoid the use of text controls on top of white bitmaps because under High Contrast Black the text may become invisible.
  • Do not put a black text control on a background that is an all white bitmap image. This text is not visible to a user who changes the Windows display to High Contrast Black.
  • Do not put a white text control on a background that is an all black bitmap image. This text is not visible to a user who changes the Windows display to High Contrast White.
  • Do not place transparent Text controls on top of colored bitmaps. The text may not be visible if the user changes the display color scheme. For example, text may become invisible if the user sets the high contrast parameter for accessibility.
  • Note that the focus on a dialog box does not tab to a RadioButtonGroup control until one of the buttons in the group has been selected. To make the focus tab to this button group, specify one of the buttons as a default setting for the control.
  • To provide screen reader programs with extra descriptive text about a RadioButtonGroup control. Follow the example provided in Adding Extra Text to Radio Buttons.
  • The relative size of dialogs, controls and fonts can change depending upon the font size chosen. For more information see Installer Units. To ensure the correct display of text and controls in the user interface, setup developers should always test their application using all font sizes that might be used.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。